Class AccessTokenService

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

public class AccessTokenService extends Object
The service for access token.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.codelibs.fess.opensearch.config.exbhv.AccessTokenBhv
    The behavior of access token.
    protected org.codelibs.fess.mylasta.direction.FessConfig
    The Fess configuration.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(org.codelibs.fess.opensearch.config.exentity.AccessToken accessToken)
    Delete the access token.
    org.dbflute.optional.OptionalEntity<org.codelibs.fess.opensearch.config.exentity.AccessToken>
    Get the access token.
    List<org.codelibs.fess.opensearch.config.exentity.AccessToken>
    Get the list of access tokens.
    org.dbflute.optional.OptionalEntity<Set<String>>
    getPermissions(jakarta.servlet.http.HttpServletRequest request)
    Get the permissions.
    protected void
    setupListCondition(org.codelibs.fess.opensearch.config.cbean.AccessTokenCB cb, AccessTokenPager accessTokenPager)
    Set up the list condition.
    void
    store(org.codelibs.fess.opensearch.config.exentity.AccessToken accessToken)
    Store the access token.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • accessTokenBhv

      protected org.codelibs.fess.opensearch.config.exbhv.AccessTokenBhv accessTokenBhv
      The behavior of access token.
    • fessConfig

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

    • AccessTokenService

      public AccessTokenService()
      Default constructor.
  • Method Details

    • getAccessTokenList

      public List<org.codelibs.fess.opensearch.config.exentity.AccessToken> getAccessTokenList(AccessTokenPager accessTokenPager)
      Get the list of access tokens.
      Parameters:
      accessTokenPager - The pager for access token.
      Returns:
      The list of access tokens.
    • getAccessToken

      public org.dbflute.optional.OptionalEntity<org.codelibs.fess.opensearch.config.exentity.AccessToken> getAccessToken(String id)
      Get the access token.
      Parameters:
      id - The ID of the access token.
      Returns:
      The access token.
    • store

      public void store(org.codelibs.fess.opensearch.config.exentity.AccessToken accessToken)
      Store the access token.
      Parameters:
      accessToken - The access token.
    • delete

      public void delete(org.codelibs.fess.opensearch.config.exentity.AccessToken accessToken)
      Delete the access token.
      Parameters:
      accessToken - The access token.
    • setupListCondition

      protected void setupListCondition(org.codelibs.fess.opensearch.config.cbean.AccessTokenCB cb, AccessTokenPager accessTokenPager)
      Set up the list condition.
      Parameters:
      cb - The callback.
      accessTokenPager - The pager for access token.
    • getPermissions

      public org.dbflute.optional.OptionalEntity<Set<String>> getPermissions(jakarta.servlet.http.HttpServletRequest request)
      Get the permissions.
      Parameters:
      request - The request.
      Returns:
      The permissions.