Interface OAuth2AuthorizationPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<OAuth2Authorization>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Adds an association between the o auth2 authorization and the o auth2 scope grant.booleanaddOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant) Adds an association between the o auth2 authorization and the o auth2 scope grant.booleanaddOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Adds an association between the o auth2 authorization and the o auth2 scope grants.booleanaddOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants) Adds an association between the o auth2 authorization and the o auth2 scope grants.voidclearOAuth2ScopeGrants(long pk) Clears all associations between the o auth2 authorization and its o auth2 scope grants.booleancontainsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Returnstrueif the o auth2 scope grant is associated with the o auth2 authorization.booleancontainsOAuth2ScopeGrants(long pk) Returnstrueif the o auth2 authorization has any o auth2 scope grants associated with it.intcountByC_ATCH(long companyId, long accessTokenContentHash) Returns the number of o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.intcountByC_RTCH(long companyId, long refreshTokenContentHash) Returns the number of o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.intcountByOAuth2ApplicationId(long oAuth2ApplicationId) Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.intcountByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.intcountByUserId(long userId) Returns the number of o auth2 authorizations where userId = ?.create(long oAuth2AuthorizationId) Creates a new o auth2 authorization with the primary key.fetchByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.fetchByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.fetchByPrimaryKey(long oAuth2AuthorizationId) Returns the o auth2 authorization with the primary key or returnsnullif it could not be found.fetchByU_O_R_First(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where userId = ?.default List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash) Returns all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.default List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end) Returns a range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.default List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.findByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.default List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash) Returns all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.default List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end) Returns a range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.default List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.findByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.default List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId) Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.default List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end) Returns a range of all the o auth2 authorizations where oAuth2ApplicationId = ?.default List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.findByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.findByPrimaryKey(long oAuth2AuthorizationId) Returns the o auth2 authorization with the primary key or throws aNoSuchOAuth2AuthorizationExceptionif it could not be found.default List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Returns all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.default List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end) Returns a range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.default List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.findByU_O_R_First(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.default List<OAuth2Authorization> findByUserId(long userId) Returns all the o auth2 authorizations where userId = ?.default List<OAuth2Authorization> findByUserId(long userId, int start, int end) Returns a range of all the o auth2 authorizations where userId = ?.default List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where userId = ?.findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where userId = ?.findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where userId = ?.Returns all the o auth2 authorization associated with the o auth2 scope grant.getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end) Returns all the o auth2 authorization associated with the o auth2 scope grant.getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns all the o auth2 authorization associated with the o auth2 scope grant.long[]getOAuth2ScopeGrantPrimaryKeys(long pk) Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization.intgetOAuth2ScopeGrantsSize(long pk) Returns the number of o auth2 scope grants associated with the o auth2 authorization.remove(long oAuth2AuthorizationId) Removes the o auth2 authorization with the primary key from the database.voidremoveByC_ATCH(long companyId, long accessTokenContentHash) Removes all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ? from the database.voidremoveByC_RTCH(long companyId, long refreshTokenContentHash) Removes all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ? from the database.voidremoveByOAuth2ApplicationId(long oAuth2ApplicationId) Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.voidremoveByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Removes all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ? from the database.voidremoveByUserId(long userId) Removes all the o auth2 authorizations where userId = ? from the database.voidremoveOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Removes the association between the o auth2 authorization and the o auth2 scope grant.voidremoveOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant) Removes the association between the o auth2 authorization and the o auth2 scope grant.voidremoveOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Removes the association between the o auth2 authorization and the o auth2 scope grants.voidremoveOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants) Removes the association between the o auth2 authorization and the o auth2 scope grants.voidsetOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.voidsetOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants) Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.updateImpl(OAuth2Authorization oAuth2Authorization) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByUserId
List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching o auth2 authorizations
-
findByUserId_First
OAuth2Authorization findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the first o auth2 authorization in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be found
-
fetchByUserId_First
OAuth2Authorization fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
removeByUserId
void removeByUserId(long userId) Removes all the o auth2 authorizations where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
int countByUserId(long userId) Returns the number of o auth2 authorizations where userId = ?.- Parameters:
userId- the user ID- Returns:
- the number of matching o auth2 authorizations
-
findByOAuth2ApplicationId
List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching o auth2 authorizations
-
findByOAuth2ApplicationId_First
OAuth2Authorization findByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be found
-
fetchByOAuth2ApplicationId_First
OAuth2Authorization fetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
removeByOAuth2ApplicationId
void removeByOAuth2ApplicationId(long oAuth2ApplicationId) Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.- Parameters:
oAuth2ApplicationId- the o auth2 application ID
-
countByOAuth2ApplicationId
int countByOAuth2ApplicationId(long oAuth2ApplicationId) Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application ID- Returns:
- the number of matching o auth2 authorizations
-
findByC_ATCH
List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching o auth2 authorizations
-
findByC_ATCH_First
OAuth2Authorization findByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be found
-
fetchByC_ATCH_First
OAuth2Authorization fetchByC_ATCH_First(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
removeByC_ATCH
void removeByC_ATCH(long companyId, long accessTokenContentHash) Removes all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ? from the database.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hash
-
countByC_ATCH
int countByC_ATCH(long companyId, long accessTokenContentHash) Returns the number of o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hash- Returns:
- the number of matching o auth2 authorizations
-
findByC_RTCH
List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching o auth2 authorizations
-
findByC_RTCH_First
OAuth2Authorization findByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be found
-
fetchByC_RTCH_First
OAuth2Authorization fetchByC_RTCH_First(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
removeByC_RTCH
void removeByC_RTCH(long companyId, long refreshTokenContentHash) Removes all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ? from the database.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hash
-
countByC_RTCH
int countByC_RTCH(long companyId, long refreshTokenContentHash) Returns the number of o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hash- Returns:
- the number of matching o auth2 authorizations
-
findByU_O_R
List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching o auth2 authorizations
-
findByU_O_R_First
OAuth2Authorization findByU_O_R_First(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be found
-
fetchByU_O_R_First
OAuth2Authorization fetchByU_O_R_First(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
removeByU_O_R
Removes all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ? from the database.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device content
-
countByU_O_R
Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device content- Returns:
- the number of matching o auth2 authorizations
-
create
Creates a new o auth2 authorization with the primary key. Does not add the o auth2 authorization to the database.- Parameters:
oAuth2AuthorizationId- the primary key for the new o auth2 authorization- Returns:
- the new o auth2 authorization
-
remove
Removes the o auth2 authorization with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
oAuth2AuthorizationId- the primary key of the o auth2 authorization- Returns:
- the o auth2 authorization that was removed
- Throws:
NoSuchOAuth2AuthorizationException- if a o auth2 authorization with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
OAuth2Authorization findByPrimaryKey(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException Returns the o auth2 authorization with the primary key or throws aNoSuchOAuth2AuthorizationExceptionif it could not be found.- Parameters:
oAuth2AuthorizationId- the primary key of the o auth2 authorization- Returns:
- the o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a o auth2 authorization with the primary key could not be found
-
fetchByPrimaryKey
Returns the o auth2 authorization with the primary key or returnsnullif it could not be found.- Parameters:
oAuth2AuthorizationId- the primary key of the o auth2 authorization- Returns:
- the o auth2 authorization, or
nullif a o auth2 authorization with the primary key could not be found
-
getOAuth2ScopeGrantPrimaryKeys
long[] getOAuth2ScopeGrantPrimaryKeys(long pk) Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization.- Parameters:
pk- the primary key of the o auth2 authorization- Returns:
- long[] of the primaryKeys of o auth2 scope grants associated with the o auth2 authorization
-
getOAuth2ScopeGrantOAuth2Authorizations
Returns all the o auth2 authorization associated with the o auth2 scope grant.- Parameters:
pk- the primary key of the o auth2 scope grant- Returns:
- the o auth2 authorizations associated with the o auth2 scope grant
-
getOAuth2ScopeGrantOAuth2Authorizations
Returns all the o auth2 authorization associated with the o auth2 scope grant.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
pk- the primary key of the o auth2 scope grantstart- the lower bound of the range of o auth2 scope grantsend- the upper bound of the range of o auth2 scope grants (not inclusive)- Returns:
- the range of o auth2 authorizations associated with the o auth2 scope grant
-
getOAuth2ScopeGrantOAuth2Authorizations
List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns all the o auth2 authorization associated with the o auth2 scope grant.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
pk- the primary key of the o auth2 scope grantstart- the lower bound of the range of o auth2 scope grantsend- the upper bound of the range of o auth2 scope grants (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of o auth2 authorizations associated with the o auth2 scope grant
-
getOAuth2ScopeGrantsSize
int getOAuth2ScopeGrantsSize(long pk) Returns the number of o auth2 scope grants associated with the o auth2 authorization.- Parameters:
pk- the primary key of the o auth2 authorization- Returns:
- the number of o auth2 scope grants associated with the o auth2 authorization
-
containsOAuth2ScopeGrant
boolean containsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Returnstrueif the o auth2 scope grant is associated with the o auth2 authorization.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK- the primary key of the o auth2 scope grant- Returns:
trueif the o auth2 scope grant is associated with the o auth2 authorization;falseotherwise
-
containsOAuth2ScopeGrants
boolean containsOAuth2ScopeGrants(long pk) Returnstrueif the o auth2 authorization has any o auth2 scope grants associated with it.- Parameters:
pk- the primary key of the o auth2 authorization to check for associations with o auth2 scope grants- Returns:
trueif the o auth2 authorization has any o auth2 scope grants associated with it;falseotherwise
-
addOAuth2ScopeGrant
boolean addOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Adds an association between the o auth2 authorization and the o auth2 scope grant. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK- the primary key of the o auth2 scope grant- Returns:
trueif an association between the o auth2 authorization and the o auth2 scope grant was added;falseif they were already associated
-
addOAuth2ScopeGrant
Adds an association between the o auth2 authorization and the o auth2 scope grant. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrant- the o auth2 scope grant- Returns:
trueif an association between the o auth2 authorization and the o auth2 scope grant was added;falseif they were already associated
-
addOAuth2ScopeGrants
boolean addOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Adds an association between the o auth2 authorization and the o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrantPKs- the primary keys of the o auth2 scope grants- Returns:
trueif at least one association between the o auth2 authorization and the o auth2 scope grants was added;falseif they were all already associated
-
addOAuth2ScopeGrants
Adds an association between the o auth2 authorization and the o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrants- the o auth2 scope grants- Returns:
trueif at least one association between the o auth2 authorization and the o auth2 scope grants was added;falseif they were all already associated
-
clearOAuth2ScopeGrants
void clearOAuth2ScopeGrants(long pk) Clears all associations between the o auth2 authorization and its o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorization to clear the associated o auth2 scope grants from
-
removeOAuth2ScopeGrant
void removeOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Removes the association between the o auth2 authorization and the o auth2 scope grant. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrantPK- the primary key of the o auth2 scope grant
-
removeOAuth2ScopeGrant
Removes the association between the o auth2 authorization and the o auth2 scope grant. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrant- the o auth2 scope grant
-
removeOAuth2ScopeGrants
void removeOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Removes the association between the o auth2 authorization and the o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrantPKs- the primary keys of the o auth2 scope grants
-
removeOAuth2ScopeGrants
Removes the association between the o auth2 authorization and the o auth2 scope grants. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrants- the o auth2 scope grants
-
setOAuth2ScopeGrants
void setOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrantPKs- the primary keys of the o auth2 scope grants to be associated with the o auth2 authorization
-
setOAuth2ScopeGrants
Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the o auth2 authorizationoAuth2ScopeGrants- the o auth2 scope grants to be associated with the o auth2 authorization
-
findByUserId
Returns all the o auth2 authorizations where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching o auth2 authorizations
-
findByUserId
Returns a range of all the o auth2 authorizations where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of matching o auth2 authorizations
-
findByUserId
default List<OAuth2Authorization> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where userId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching o auth2 authorizations
-
findByOAuth2ApplicationId
Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application ID- Returns:
- the matching o auth2 authorizations
-
findByOAuth2ApplicationId
default List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end) Returns a range of all the o auth2 authorizations where oAuth2ApplicationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of matching o auth2 authorizations
-
findByOAuth2ApplicationId
default List<OAuth2Authorization> findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where oAuth2ApplicationId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
oAuth2ApplicationId- the o auth2 application IDstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching o auth2 authorizations
-
findByC_ATCH
Returns all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hash- Returns:
- the matching o auth2 authorizations
-
findByC_ATCH
default List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end) Returns a range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of matching o auth2 authorizations
-
findByC_ATCH
default List<OAuth2Authorization> findByC_ATCH(long companyId, long accessTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDaccessTokenContentHash- the access token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching o auth2 authorizations
-
findByC_RTCH
Returns all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hash- Returns:
- the matching o auth2 authorizations
-
findByC_RTCH
default List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end) Returns a range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of matching o auth2 authorizations
-
findByC_RTCH
default List<OAuth2Authorization> findByC_RTCH(long companyId, long refreshTokenContentHash, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
companyId- the company IDrefreshTokenContentHash- the refresh token content hashstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching o auth2 authorizations
-
findByU_O_R
default List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Returns all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device content- Returns:
- the matching o auth2 authorizations
-
findByU_O_R
default List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end) Returns a range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)- Returns:
- the range of matching o auth2 authorizations
-
findByU_O_R
default List<OAuth2Authorization> findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.oauth2.provider.model.impl.OAuth2AuthorizationModelImpl.- Parameters:
userId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentstart- the lower bound of the range of o auth2 authorizationsend- the upper bound of the range of o auth2 authorizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching o auth2 authorizations
-