Class OAuthAccessTokenModel

  • All Implemented Interfaces:
    java.io.Serializable

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

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _USER2TOKENRELATION

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

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

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

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

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

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

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

        public static final java.lang.String USER
        Generated constant - Attribute key of OAuthAccessToken.user attribute defined at extension oauth2.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.lang.String _authenticationId,
                                     OAuthClientDetailsModel _client,
                                     java.lang.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​(java.lang.String _authenticationId,
                                     OAuthClientDetailsModel _client,
                                     ItemModel _owner,
                                     OAuthRefreshTokenModel _refreshToken,
                                     java.lang.Object _token,
                                     java.lang.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 Detail

      • getAuthentication

        @Accessor(qualifier="authentication",
                  type=GETTER)
        public java.lang.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 java.lang.String getAuthenticationId()
        Generated method - Getter of the OAuthAccessToken.authenticationId attribute defined at extension oauth2.
        Returns:
        the authenticationId - Authentication identifier
      • getToken

        @Accessor(qualifier="token",
                  type=GETTER)
        public java.lang.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 java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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