public class OAuth2AuthorizationLocalServiceWrapper extends java.lang.Object implements OAuth2AuthorizationLocalService, com.liferay.portal.kernel.service.ServiceWrapper<OAuth2AuthorizationLocalService>
OAuth2AuthorizationLocalService
.OAuth2AuthorizationLocalService
Constructor and Description |
---|
OAuth2AuthorizationLocalServiceWrapper(OAuth2AuthorizationLocalService oAuth2AuthorizationLocalService) |
Modifier and Type | Method and Description |
---|---|
OAuth2Authorization |
addOAuth2Authorization(long companyId,
long userId,
java.lang.String userName,
long oAuth2ApplicationId,
long oAuth2ApplicationScopeAliasesId,
java.lang.String accessTokenContent,
java.util.Date accessTokenCreateDate,
java.util.Date accessTokenExpirationDate,
java.lang.String remoteIPInfo,
java.lang.String refreshTokenContent,
java.util.Date refreshTokenCreateDate,
java.util.Date refreshTokenExpirationDate)
Deprecated.
As of Mueller (7.2.x), replaced by
addOAuth2Authorization(long, long, String, long,long,
String, Date, Date, String, String, String, Date, Date) |
OAuth2Authorization |
addOAuth2Authorization(long companyId,
long userId,
java.lang.String userName,
long oAuth2ApplicationId,
long oAuth2ApplicationScopeAliasesId,
java.lang.String accessTokenContent,
java.util.Date accessTokenCreateDate,
java.util.Date accessTokenExpirationDate,
java.lang.String remoteHostInfo,
java.lang.String remoteIPInfo,
java.lang.String refreshTokenContent,
java.util.Date refreshTokenCreateDate,
java.util.Date refreshTokenExpirationDate) |
OAuth2Authorization |
addOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
Adds the o auth2 authorization to the database.
|
void |
addOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId,
long oAuth2AuthorizationId) |
void |
addOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId,
OAuth2Authorization oAuth2Authorization) |
void |
addOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId,
java.util.List<OAuth2Authorization> oAuth2Authorizations) |
void |
addOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId,
long[] oAuth2AuthorizationIds) |
void |
clearOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId) |
OAuth2Authorization |
createOAuth2Authorization(long oAuth2AuthorizationId)
Creates a new o auth2 authorization with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
void |
deleteExpiredOAuth2Authorizations() |
OAuth2Authorization |
deleteOAuth2Authorization(long oAuth2AuthorizationId)
Deletes the o auth2 authorization with the primary key from the database.
|
OAuth2Authorization |
deleteOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
Deletes the o auth2 authorization from the database.
|
void |
deleteOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId,
long oAuth2AuthorizationId) |
void |
deleteOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId,
OAuth2Authorization oAuth2Authorization) |
void |
deleteOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId,
java.util.List<OAuth2Authorization> oAuth2Authorizations) |
void |
deleteOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId,
long[] oAuth2AuthorizationIds) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
OAuth2Authorization |
fetchOAuth2Authorization(long oAuth2AuthorizationId) |
OAuth2Authorization |
fetchOAuth2AuthorizationByAccessTokenContent(java.lang.String accessTokenContent) |
OAuth2Authorization |
fetchOAuth2AuthorizationByRefreshTokenContent(java.lang.String refreshTokenContent) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
OAuth2Authorization |
getOAuth2Authorization(long oAuth2AuthorizationId)
Returns the o auth2 authorization with the primary key.
|
OAuth2Authorization |
getOAuth2AuthorizationByAccessTokenContent(java.lang.String accessTokenContent) |
OAuth2Authorization |
getOAuth2AuthorizationByRefreshTokenContent(java.lang.String refreshTokenContent) |
java.util.List<OAuth2Authorization> |
getOAuth2Authorizations(int start,
int end)
Returns a range of all the o auth2 authorizations.
|
java.util.List<OAuth2Authorization> |
getOAuth2Authorizations(long oAuth2ApplicationId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) |
int |
getOAuth2AuthorizationsCount()
Returns the number of o auth2 authorizations.
|
int |
getOAuth2AuthorizationsCount(long oAuth2ApplicationId) |
java.util.List<OAuth2Authorization> |
getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId) |
java.util.List<OAuth2Authorization> |
getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId,
int start,
int end) |
java.util.List<OAuth2Authorization> |
getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) |
int |
getOAuth2ScopeGrantOAuth2AuthorizationsCount(long oAuth2ScopeGrantId) |
long[] |
getOAuth2ScopeGrantPrimaryKeys(long oAuth2AuthorizationId)
Returns the oAuth2ScopeGrantIds of the o auth2 scope grants associated with the o auth2 authorization.
|
java.util.Collection<OAuth2ScopeGrant> |
getOAuth2ScopeGrants(long oAuth2AuthorizationId) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.util.List<OAuth2Authorization> |
getUserOAuth2Authorizations(long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) |
int |
getUserOAuth2AuthorizationsCount(long userId) |
OAuth2AuthorizationLocalService |
getWrappedService() |
boolean |
hasOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId,
long oAuth2AuthorizationId) |
boolean |
hasOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId) |
void |
setOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId,
long[] oAuth2AuthorizationIds) |
void |
setWrappedService(OAuth2AuthorizationLocalService oAuth2AuthorizationLocalService) |
OAuth2Authorization |
updateOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
Updates the o auth2 authorization in the database or adds it if it does not yet exist.
|
public OAuth2AuthorizationLocalServiceWrapper(OAuth2AuthorizationLocalService oAuth2AuthorizationLocalService)
@Deprecated public OAuth2Authorization addOAuth2Authorization(long companyId, long userId, java.lang.String userName, long oAuth2ApplicationId, long oAuth2ApplicationScopeAliasesId, java.lang.String accessTokenContent, java.util.Date accessTokenCreateDate, java.util.Date accessTokenExpirationDate, java.lang.String remoteIPInfo, java.lang.String refreshTokenContent, java.util.Date refreshTokenCreateDate, java.util.Date refreshTokenExpirationDate)
addOAuth2Authorization(long, long, String, long,long,
String, Date, Date, String, String, String, Date, Date)
addOAuth2Authorization
in interface OAuth2AuthorizationLocalService
public OAuth2Authorization addOAuth2Authorization(long companyId, long userId, java.lang.String userName, long oAuth2ApplicationId, long oAuth2ApplicationScopeAliasesId, java.lang.String accessTokenContent, java.util.Date accessTokenCreateDate, java.util.Date accessTokenExpirationDate, java.lang.String remoteHostInfo, java.lang.String remoteIPInfo, java.lang.String refreshTokenContent, java.util.Date refreshTokenCreateDate, java.util.Date refreshTokenExpirationDate)
addOAuth2Authorization
in interface OAuth2AuthorizationLocalService
public OAuth2Authorization addOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
addOAuth2Authorization
in interface OAuth2AuthorizationLocalService
oAuth2Authorization
- the o auth2 authorizationpublic void addOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId, long oAuth2AuthorizationId)
addOAuth2ScopeGrantOAuth2Authorization
in interface OAuth2AuthorizationLocalService
public void addOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId, OAuth2Authorization oAuth2Authorization)
addOAuth2ScopeGrantOAuth2Authorization
in interface OAuth2AuthorizationLocalService
public void addOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, java.util.List<OAuth2Authorization> oAuth2Authorizations)
addOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public void addOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, long[] oAuth2AuthorizationIds)
addOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public void clearOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId)
clearOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public OAuth2Authorization createOAuth2Authorization(long oAuth2AuthorizationId)
createOAuth2Authorization
in interface OAuth2AuthorizationLocalService
oAuth2AuthorizationId
- the primary key for the new o auth2 authorizationpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface OAuth2AuthorizationLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public void deleteExpiredOAuth2Authorizations()
deleteExpiredOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public OAuth2Authorization deleteOAuth2Authorization(long oAuth2AuthorizationId) throws com.liferay.portal.kernel.exception.PortalException
deleteOAuth2Authorization
in interface OAuth2AuthorizationLocalService
oAuth2AuthorizationId
- the primary key of the o auth2 authorizationPortalException
- if a o auth2 authorization with the primary key could not be foundpublic OAuth2Authorization deleteOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
deleteOAuth2Authorization
in interface OAuth2AuthorizationLocalService
oAuth2Authorization
- the o auth2 authorizationpublic void deleteOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId, long oAuth2AuthorizationId)
deleteOAuth2ScopeGrantOAuth2Authorization
in interface OAuth2AuthorizationLocalService
public void deleteOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId, OAuth2Authorization oAuth2Authorization)
deleteOAuth2ScopeGrantOAuth2Authorization
in interface OAuth2AuthorizationLocalService
public void deleteOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, java.util.List<OAuth2Authorization> oAuth2Authorizations)
deleteOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public void deleteOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, long[] oAuth2AuthorizationIds)
deleteOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface OAuth2AuthorizationLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface OAuth2AuthorizationLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface OAuth2AuthorizationLocalService
dynamicQuery
- the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl
.
dynamicQuery
in interface OAuth2AuthorizationLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl
.
dynamicQuery
in interface OAuth2AuthorizationLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface OAuth2AuthorizationLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface OAuth2AuthorizationLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic OAuth2Authorization fetchOAuth2Authorization(long oAuth2AuthorizationId)
fetchOAuth2Authorization
in interface OAuth2AuthorizationLocalService
public OAuth2Authorization fetchOAuth2AuthorizationByAccessTokenContent(java.lang.String accessTokenContent)
fetchOAuth2AuthorizationByAccessTokenContent
in interface OAuth2AuthorizationLocalService
public OAuth2Authorization fetchOAuth2AuthorizationByRefreshTokenContent(java.lang.String refreshTokenContent)
fetchOAuth2AuthorizationByRefreshTokenContent
in interface OAuth2AuthorizationLocalService
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface OAuth2AuthorizationLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface OAuth2AuthorizationLocalService
public OAuth2Authorization getOAuth2Authorization(long oAuth2AuthorizationId) throws com.liferay.portal.kernel.exception.PortalException
getOAuth2Authorization
in interface OAuth2AuthorizationLocalService
oAuth2AuthorizationId
- the primary key of the o auth2 authorizationPortalException
- if a o auth2 authorization with the primary key could not be foundpublic OAuth2Authorization getOAuth2AuthorizationByAccessTokenContent(java.lang.String accessTokenContent) throws NoSuchOAuth2AuthorizationException
getOAuth2AuthorizationByAccessTokenContent
in interface OAuth2AuthorizationLocalService
NoSuchOAuth2AuthorizationException
public OAuth2Authorization getOAuth2AuthorizationByRefreshTokenContent(java.lang.String refreshTokenContent) throws NoSuchOAuth2AuthorizationException
getOAuth2AuthorizationByRefreshTokenContent
in interface OAuth2AuthorizationLocalService
NoSuchOAuth2AuthorizationException
public java.util.List<OAuth2Authorization> getOAuth2Authorizations(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl
.
getOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
start
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)public java.util.List<OAuth2Authorization> getOAuth2Authorizations(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
getOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public int getOAuth2AuthorizationsCount()
getOAuth2AuthorizationsCount
in interface OAuth2AuthorizationLocalService
public int getOAuth2AuthorizationsCount(long oAuth2ApplicationId)
getOAuth2AuthorizationsCount
in interface OAuth2AuthorizationLocalService
public java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId)
getOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, int start, int end)
getOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
getOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public int getOAuth2ScopeGrantOAuth2AuthorizationsCount(long oAuth2ScopeGrantId)
getOAuth2ScopeGrantOAuth2AuthorizationsCount
in interface OAuth2AuthorizationLocalService
public long[] getOAuth2ScopeGrantPrimaryKeys(long oAuth2AuthorizationId)
getOAuth2ScopeGrantPrimaryKeys
in interface OAuth2AuthorizationLocalService
oAuth2AuthorizationId
- the oAuth2AuthorizationId of the o auth2 authorizationpublic java.util.Collection<OAuth2ScopeGrant> getOAuth2ScopeGrants(long oAuth2AuthorizationId)
getOAuth2ScopeGrants
in interface OAuth2AuthorizationLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface OAuth2AuthorizationLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface OAuth2AuthorizationLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public java.util.List<OAuth2Authorization> getUserOAuth2Authorizations(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
getUserOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public int getUserOAuth2AuthorizationsCount(long userId)
getUserOAuth2AuthorizationsCount
in interface OAuth2AuthorizationLocalService
public boolean hasOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId, long oAuth2AuthorizationId)
hasOAuth2ScopeGrantOAuth2Authorization
in interface OAuth2AuthorizationLocalService
public boolean hasOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId)
hasOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public void setOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, long[] oAuth2AuthorizationIds)
setOAuth2ScopeGrantOAuth2Authorizations
in interface OAuth2AuthorizationLocalService
public OAuth2Authorization updateOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
updateOAuth2Authorization
in interface OAuth2AuthorizationLocalService
oAuth2Authorization
- the o auth2 authorizationpublic OAuth2AuthorizationLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<OAuth2AuthorizationLocalService>
public void setWrappedService(OAuth2AuthorizationLocalService oAuth2AuthorizationLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<OAuth2AuthorizationLocalService>