Class OAuth2AuthorizationWrapper

java.lang.Object
com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<OAuth2Authorization>
com.liferay.oauth2.provider.model.OAuth2AuthorizationWrapper
All Implemented Interfaces:
OAuth2Authorization, OAuth2AuthorizationModel, com.liferay.portal.kernel.model.BaseModel<OAuth2Authorization>, com.liferay.portal.kernel.model.ClassedModel, com.liferay.portal.kernel.model.ModelWrapper<OAuth2Authorization>, com.liferay.portal.kernel.model.PersistedModel, com.liferay.portal.kernel.model.ShardedModel, Serializable, Cloneable, Comparable<OAuth2Authorization>

public class OAuth2AuthorizationWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<OAuth2Authorization> implements com.liferay.portal.kernel.model.ModelWrapper<OAuth2Authorization>, OAuth2Authorization

This class is a wrapper for OAuth2Authorization.

See Also:
Generated:
  • Constructor Details

    • OAuth2AuthorizationWrapper

      public OAuth2AuthorizationWrapper(OAuth2Authorization oAuth2Authorization)
  • Method Details

    • getModelAttributes

      public Map<String,Object> getModelAttributes()
      Specified by:
      getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<OAuth2Authorization>
    • setModelAttributes

      public void setModelAttributes(Map<String,Object> attributes)
      Specified by:
      setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<OAuth2Authorization>
    • cloneWithOriginalValues

      public OAuth2Authorization cloneWithOriginalValues()
      Specified by:
      cloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<OAuth2Authorization>
      Specified by:
      cloneWithOriginalValues in interface OAuth2AuthorizationModel
    • getAccessTokenContent

      public String getAccessTokenContent()
      Returns the access token content of this o auth2 authorization.
      Specified by:
      getAccessTokenContent in interface OAuth2AuthorizationModel
      Returns:
      the access token content of this o auth2 authorization
    • getAccessTokenContentHash

      public long getAccessTokenContentHash()
      Returns the access token content hash of this o auth2 authorization.
      Specified by:
      getAccessTokenContentHash in interface OAuth2AuthorizationModel
      Returns:
      the access token content hash of this o auth2 authorization
    • getAccessTokenCreateDate

      public Date getAccessTokenCreateDate()
      Returns the access token create date of this o auth2 authorization.
      Specified by:
      getAccessTokenCreateDate in interface OAuth2AuthorizationModel
      Returns:
      the access token create date of this o auth2 authorization
    • getAccessTokenExpirationDate

      public Date getAccessTokenExpirationDate()
      Returns the access token expiration date of this o auth2 authorization.
      Specified by:
      getAccessTokenExpirationDate in interface OAuth2AuthorizationModel
      Returns:
      the access token expiration date of this o auth2 authorization
    • getCompanyId

      public long getCompanyId()
      Returns the company ID of this o auth2 authorization.
      Specified by:
      getCompanyId in interface OAuth2AuthorizationModel
      Specified by:
      getCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Returns:
      the company ID of this o auth2 authorization
    • getCreateDate

      public Date getCreateDate()
      Returns the create date of this o auth2 authorization.
      Specified by:
      getCreateDate in interface OAuth2AuthorizationModel
      Returns:
      the create date of this o auth2 authorization
    • getOAuth2ApplicationId

      public long getOAuth2ApplicationId()
      Returns the o auth2 application ID of this o auth2 authorization.
      Specified by:
      getOAuth2ApplicationId in interface OAuth2AuthorizationModel
      Returns:
      the o auth2 application ID of this o auth2 authorization
    • getOAuth2ApplicationScopeAliasesId

      public long getOAuth2ApplicationScopeAliasesId()
      Returns the o auth2 application scope aliases ID of this o auth2 authorization.
      Specified by:
      getOAuth2ApplicationScopeAliasesId in interface OAuth2AuthorizationModel
      Returns:
      the o auth2 application scope aliases ID of this o auth2 authorization
    • getOAuth2AuthorizationId

      public long getOAuth2AuthorizationId()
      Returns the o auth2 authorization ID of this o auth2 authorization.
      Specified by:
      getOAuth2AuthorizationId in interface OAuth2AuthorizationModel
      Returns:
      the o auth2 authorization ID of this o auth2 authorization
    • getPrimaryKey

      public long getPrimaryKey()
      Returns the primary key of this o auth2 authorization.
      Specified by:
      getPrimaryKey in interface OAuth2AuthorizationModel
      Returns:
      the primary key of this o auth2 authorization
    • getRefreshTokenContent

      public String getRefreshTokenContent()
      Returns the refresh token content of this o auth2 authorization.
      Specified by:
      getRefreshTokenContent in interface OAuth2AuthorizationModel
      Returns:
      the refresh token content of this o auth2 authorization
    • getRefreshTokenContentHash

      public long getRefreshTokenContentHash()
      Returns the refresh token content hash of this o auth2 authorization.
      Specified by:
      getRefreshTokenContentHash in interface OAuth2AuthorizationModel
      Returns:
      the refresh token content hash of this o auth2 authorization
    • getRefreshTokenCreateDate

      public Date getRefreshTokenCreateDate()
      Returns the refresh token create date of this o auth2 authorization.
      Specified by:
      getRefreshTokenCreateDate in interface OAuth2AuthorizationModel
      Returns:
      the refresh token create date of this o auth2 authorization
    • getRefreshTokenExpirationDate

      public Date getRefreshTokenExpirationDate()
      Returns the refresh token expiration date of this o auth2 authorization.
      Specified by:
      getRefreshTokenExpirationDate in interface OAuth2AuthorizationModel
      Returns:
      the refresh token expiration date of this o auth2 authorization
    • getRememberDeviceContent

      public String getRememberDeviceContent()
      Returns the remember device content of this o auth2 authorization.
      Specified by:
      getRememberDeviceContent in interface OAuth2AuthorizationModel
      Returns:
      the remember device content of this o auth2 authorization
    • getRemoteHostInfo

      public String getRemoteHostInfo()
      Returns the remote host info of this o auth2 authorization.
      Specified by:
      getRemoteHostInfo in interface OAuth2AuthorizationModel
      Returns:
      the remote host info of this o auth2 authorization
    • getRemoteIPInfo

      public String getRemoteIPInfo()
      Returns the remote ip info of this o auth2 authorization.
      Specified by:
      getRemoteIPInfo in interface OAuth2AuthorizationModel
      Returns:
      the remote ip info of this o auth2 authorization
    • getUserId

      public long getUserId()
      Returns the user ID of this o auth2 authorization.
      Specified by:
      getUserId in interface OAuth2AuthorizationModel
      Returns:
      the user ID of this o auth2 authorization
    • getUserName

      public String getUserName()
      Returns the user name of this o auth2 authorization.
      Specified by:
      getUserName in interface OAuth2AuthorizationModel
      Returns:
      the user name of this o auth2 authorization
    • getUserUuid

      public String getUserUuid()
      Returns the user uuid of this o auth2 authorization.
      Specified by:
      getUserUuid in interface OAuth2AuthorizationModel
      Returns:
      the user uuid of this o auth2 authorization
    • persist

      public void persist()
      Specified by:
      persist in interface com.liferay.portal.kernel.model.PersistedModel
    • setAccessTokenContent

      public void setAccessTokenContent(String accessTokenContent)
      Sets the access token content of this o auth2 authorization.
      Specified by:
      setAccessTokenContent in interface OAuth2AuthorizationModel
      Parameters:
      accessTokenContent - the access token content of this o auth2 authorization
    • setAccessTokenContentHash

      public void setAccessTokenContentHash(long accessTokenContentHash)
      Sets the access token content hash of this o auth2 authorization.
      Specified by:
      setAccessTokenContentHash in interface OAuth2AuthorizationModel
      Parameters:
      accessTokenContentHash - the access token content hash of this o auth2 authorization
    • setAccessTokenCreateDate

      public void setAccessTokenCreateDate(Date accessTokenCreateDate)
      Sets the access token create date of this o auth2 authorization.
      Specified by:
      setAccessTokenCreateDate in interface OAuth2AuthorizationModel
      Parameters:
      accessTokenCreateDate - the access token create date of this o auth2 authorization
    • setAccessTokenExpirationDate

      public void setAccessTokenExpirationDate(Date accessTokenExpirationDate)
      Sets the access token expiration date of this o auth2 authorization.
      Specified by:
      setAccessTokenExpirationDate in interface OAuth2AuthorizationModel
      Parameters:
      accessTokenExpirationDate - the access token expiration date of this o auth2 authorization
    • setCompanyId

      public void setCompanyId(long companyId)
      Sets the company ID of this o auth2 authorization.
      Specified by:
      setCompanyId in interface OAuth2AuthorizationModel
      Specified by:
      setCompanyId in interface com.liferay.portal.kernel.model.ShardedModel
      Parameters:
      companyId - the company ID of this o auth2 authorization
    • setCreateDate

      public void setCreateDate(Date createDate)
      Sets the create date of this o auth2 authorization.
      Specified by:
      setCreateDate in interface OAuth2AuthorizationModel
      Parameters:
      createDate - the create date of this o auth2 authorization
    • setOAuth2ApplicationId

      public void setOAuth2ApplicationId(long oAuth2ApplicationId)
      Sets the o auth2 application ID of this o auth2 authorization.
      Specified by:
      setOAuth2ApplicationId in interface OAuth2AuthorizationModel
      Parameters:
      oAuth2ApplicationId - the o auth2 application ID of this o auth2 authorization
    • setOAuth2ApplicationScopeAliasesId

      public void setOAuth2ApplicationScopeAliasesId(long oAuth2ApplicationScopeAliasesId)
      Sets the o auth2 application scope aliases ID of this o auth2 authorization.
      Specified by:
      setOAuth2ApplicationScopeAliasesId in interface OAuth2AuthorizationModel
      Parameters:
      oAuth2ApplicationScopeAliasesId - the o auth2 application scope aliases ID of this o auth2 authorization
    • setOAuth2AuthorizationId

      public void setOAuth2AuthorizationId(long oAuth2AuthorizationId)
      Sets the o auth2 authorization ID of this o auth2 authorization.
      Specified by:
      setOAuth2AuthorizationId in interface OAuth2AuthorizationModel
      Parameters:
      oAuth2AuthorizationId - the o auth2 authorization ID of this o auth2 authorization
    • setPrimaryKey

      public void setPrimaryKey(long primaryKey)
      Sets the primary key of this o auth2 authorization.
      Specified by:
      setPrimaryKey in interface OAuth2AuthorizationModel
      Parameters:
      primaryKey - the primary key of this o auth2 authorization
    • setRefreshTokenContent

      public void setRefreshTokenContent(String refreshTokenContent)
      Sets the refresh token content of this o auth2 authorization.
      Specified by:
      setRefreshTokenContent in interface OAuth2AuthorizationModel
      Parameters:
      refreshTokenContent - the refresh token content of this o auth2 authorization
    • setRefreshTokenContentHash

      public void setRefreshTokenContentHash(long refreshTokenContentHash)
      Sets the refresh token content hash of this o auth2 authorization.
      Specified by:
      setRefreshTokenContentHash in interface OAuth2AuthorizationModel
      Parameters:
      refreshTokenContentHash - the refresh token content hash of this o auth2 authorization
    • setRefreshTokenCreateDate

      public void setRefreshTokenCreateDate(Date refreshTokenCreateDate)
      Sets the refresh token create date of this o auth2 authorization.
      Specified by:
      setRefreshTokenCreateDate in interface OAuth2AuthorizationModel
      Parameters:
      refreshTokenCreateDate - the refresh token create date of this o auth2 authorization
    • setRefreshTokenExpirationDate

      public void setRefreshTokenExpirationDate(Date refreshTokenExpirationDate)
      Sets the refresh token expiration date of this o auth2 authorization.
      Specified by:
      setRefreshTokenExpirationDate in interface OAuth2AuthorizationModel
      Parameters:
      refreshTokenExpirationDate - the refresh token expiration date of this o auth2 authorization
    • setRememberDeviceContent

      public void setRememberDeviceContent(String rememberDeviceContent)
      Sets the remember device content of this o auth2 authorization.
      Specified by:
      setRememberDeviceContent in interface OAuth2AuthorizationModel
      Parameters:
      rememberDeviceContent - the remember device content of this o auth2 authorization
    • setRemoteHostInfo

      public void setRemoteHostInfo(String remoteHostInfo)
      Sets the remote host info of this o auth2 authorization.
      Specified by:
      setRemoteHostInfo in interface OAuth2AuthorizationModel
      Parameters:
      remoteHostInfo - the remote host info of this o auth2 authorization
    • setRemoteIPInfo

      public void setRemoteIPInfo(String remoteIPInfo)
      Sets the remote ip info of this o auth2 authorization.
      Specified by:
      setRemoteIPInfo in interface OAuth2AuthorizationModel
      Parameters:
      remoteIPInfo - the remote ip info of this o auth2 authorization
    • setUserId

      public void setUserId(long userId)
      Sets the user ID of this o auth2 authorization.
      Specified by:
      setUserId in interface OAuth2AuthorizationModel
      Parameters:
      userId - the user ID of this o auth2 authorization
    • setUserName

      public void setUserName(String userName)
      Sets the user name of this o auth2 authorization.
      Specified by:
      setUserName in interface OAuth2AuthorizationModel
      Parameters:
      userName - the user name of this o auth2 authorization
    • setUserUuid

      public void setUserUuid(String userUuid)
      Sets the user uuid of this o auth2 authorization.
      Specified by:
      setUserUuid in interface OAuth2AuthorizationModel
      Parameters:
      userUuid - the user uuid of this o auth2 authorization
    • toXmlString

      public String toXmlString()
      Specified by:
      toXmlString in interface OAuth2AuthorizationModel
    • wrap

      protected OAuth2AuthorizationWrapper wrap(OAuth2Authorization oAuth2Authorization)
      Specified by:
      wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<OAuth2Authorization>