Class OAuthAccessTokenModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.webservicescommons.model.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
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.String_USER2TOKENRELATIONGenerated relation code constant for relationUser2TokenRelationdefining source attributeuserin extensionoauth2.static java.lang.StringAUTHENTICATIONGenerated constant - Attribute key ofOAuthAccessToken.authenticationattribute defined at extensionoauth2.static java.lang.StringAUTHENTICATIONIDGenerated constant - Attribute key ofOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.static java.lang.StringCLIENTGenerated constant - Attribute key ofOAuthAccessToken.clientattribute defined at extensionoauth2.static java.lang.StringREFRESHTOKENGenerated constant - Attribute key ofOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.static java.lang.StringTOKENGenerated constant - Attribute key ofOAuthAccessToken.tokenattribute defined at extensionoauth2.static java.lang.StringTOKENIDGenerated constant - Attribute key ofOAuthAccessToken.tokenIdattribute defined at extensionoauth2.static java.lang.StringUSERGenerated constant - Attribute key ofOAuthAccessToken.userattribute defined at extensionoauth2.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
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(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextOAuthAccessTokenModel(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 parametersOAuthAccessTokenModel(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.ObjectgetAuthentication()Generated method - Getter of theOAuthAccessToken.authenticationattribute defined at extensionoauth2.java.lang.StringgetAuthenticationId()Generated method - Getter of theOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.OAuthClientDetailsModelgetClient()Generated method - Getter of theOAuthAccessToken.clientattribute defined at extensionoauth2.OAuthRefreshTokenModelgetRefreshToken()Generated method - Getter of theOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.java.lang.ObjectgetToken()Generated method - Getter of theOAuthAccessToken.tokenattribute defined at extensionoauth2.java.lang.StringgetTokenId()Generated method - Getter of theOAuthAccessToken.tokenIdattribute defined at extensionoauth2.UserModelgetUser()Generated method - Getter of theOAuthAccessToken.userattribute defined at extensionoauth2.voidsetAuthentication(java.lang.Object value)Generated method - Setter ofOAuthAccessToken.authenticationattribute defined at extensionoauth2.voidsetAuthenticationId(java.lang.String value)Generated method - Initial setter ofOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.voidsetClient(OAuthClientDetailsModel value)Generated method - Initial setter ofOAuthAccessToken.clientattribute defined at extensionoauth2.voidsetRefreshToken(OAuthRefreshTokenModel value)Generated method - Initial setter ofOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.voidsetToken(java.lang.Object value)Generated method - Initial setter ofOAuthAccessToken.tokenattribute defined at extensionoauth2.voidsetTokenId(java.lang.String value)Generated method - Setter ofOAuthAccessToken.tokenIdattribute defined at extensionoauth2.voidsetUser(UserModel value)Generated method - Setter ofOAuthAccessToken.userattribute defined at extensionoauth2.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
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
-
-
-
-
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 relationUser2TokenRelationdefining source attributeuserin extensionoauth2.- See Also:
- Constant Field Values
-
TOKENID
public static final java.lang.String TOKENID
Generated constant - Attribute key ofOAuthAccessToken.tokenIdattribute defined at extensionoauth2.- See Also:
- Constant Field Values
-
TOKEN
public static final java.lang.String TOKEN
Generated constant - Attribute key ofOAuthAccessToken.tokenattribute defined at extensionoauth2.- See Also:
- Constant Field Values
-
AUTHENTICATIONID
public static final java.lang.String AUTHENTICATIONID
Generated constant - Attribute key ofOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.- See Also:
- Constant Field Values
-
CLIENT
public static final java.lang.String CLIENT
Generated constant - Attribute key ofOAuthAccessToken.clientattribute defined at extensionoauth2.- See Also:
- Constant Field Values
-
AUTHENTICATION
public static final java.lang.String AUTHENTICATION
Generated constant - Attribute key ofOAuthAccessToken.authenticationattribute defined at extensionoauth2.- See Also:
- Constant Field Values
-
REFRESHTOKEN
public static final java.lang.String REFRESHTOKEN
Generated constant - Attribute key ofOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
Generated constant - Attribute key ofOAuthAccessToken.userattribute defined at extensionoauth2.- 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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_authenticationId- initial attribute declared by typeOAuthAccessTokenat extensionoauth2_client- initial attribute declared by typeOAuthAccessTokenat extensionoauth2_tokenId- initial attribute declared by typeOAuthAccessTokenat extensionoauth2
-
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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_authenticationId- initial attribute declared by typeOAuthAccessTokenat extensionoauth2_client- initial attribute declared by typeOAuthAccessTokenat extensionoauth2_owner- initial attribute declared by typeItemat extensioncore_refreshToken- initial attribute declared by typeOAuthAccessTokenat extensionoauth2_token- initial attribute declared by typeOAuthAccessTokenat extensionoauth2_tokenId- initial attribute declared by typeOAuthAccessTokenat extensionoauth2
-
-
Method Detail
-
getAuthentication
@Accessor(qualifier="authentication", type=GETTER) public java.lang.Object getAuthentication()
Generated method - Getter of theOAuthAccessToken.authenticationattribute defined at extensionoauth2.- Returns:
- the authentication - Serialized authentication object
-
getAuthenticationId
@Accessor(qualifier="authenticationId", type=GETTER) public java.lang.String getAuthenticationId()
Generated method - Getter of theOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.- Returns:
- the authenticationId - Authentication identifier
-
getClient
@Accessor(qualifier="client", type=GETTER) public OAuthClientDetailsModel getClient()
Generated method - Getter of theOAuthAccessToken.clientattribute defined at extensionoauth2.- Returns:
- the client - Client identifier
-
getRefreshToken
@Accessor(qualifier="refreshToken", type=GETTER) public OAuthRefreshTokenModel getRefreshToken()
Generated method - Getter of theOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.- Returns:
- the refreshToken
-
getToken
@Accessor(qualifier="token", type=GETTER) public java.lang.Object getToken()
Generated method - Getter of theOAuthAccessToken.tokenattribute defined at extensionoauth2.- Returns:
- the token - serialized token object
-
getTokenId
@Accessor(qualifier="tokenId", type=GETTER) public java.lang.String getTokenId()
Generated method - Getter of theOAuthAccessToken.tokenIdattribute defined at extensionoauth2.- Returns:
- the tokenId - Token key
-
getUser
@Accessor(qualifier="user", type=GETTER) public UserModel getUser()
Generated method - Getter of theOAuthAccessToken.userattribute defined at extensionoauth2.- Returns:
- the user
-
setAuthentication
@Accessor(qualifier="authentication", type=SETTER) public void setAuthentication(java.lang.Object value)
Generated method - Setter ofOAuthAccessToken.authenticationattribute defined at extensionoauth2.- Parameters:
value- the authentication - Serialized authentication object
-
setAuthenticationId
@Accessor(qualifier="authenticationId", type=SETTER) public void setAuthenticationId(java.lang.String value)
Generated method - Initial setter ofOAuthAccessToken.authenticationIdattribute defined at extensionoauth2. 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 ofOAuthAccessToken.clientattribute defined at extensionoauth2. 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 ofOAuthAccessToken.refreshTokenattribute defined at extensionoauth2. 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 ofOAuthAccessToken.tokenattribute defined at extensionoauth2. 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 ofOAuthAccessToken.tokenIdattribute defined at extensionoauth2.- Parameters:
value- the tokenId - Token key
-
-