Class ProtwordsService

java.lang.Object
org.codelibs.fess.app.service.ProtwordsService

public class ProtwordsService extends Object
Service for managing protected words dictionary. This service provides operations for managing protected words dictionary files and items.
  • Field Details

    • dictionaryManager

      protected DictionaryManager dictionaryManager
      Dictionary manager for handling dictionary files
    • fessConfig

      protected org.codelibs.fess.mylasta.direction.FessConfig fessConfig
      Configuration for Fess
  • Constructor Details

    • ProtwordsService

      public ProtwordsService()
      Default constructor.
  • Method Details

    • getProtwordsList

      public List<ProtwordsItem> getProtwordsList(String dictId, ProtwordsPager protwordsPager)
      Gets a paginated list of protected words items.
      Parameters:
      dictId - the dictionary ID
      protwordsPager - the pager for pagination
      Returns:
      the list of protected words items
    • getProtwordsFile

      public org.dbflute.optional.OptionalEntity<ProtwordsFile> getProtwordsFile(String dictId)
      Gets the protected words file for the specified dictionary ID.
      Parameters:
      dictId - the dictionary ID
      Returns:
      the protected words file if found
    • getProtwordsItem

      public org.dbflute.optional.OptionalEntity<ProtwordsItem> getProtwordsItem(String dictId, long id)
      Gets a specific protected words item by ID.
      Parameters:
      dictId - the dictionary ID
      id - the item ID
      Returns:
      the protected words item if found
    • store

      public void store(String dictId, ProtwordsItem protwordsItem)
      Stores a protected words item (insert or update).
      Parameters:
      dictId - the dictionary ID
      protwordsItem - the item to store
    • delete

      public void delete(String dictId, ProtwordsItem protwordsItem)
      Deletes a protected words item.
      Parameters:
      dictId - the dictionary ID
      protwordsItem - the item to delete