Class OAuthAccessToken

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable

    public class OAuthAccessToken
    extends GenericItem
    Generated class for type OAuthAccessToken.
    See Also:
    Serialized Form
    • Field Detail

      • TOKENID

        public static final java.lang.String TOKENID
        Qualifier of the OAuthAccessToken.tokenId attribute
        See Also:
        Constant Field Values
      • TOKEN

        public static final java.lang.String TOKEN
        Qualifier of the OAuthAccessToken.token attribute
        See Also:
        Constant Field Values
      • AUTHENTICATIONID

        public static final java.lang.String AUTHENTICATIONID
        Qualifier of the OAuthAccessToken.authenticationId attribute
        See Also:
        Constant Field Values
      • CLIENT

        public static final java.lang.String CLIENT
        Qualifier of the OAuthAccessToken.client attribute
        See Also:
        Constant Field Values
      • AUTHENTICATION

        public static final java.lang.String AUTHENTICATION
        Qualifier of the OAuthAccessToken.authentication attribute
        See Also:
        Constant Field Values
      • REFRESHTOKEN

        public static final java.lang.String REFRESHTOKEN
        Qualifier of the OAuthAccessToken.refreshToken attribute
        See Also:
        Constant Field Values
      • USER

        public static final java.lang.String USER
        Qualifier of the OAuthAccessToken.user attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • OAuthAccessToken

        public OAuthAccessToken()
    • Method Detail

      • getAuthentication

        public java.lang.Object getAuthentication​(SessionContext ctx)
        Generated method - Getter of the OAuthAccessToken.authentication attribute.
        Returns:
        the authentication - Serialized authentication object
      • getAuthentication

        public java.lang.Object getAuthentication()
        Generated method - Getter of the OAuthAccessToken.authentication attribute.
        Returns:
        the authentication - Serialized authentication object
      • setAuthentication

        public void setAuthentication​(SessionContext ctx,
                                      java.lang.Object value)
        Generated method - Setter of the OAuthAccessToken.authentication attribute.
        Parameters:
        value - the authentication - Serialized authentication object
      • setAuthentication

        public void setAuthentication​(java.lang.Object value)
        Generated method - Setter of the OAuthAccessToken.authentication attribute.
        Parameters:
        value - the authentication - Serialized authentication object
      • getAuthenticationId

        public java.lang.String getAuthenticationId​(SessionContext ctx)
        Generated method - Getter of the OAuthAccessToken.authenticationId attribute.
        Returns:
        the authenticationId - Authentication identifier
      • getAuthenticationId

        public java.lang.String getAuthenticationId()
        Generated method - Getter of the OAuthAccessToken.authenticationId attribute.
        Returns:
        the authenticationId - Authentication identifier
      • setAuthenticationId

        protected void setAuthenticationId​(SessionContext ctx,
                                           java.lang.String value)
        Generated method - Setter of the OAuthAccessToken.authenticationId attribute.
        Parameters:
        value - the authenticationId - Authentication identifier
      • setAuthenticationId

        protected void setAuthenticationId​(java.lang.String value)
        Generated method - Setter of the OAuthAccessToken.authenticationId attribute.
        Parameters:
        value - the authenticationId - Authentication identifier
      • getClient

        public OAuthClientDetails getClient​(SessionContext ctx)
        Generated method - Getter of the OAuthAccessToken.client attribute.
        Returns:
        the client - Client identifier
      • getClient

        public OAuthClientDetails getClient()
        Generated method - Getter of the OAuthAccessToken.client attribute.
        Returns:
        the client - Client identifier
      • setClient

        protected void setClient​(SessionContext ctx,
                                 OAuthClientDetails value)
        Generated method - Setter of the OAuthAccessToken.client attribute.
        Parameters:
        value - the client - Client identifier
      • setClient

        protected void setClient​(OAuthClientDetails value)
        Generated method - Setter of the OAuthAccessToken.client attribute.
        Parameters:
        value - the client - Client identifier
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getRefreshToken

        public OAuthRefreshToken getRefreshToken​(SessionContext ctx)
        Generated method - Getter of the OAuthAccessToken.refreshToken attribute.
        Returns:
        the refreshToken
      • getRefreshToken

        public OAuthRefreshToken getRefreshToken()
        Generated method - Getter of the OAuthAccessToken.refreshToken attribute.
        Returns:
        the refreshToken
      • setRefreshToken

        protected void setRefreshToken​(SessionContext ctx,
                                       OAuthRefreshToken value)
        Generated method - Setter of the OAuthAccessToken.refreshToken attribute.
        Parameters:
        value - the refreshToken
      • setRefreshToken

        protected void setRefreshToken​(OAuthRefreshToken value)
        Generated method - Setter of the OAuthAccessToken.refreshToken attribute.
        Parameters:
        value - the refreshToken
      • getToken

        public java.lang.Object getToken​(SessionContext ctx)
        Generated method - Getter of the OAuthAccessToken.token attribute.
        Returns:
        the token - serialized token object
      • getToken

        public java.lang.Object getToken()
        Generated method - Getter of the OAuthAccessToken.token attribute.
        Returns:
        the token - serialized token object
      • setToken

        protected void setToken​(SessionContext ctx,
                                java.lang.Object value)
        Generated method - Setter of the OAuthAccessToken.token attribute.
        Parameters:
        value - the token - serialized token object
      • setToken

        protected void setToken​(java.lang.Object value)
        Generated method - Setter of the OAuthAccessToken.token attribute.
        Parameters:
        value - the token - serialized token object
      • getTokenId

        public java.lang.String getTokenId​(SessionContext ctx)
        Generated method - Getter of the OAuthAccessToken.tokenId attribute.
        Returns:
        the tokenId - Token key
      • getTokenId

        public java.lang.String getTokenId()
        Generated method - Getter of the OAuthAccessToken.tokenId attribute.
        Returns:
        the tokenId - Token key
      • setTokenId

        public void setTokenId​(SessionContext ctx,
                               java.lang.String value)
        Generated method - Setter of the OAuthAccessToken.tokenId attribute.
        Parameters:
        value - the tokenId - Token key
      • setTokenId

        public void setTokenId​(java.lang.String value)
        Generated method - Setter of the OAuthAccessToken.tokenId attribute.
        Parameters:
        value - the tokenId - Token key
      • getUser

        public User getUser​(SessionContext ctx)
        Generated method - Getter of the OAuthAccessToken.user attribute.
        Returns:
        the user
      • getUser

        public User getUser()
        Generated method - Getter of the OAuthAccessToken.user attribute.
        Returns:
        the user
      • setUser

        public void setUser​(SessionContext ctx,
                            User value)
        Generated method - Setter of the OAuthAccessToken.user attribute.
        Parameters:
        value - the user
      • setUser

        public void setUser​(User value)
        Generated method - Setter of the OAuthAccessToken.user attribute.
        Parameters:
        value - the user