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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

        de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _TYPECODE
      Generated model type code constant.
      static java.lang.String _USER2TOKENRELATION
      Generated relation code constant for relation User2TokenRelation defining source attribute user in extension oauth2.
      static java.lang.String AUTHENTICATION
      Generated constant - Attribute key of OAuthAccessToken.authentication attribute defined at extension oauth2.
      static java.lang.String AUTHENTICATIONID
      Generated constant - Attribute key of OAuthAccessToken.authenticationId attribute defined at extension oauth2.
      static java.lang.String CLIENT
      Generated constant - Attribute key of OAuthAccessToken.client attribute defined at extension oauth2.
      static java.lang.String REFRESHTOKEN
      Generated constant - Attribute key of OAuthAccessToken.refreshToken attribute defined at extension oauth2.
      static java.lang.String TOKEN
      Generated constant - Attribute key of OAuthAccessToken.token attribute defined at extension oauth2.
      static java.lang.String TOKENID
      Generated constant - Attribute key of OAuthAccessToken.tokenId attribute defined at extension oauth2.
      static java.lang.String USER
      Generated constant - Attribute key of OAuthAccessToken.user attribute defined at extension oauth2.
      • Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

        LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
    • Constructor Summary

      Constructors 
      Constructor Description
      OAuthAccessTokenModel()
      Generated constructor - Default constructor for generic creation.
      OAuthAccessTokenModel​(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      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
      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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAuthentication()
      Generated method - Getter of the OAuthAccessToken.authentication attribute defined at extension oauth2.
      java.lang.String getAuthenticationId()
      Generated method - Getter of the OAuthAccessToken.authenticationId attribute defined at extension oauth2.
      OAuthClientDetailsModel getClient()
      Generated method - Getter of the OAuthAccessToken.client attribute defined at extension oauth2.
      OAuthRefreshTokenModel getRefreshToken()
      Generated method - Getter of the OAuthAccessToken.refreshToken attribute defined at extension oauth2.
      java.lang.Object getToken()
      Generated method - Getter of the OAuthAccessToken.token attribute defined at extension oauth2.
      java.lang.String getTokenId()
      Generated method - Getter of the OAuthAccessToken.tokenId attribute defined at extension oauth2.
      UserModel getUser()
      Generated method - Getter of the OAuthAccessToken.user attribute defined at extension oauth2.
      void setAuthentication​(java.lang.Object value)
      Generated method - Setter of OAuthAccessToken.authentication attribute defined at extension oauth2.
      void setAuthenticationId​(java.lang.String value)
      Generated method - Initial setter of OAuthAccessToken.authenticationId attribute defined at extension oauth2.
      void setClient​(OAuthClientDetailsModel value)
      Generated method - Initial setter of OAuthAccessToken.client attribute defined at extension oauth2.
      void setRefreshToken​(OAuthRefreshTokenModel value)
      Generated method - Initial setter of OAuthAccessToken.refreshToken attribute defined at extension oauth2.
      void setToken​(java.lang.Object value)
      Generated method - Initial setter of OAuthAccessToken.token attribute defined at extension oauth2.
      void setTokenId​(java.lang.String value)
      Generated method - Setter of OAuthAccessToken.tokenId attribute defined at extension oauth2.
      void setUser​(UserModel value)
      Generated method - Setter of OAuthAccessToken.user attribute defined at extension oauth2.
      • Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

        equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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​(de.hybris.platform.servicelayer.model.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
      • 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 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