Class KuromojiService

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

public class KuromojiService extends Object
Service class for Kuromoji.
  • Field Details

    • dictionaryManager

      protected DictionaryManager dictionaryManager
      The dictionary manager.
    • fessConfig

      protected org.codelibs.fess.mylasta.direction.FessConfig fessConfig
      The Fess config.
  • Constructor Details

    • KuromojiService

      public KuromojiService()
      Default constructor.
  • Method Details

    • getKuromojiList

      public List<KuromojiItem> getKuromojiList(String dictId, KuromojiPager kuromojiPager)
      Get a list of Kuromoji items.
      Parameters:
      dictId - The dictionary ID.
      kuromojiPager - The pager for Kuromoji.
      Returns:
      A list of Kuromoji items.
    • getKuromojiFile

      public org.dbflute.optional.OptionalEntity<KuromojiFile> getKuromojiFile(String dictId)
      Get a Kuromoji file.
      Parameters:
      dictId - The dictionary ID.
      Returns:
      An optional entity of the Kuromoji file.
    • getKuromojiItem

      public org.dbflute.optional.OptionalEntity<KuromojiItem> getKuromojiItem(String dictId, long id)
      Get a Kuromoji item.
      Parameters:
      dictId - The dictionary ID.
      id - The ID of the Kuromoji item.
      Returns:
      An optional entity of the Kuromoji item.
    • store

      public void store(String dictId, KuromojiItem kuromojiItem)
      Store a Kuromoji item.
      Parameters:
      dictId - The dictionary ID.
      kuromojiItem - The Kuromoji item to store.
    • delete

      public void delete(String dictId, KuromojiItem kuromojiItem)
      Delete a Kuromoji item.
      Parameters:
      dictId - The dictionary ID.
      kuromojiItem - The Kuromoji item to delete.