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:
Serializable
Generated model class for type OAuthAccessToken first defined at extension oauth2.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated relation code constant for relationUser2TokenRelationdefining source attributeuserin extensionoauth2.static final StringGenerated constant - Attribute key ofOAuthAccessToken.authenticationattribute defined at extensionoauth2.static final StringGenerated constant - Attribute key ofOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.static final StringGenerated constant - Attribute key ofOAuthAccessToken.clientattribute defined at extensionoauth2.static final StringGenerated constant - Attribute key ofOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.static final StringGenerated constant - Attribute key ofOAuthAccessToken.tokenattribute defined at extensionoauth2.static final StringGenerated constant - Attribute key ofOAuthAccessToken.tokenIdattribute defined at extensionoauth2.static final StringGenerated 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, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextOAuthAccessTokenModel(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 parametersOAuthAccessTokenModel(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 -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theOAuthAccessToken.authenticationattribute defined at extensionoauth2.Generated method - Getter of theOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.Generated method - Getter of theOAuthAccessToken.clientattribute defined at extensionoauth2.Generated method - Getter of theOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.getToken()Generated method - Getter of theOAuthAccessToken.tokenattribute defined at extensionoauth2.Generated method - Getter of theOAuthAccessToken.tokenIdattribute defined at extensionoauth2.getUser()Generated method - Getter of theOAuthAccessToken.userattribute defined at extensionoauth2.voidsetAuthentication(Object value) Generated method - Setter ofOAuthAccessToken.authenticationattribute defined at extensionoauth2.voidsetAuthenticationId(String value) Generated method - Initial setter ofOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.voidsetClient(OAuthClientDetailsModel value) Generated method - Initial setter ofOAuthAccessToken.clientattribute defined at extensionoauth2.voidGenerated method - Initial setter ofOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.voidGenerated method - Initial setter ofOAuthAccessToken.tokenattribute defined at extensionoauth2.voidsetTokenId(String value) Generated method - Setter ofOAuthAccessToken.tokenIdattribute defined at extensionoauth2.voidGenerated 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, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_USER2TOKENRELATION
Generated relation code constant for relationUser2TokenRelationdefining source attributeuserin extensionoauth2.- See Also:
-
TOKENID
Generated constant - Attribute key ofOAuthAccessToken.tokenIdattribute defined at extensionoauth2.- See Also:
-
TOKEN
Generated constant - Attribute key ofOAuthAccessToken.tokenattribute defined at extensionoauth2.- See Also:
-
AUTHENTICATIONID
Generated constant - Attribute key ofOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.- See Also:
-
CLIENT
Generated constant - Attribute key ofOAuthAccessToken.clientattribute defined at extensionoauth2.- See Also:
-
AUTHENTICATION
Generated constant - Attribute key ofOAuthAccessToken.authenticationattribute defined at extensionoauth2.- See Also:
-
REFRESHTOKEN
Generated constant - Attribute key ofOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.- See Also:
-
USER
Generated constant - Attribute key ofOAuthAccessToken.userattribute defined at extensionoauth2.- See Also:
-
-
Constructor Details
-
OAuthAccessTokenModel
public OAuthAccessTokenModel()Generated constructor - Default constructor for generic creation. -
OAuthAccessTokenModel
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 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(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 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 Details
-
getAuthentication
Generated method - Getter of theOAuthAccessToken.authenticationattribute defined at extensionoauth2.- Returns:
- the authentication - Serialized authentication object
-
getAuthenticationId
Generated method - Getter of theOAuthAccessToken.authenticationIdattribute defined at extensionoauth2.- Returns:
- the authenticationId - Authentication identifier
-
getClient
Generated method - Getter of theOAuthAccessToken.clientattribute defined at extensionoauth2.- Returns:
- the client - Client identifier
-
getRefreshToken
Generated method - Getter of theOAuthAccessToken.refreshTokenattribute defined at extensionoauth2.- Returns:
- the refreshToken
-
getToken
Generated method - Getter of theOAuthAccessToken.tokenattribute defined at extensionoauth2.- Returns:
- the token - serialized token object
-
getTokenId
Generated method - Getter of theOAuthAccessToken.tokenIdattribute defined at extensionoauth2.- Returns:
- the tokenId - Token key
-
getUser
Generated method - Getter of theOAuthAccessToken.userattribute defined at extensionoauth2.- Returns:
- the user
-
setAuthentication
Generated method - Setter ofOAuthAccessToken.authenticationattribute defined at extensionoauth2.- Parameters:
value- the authentication - Serialized authentication object
-
setAuthenticationId
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
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
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
Generated method - Setter ofOAuthAccessToken.tokenIdattribute defined at extensionoauth2.- Parameters:
value- the tokenId - Token key
-
setUser
Generated method - Setter ofOAuthAccessToken.userattribute defined at extensionoauth2.- Parameters:
value- the user
-