@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface OAuth2AuthorizationLocalService
extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService
OAuth2AuthorizationLocalServiceUtil
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) |
boolean |
hasOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId,
long oAuth2AuthorizationId) |
boolean |
hasOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId) |
void |
setOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId,
long[] oAuth2AuthorizationIds) |
OAuth2Authorization |
updateOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
Updates the o auth2 authorization in the database or adds it if it does not yet exist.
|
@Deprecated 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)
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)
@Indexable(type=REINDEX) OAuth2Authorization addOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
oAuth2Authorization
- the o auth2 authorizationvoid 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)
@Transactional(enabled=false) OAuth2Authorization createOAuth2Authorization(long oAuth2AuthorizationId)
oAuth2AuthorizationId
- the primary key for the new o auth2 authorizationcom.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
void deleteExpiredOAuth2Authorizations()
@Indexable(type=DELETE) OAuth2Authorization deleteOAuth2Authorization(long oAuth2AuthorizationId) throws com.liferay.portal.kernel.exception.PortalException
oAuth2AuthorizationId
- the primary key of the o auth2 authorizationcom.liferay.portal.kernel.exception.PortalException
- if a o auth2 authorization with the primary key could not be found@Indexable(type=DELETE) OAuth2Authorization deleteOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
oAuth2Authorization
- the o auth2 authorizationvoid 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) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) <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
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) <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
- 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
)@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic query@Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query@Transactional(propagation=SUPPORTS, readOnly=true) OAuth2Authorization fetchOAuth2Authorization(long oAuth2AuthorizationId)
@Transactional(propagation=SUPPORTS, readOnly=true) OAuth2Authorization fetchOAuth2AuthorizationByAccessTokenContent(java.lang.String accessTokenContent)
@Transactional(propagation=SUPPORTS, readOnly=true) OAuth2Authorization fetchOAuth2AuthorizationByRefreshTokenContent(java.lang.String refreshTokenContent)
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
@Transactional(propagation=SUPPORTS, readOnly=true) OAuth2Authorization getOAuth2Authorization(long oAuth2AuthorizationId) throws com.liferay.portal.kernel.exception.PortalException
oAuth2AuthorizationId
- the primary key of the o auth2 authorizationcom.liferay.portal.kernel.exception.PortalException
- if a o auth2 authorization with the primary key could not be found@Transactional(propagation=SUPPORTS, readOnly=true) OAuth2Authorization getOAuth2AuthorizationByAccessTokenContent(java.lang.String accessTokenContent) throws NoSuchOAuth2AuthorizationException
@Transactional(propagation=SUPPORTS, readOnly=true) OAuth2Authorization getOAuth2AuthorizationByRefreshTokenContent(java.lang.String refreshTokenContent) throws NoSuchOAuth2AuthorizationException
@Transactional(propagation=SUPPORTS, readOnly=true) 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
.
start
- the lower bound of the range of o auth2 authorizationsend
- the upper bound of the range of o auth2 authorizations (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<OAuth2Authorization> getOAuth2Authorizations(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getOAuth2AuthorizationsCount()
@Transactional(propagation=SUPPORTS, readOnly=true) int getOAuth2AuthorizationsCount(long oAuth2ApplicationId)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, int start, int end)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getOAuth2ScopeGrantOAuth2AuthorizationsCount(long oAuth2ScopeGrantId)
@Transactional(propagation=SUPPORTS, readOnly=true) long[] getOAuth2ScopeGrantPrimaryKeys(long oAuth2AuthorizationId)
oAuth2AuthorizationId
- the oAuth2AuthorizationId of the o auth2 authorization@Transactional(propagation=SUPPORTS, readOnly=true) java.util.Collection<OAuth2ScopeGrant> getOAuth2ScopeGrants(long oAuth2AuthorizationId)
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<OAuth2Authorization> getUserOAuth2Authorizations(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getUserOAuth2AuthorizationsCount(long userId)
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasOAuth2ScopeGrantOAuth2Authorization(long oAuth2ScopeGrantId, long oAuth2AuthorizationId)
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId)
void setOAuth2ScopeGrantOAuth2Authorizations(long oAuth2ScopeGrantId, long[] oAuth2AuthorizationIds)
@Indexable(type=REINDEX) OAuth2Authorization updateOAuth2Authorization(OAuth2Authorization oAuth2Authorization)
oAuth2Authorization
- the o auth2 authorization