Class OAuthAccessTokenModel

All Implemented Interfaces:
Serializable

public class OAuthAccessTokenModel extends ItemModel
Generated model class for type OAuthAccessToken first defined at extension oauth2.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _USER2TOKENRELATION

      public static final String _USER2TOKENRELATION
      Generated relation code constant for relation User2TokenRelation defining source attribute user in extension oauth2.
      See Also:
    • TOKENID

      public static final String TOKENID
      Generated constant - Attribute key of OAuthAccessToken.tokenId attribute defined at extension oauth2.
      See Also:
    • TOKEN

      public static final String TOKEN
      Generated constant - Attribute key of OAuthAccessToken.token attribute defined at extension oauth2.
      See Also:
    • AUTHENTICATIONID

      public static final String AUTHENTICATIONID
      Generated constant - Attribute key of OAuthAccessToken.authenticationId attribute defined at extension oauth2.
      See Also:
    • CLIENT

      public static final String CLIENT
      Generated constant - Attribute key of OAuthAccessToken.client attribute defined at extension oauth2.
      See Also:
    • AUTHENTICATION

      public static final String AUTHENTICATION
      Generated constant - Attribute key of OAuthAccessToken.authentication attribute defined at extension oauth2.
      See Also:
    • REFRESHTOKEN

      public static final String REFRESHTOKEN
      Generated constant - Attribute key of OAuthAccessToken.refreshToken attribute defined at extension oauth2.
      See Also:
    • USER

      public static final String USER
      Generated constant - Attribute key of OAuthAccessToken.user attribute defined at extension oauth2.
      See Also:
  • Constructor Details

    • OAuthAccessTokenModel

      public OAuthAccessTokenModel()
      Generated constructor - Default constructor for generic creation.
    • OAuthAccessTokenModel

      public OAuthAccessTokenModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • OAuthAccessTokenModel

      @Deprecated(since="4.1.1", forRemoval=true) public OAuthAccessTokenModel(String _authenticationId, OAuthClientDetailsModel _client, String _tokenId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _authenticationId - initial attribute declared by type OAuthAccessToken at extension oauth2
      _client - initial attribute declared by type OAuthAccessToken at extension oauth2
      _tokenId - initial attribute declared by type OAuthAccessToken at extension oauth2
    • OAuthAccessTokenModel

      @Deprecated(since="4.1.1", forRemoval=true) public OAuthAccessTokenModel(String _authenticationId, OAuthClientDetailsModel _client, ItemModel _owner, OAuthRefreshTokenModel _refreshToken, Object _token, String _tokenId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _authenticationId - initial attribute declared by type OAuthAccessToken at extension oauth2
      _client - initial attribute declared by type OAuthAccessToken at extension oauth2
      _owner - initial attribute declared by type Item at extension core
      _refreshToken - initial attribute declared by type OAuthAccessToken at extension oauth2
      _token - initial attribute declared by type OAuthAccessToken at extension oauth2
      _tokenId - initial attribute declared by type OAuthAccessToken at extension oauth2
  • Method Details

    • getAuthentication

      @Accessor(qualifier="authentication", type=GETTER) public Object getAuthentication()
      Generated method - Getter of the OAuthAccessToken.authentication attribute defined at extension oauth2.
      Returns:
      the authentication - Serialized authentication object
    • getAuthenticationId

      @Accessor(qualifier="authenticationId", type=GETTER) public String getAuthenticationId()
      Generated method - Getter of the OAuthAccessToken.authenticationId attribute defined at extension oauth2.
      Returns:
      the authenticationId - Authentication identifier
    • getClient

      @Accessor(qualifier="client", type=GETTER) public OAuthClientDetailsModel getClient()
      Generated method - Getter of the OAuthAccessToken.client attribute defined at extension oauth2.
      Returns:
      the client - Client identifier
    • getRefreshToken

      @Accessor(qualifier="refreshToken", type=GETTER) public OAuthRefreshTokenModel getRefreshToken()
      Generated method - Getter of the OAuthAccessToken.refreshToken attribute defined at extension oauth2.
      Returns:
      the refreshToken
    • getToken

      @Accessor(qualifier="token", type=GETTER) public Object getToken()
      Generated method - Getter of the OAuthAccessToken.token attribute defined at extension oauth2.
      Returns:
      the token - serialized token object
    • getTokenId

      @Accessor(qualifier="tokenId", type=GETTER) public String getTokenId()
      Generated method - Getter of the OAuthAccessToken.tokenId attribute defined at extension oauth2.
      Returns:
      the tokenId - Token key
    • getUser

      @Accessor(qualifier="user", type=GETTER) public UserModel getUser()
      Generated method - Getter of the OAuthAccessToken.user attribute defined at extension oauth2.
      Returns:
      the user
    • setAuthentication

      @Accessor(qualifier="authentication", type=SETTER) public void setAuthentication(Object value)
      Generated method - Setter of OAuthAccessToken.authentication attribute defined at extension oauth2.
      Parameters:
      value - the authentication - Serialized authentication object
    • setAuthenticationId

      @Accessor(qualifier="authenticationId", type=SETTER) public void setAuthenticationId(String value)
      Generated method - Initial setter of OAuthAccessToken.authenticationId attribute defined at extension oauth2. Can only be used at creation of model - before first save.
      Parameters:
      value - the authenticationId - Authentication identifier
    • setClient

      @Accessor(qualifier="client", type=SETTER) public void setClient(OAuthClientDetailsModel value)
      Generated method - Initial setter of OAuthAccessToken.client attribute defined at extension oauth2. Can only be used at creation of model - before first save.
      Parameters:
      value - the client - Client identifier
    • setRefreshToken

      @Accessor(qualifier="refreshToken", type=SETTER) public void setRefreshToken(OAuthRefreshTokenModel value)
      Generated method - Initial setter of OAuthAccessToken.refreshToken attribute defined at extension oauth2. Can only be used at creation of model - before first save.
      Parameters:
      value - the refreshToken
    • setToken

      @Accessor(qualifier="token", type=SETTER) public void setToken(Object value)
      Generated method - Initial setter of OAuthAccessToken.token attribute defined at extension oauth2. Can only be used at creation of model - before first save.
      Parameters:
      value - the token - serialized token object
    • setTokenId

      @Accessor(qualifier="tokenId", type=SETTER) public void setTokenId(String value)
      Generated method - Setter of OAuthAccessToken.tokenId attribute defined at extension oauth2.
      Parameters:
      value - the tokenId - Token key
    • setUser

      @Accessor(qualifier="user", type=SETTER) public void setUser(UserModel value)
      Generated method - Setter of OAuthAccessToken.user attribute defined at extension oauth2.
      Parameters:
      value - the user