Package org.codelibs.fess.app.service
Class ProtwordsService
java.lang.Object
org.codelibs.fess.app.service.ProtwordsService
Service for managing protected words dictionary.
This service provides operations for managing protected words dictionary files and items.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DictionaryManagerDictionary manager for handling dictionary filesprotected org.codelibs.fess.mylasta.direction.FessConfigConfiguration for Fess -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(String dictId, ProtwordsItem protwordsItem) Deletes a protected words item.org.dbflute.optional.OptionalEntity<ProtwordsFile> getProtwordsFile(String dictId) Gets the protected words file for the specified dictionary ID.org.dbflute.optional.OptionalEntity<ProtwordsItem> getProtwordsItem(String dictId, long id) Gets a specific protected words item by ID.getProtwordsList(String dictId, ProtwordsPager protwordsPager) Gets a paginated list of protected words items.voidstore(String dictId, ProtwordsItem protwordsItem) Stores a protected words item (insert or update).
-
Field Details
-
dictionaryManager
Dictionary manager for handling dictionary files -
fessConfig
protected org.codelibs.fess.mylasta.direction.FessConfig fessConfigConfiguration for Fess
-
-
Constructor Details
-
ProtwordsService
public ProtwordsService()Default constructor.
-
-
Method Details
-
getProtwordsList
Gets a paginated list of protected words items.- Parameters:
dictId- the dictionary IDprotwordsPager- the pager for pagination- Returns:
- the list of protected words items
-
getProtwordsFile
Gets the protected words file for the specified dictionary ID.- Parameters:
dictId- the dictionary ID- Returns:
- the protected words file if found
-
getProtwordsItem
Gets a specific protected words item by ID.- Parameters:
dictId- the dictionary IDid- the item ID- Returns:
- the protected words item if found
-
store
Stores a protected words item (insert or update).- Parameters:
dictId- the dictionary IDprotwordsItem- the item to store
-
delete
Deletes a protected words item.- Parameters:
dictId- the dictionary IDprotwordsItem- the item to delete
-