Class OAuth2AuthorizationUtil
com.liferay.oauth2.provider.service.persistence.impl.OAuth2AuthorizationPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Adds an association between the o auth2 authorization and the o auth2 scope grant.static booleanaddOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant) Adds an association between the o auth2 authorization and the o auth2 scope grant.static booleanaddOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Adds an association between the o auth2 authorization and the o auth2 scope grants.static booleanaddOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants) Adds an association between the o auth2 authorization and the o auth2 scope grants.static voidcacheResult(OAuth2Authorization oAuth2Authorization) Caches the o auth2 authorization in the entity cache if it is enabled.static voidcacheResult(List<OAuth2Authorization> oAuth2Authorizations) Caches the o auth2 authorizations in the entity cache if it is enabled.static voidstatic voidclearCache(OAuth2Authorization oAuth2Authorization) static voidclearOAuth2ScopeGrants(long pk) Clears all associations between the o auth2 authorization and its o auth2 scope grants.static booleancontainsOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Returnstrueif the o auth2 scope grant is associated with the o auth2 authorization.static booleancontainsOAuth2ScopeGrants(long pk) Returnstrueif the o auth2 authorization has any o auth2 scope grants associated with it.static intcountAll()Returns the number of o auth2 authorizations.static intcountByC_ATCH(long companyId, long accessTokenContentHash) Returns the number of o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.static intcountByC_RTCH(long companyId, long refreshTokenContentHash) Returns the number of o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.static intcountByOAuth2ApplicationId(long oAuth2ApplicationId) Returns the number of o auth2 authorizations where oAuth2ApplicationId = ?.static intcountByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Returns the number of o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.static intcountByUserId(long userId) Returns the number of o auth2 authorizations where userId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static OAuth2Authorizationcreate(long oAuth2AuthorizationId) Creates a new o auth2 authorization with the primary key.static OAuth2AuthorizationfetchByC_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 = ?.static OAuth2AuthorizationfetchByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.static OAuth2AuthorizationfetchByC_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 = ?.static OAuth2AuthorizationfetchByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.static OAuth2AuthorizationfetchByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.static OAuth2AuthorizationfetchByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.static OAuth2AuthorizationfetchByPrimaryKey(long oAuth2AuthorizationId) Returns the o auth2 authorization with the primary key or returnsnullif it could not be found.static Map<Serializable,OAuth2Authorization> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static OAuth2AuthorizationfetchByU_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 = ?.static OAuth2AuthorizationfetchByU_O_R_Last(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.static OAuth2AuthorizationfetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where userId = ?.static OAuth2AuthorizationfetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where userId = ?.static List<OAuth2Authorization>findAll()Returns all the o auth2 authorizations.static List<OAuth2Authorization>findAll(int start, int end) Returns a range of all the o auth2 authorizations.static List<OAuth2Authorization>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations.static List<OAuth2Authorization>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations.static List<OAuth2Authorization>findByC_ATCH(long companyId, long accessTokenContentHash) Returns all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ?.static 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 = ?.static 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 = ?.static 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 = ?.static OAuth2AuthorizationfindByC_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 = ?.static OAuth2AuthorizationfindByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.static OAuth2Authorization[]findByC_ATCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.static List<OAuth2Authorization>findByC_RTCH(long companyId, long refreshTokenContentHash) Returns all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ?.static 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 = ?.static 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 = ?.static 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 = ?.static OAuth2AuthorizationfindByC_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 = ?.static OAuth2AuthorizationfindByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.static OAuth2Authorization[]findByC_RTCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.static List<OAuth2Authorization>findByOAuth2ApplicationId(long oAuth2ApplicationId) Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.static List<OAuth2Authorization>findByOAuth2ApplicationId(long oAuth2ApplicationId, int start, int end) Returns a range of all the o auth2 authorizations where oAuth2ApplicationId = ?.static 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 = ?.static 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 = ?.static OAuth2AuthorizationfindByOAuth2ApplicationId_First(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.static OAuth2AuthorizationfindByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.static OAuth2Authorization[]findByOAuth2ApplicationId_PrevAndNext(long oAuth2AuthorizationId, long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.static OAuth2AuthorizationfindByPrimaryKey(long oAuth2AuthorizationId) Returns the o auth2 authorization with the primary key or throws aNoSuchOAuth2AuthorizationExceptionif it could not be found.static List<OAuth2Authorization>findByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Returns all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.static 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 = ?.static 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 = ?.static 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 = ?.static OAuth2AuthorizationfindByU_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 = ?.static OAuth2AuthorizationfindByU_O_R_Last(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.static OAuth2Authorization[]findByU_O_R_PrevAndNext(long oAuth2AuthorizationId, long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.static List<OAuth2Authorization>findByUserId(long userId) Returns all the o auth2 authorizations where userId = ?.static List<OAuth2Authorization>findByUserId(long userId, int start, int end) Returns a range of all the o auth2 authorizations where userId = ?.static 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 = ?.static 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 = ?.static OAuth2AuthorizationfindByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the first o auth2 authorization in the ordered set where userId = ?.static OAuth2AuthorizationfindByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where userId = ?.static OAuth2Authorization[]findByUserId_PrevAndNext(long oAuth2AuthorizationId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ?.static List<OAuth2Authorization>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<OAuth2Authorization>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<OAuth2Authorization>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) static List<OAuth2Authorization>Returns all the o auth2 authorization associated with the o auth2 scope grant.static List<OAuth2Authorization>getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end) Returns all the o auth2 authorization associated with the o auth2 scope grant.static 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.static long[]getOAuth2ScopeGrantPrimaryKeys(long pk) Returns the primaryKeys of o auth2 scope grants associated with the o auth2 authorization.static intgetOAuth2ScopeGrantsSize(long pk) Returns the number of o auth2 scope grants associated with the o auth2 authorization.static OAuth2Authorizationremove(long oAuth2AuthorizationId) Removes the o auth2 authorization with the primary key from the database.static voidRemoves all the o auth2 authorizations from the database.static voidremoveByC_ATCH(long companyId, long accessTokenContentHash) Removes all the o auth2 authorizations where companyId = ? and accessTokenContentHash = ? from the database.static voidremoveByC_RTCH(long companyId, long refreshTokenContentHash) Removes all the o auth2 authorizations where companyId = ? and refreshTokenContentHash = ? from the database.static voidremoveByOAuth2ApplicationId(long oAuth2ApplicationId) Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.static voidremoveByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) Removes all the o auth2 authorizations where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ? from the database.static voidremoveByUserId(long userId) Removes all the o auth2 authorizations where userId = ? from the database.static voidremoveOAuth2ScopeGrant(long pk, long oAuth2ScopeGrantPK) Removes the association between the o auth2 authorization and the o auth2 scope grant.static voidremoveOAuth2ScopeGrant(long pk, OAuth2ScopeGrant oAuth2ScopeGrant) Removes the association between the o auth2 authorization and the o auth2 scope grant.static voidremoveOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Removes the association between the o auth2 authorization and the o auth2 scope grants.static voidremoveOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants) Removes the association between the o auth2 authorization and the o auth2 scope grants.static voidsetOAuth2ScopeGrants(long pk, long[] oAuth2ScopeGrantPKs) Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.static voidsetOAuth2ScopeGrants(long pk, List<OAuth2ScopeGrant> oAuth2ScopeGrants) Sets the o auth2 scope grants associated with the o auth2 authorization, removing and adding associations as necessary.static voidsetPersistence(OAuth2AuthorizationPersistence persistence) static OAuth2Authorizationupdate(OAuth2Authorization oAuth2Authorization) static OAuth2Authorizationupdate(OAuth2Authorization oAuth2Authorization, com.liferay.portal.kernel.service.ServiceContext serviceContext) static OAuth2AuthorizationupdateImpl(OAuth2Authorization oAuth2Authorization)
-
Constructor Details
-
OAuth2AuthorizationUtil
public OAuth2AuthorizationUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,OAuth2Authorization> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<OAuth2Authorization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<OAuth2Authorization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<OAuth2Authorization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static OAuth2Authorization update(OAuth2Authorization oAuth2Authorization, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
-
findByUserId
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 foundNoSuchOAuth2AuthorizationException
-
fetchByUserId_First
public static 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
-
findByUserId_Last
public static OAuth2Authorization findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the last o auth2 authorization in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be foundNoSuchOAuth2AuthorizationException
-
fetchByUserId_Last
public static OAuth2Authorization fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last o auth2 authorization in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
findByUserId_PrevAndNext
public static OAuth2Authorization[] findByUserId_PrevAndNext(long oAuth2AuthorizationId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ?.- Parameters:
oAuth2AuthorizationId- the primary key of the current o auth2 authorizationuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a o auth2 authorization with the primary key could not be foundNoSuchOAuth2AuthorizationException
-
removeByUserId
public static void removeByUserId(long userId) Removes all the o auth2 authorizations where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
public static 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
Returns all the o auth2 authorizations where oAuth2ApplicationId = ?.- Parameters:
oAuth2ApplicationId- the o auth2 application ID- Returns:
- the matching o auth2 authorizations
-
findByOAuth2ApplicationId
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
-
findByOAuth2ApplicationId
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 foundNoSuchOAuth2AuthorizationException
-
fetchByOAuth2ApplicationId_First
public static 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
-
findByOAuth2ApplicationId_Last
public static OAuth2Authorization findByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the last 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 last matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be foundNoSuchOAuth2AuthorizationException
-
fetchByOAuth2ApplicationId_Last
public static OAuth2Authorization fetchByOAuth2ApplicationId_Last(long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last 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 last matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
findByOAuth2ApplicationId_PrevAndNext
public static OAuth2Authorization[] findByOAuth2ApplicationId_PrevAndNext(long oAuth2AuthorizationId, long oAuth2ApplicationId, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where oAuth2ApplicationId = ?.- Parameters:
oAuth2AuthorizationId- the primary key of the current o auth2 authorizationoAuth2ApplicationId- the o auth2 application IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a o auth2 authorization with the primary key could not be foundNoSuchOAuth2AuthorizationException
-
removeByOAuth2ApplicationId
public static void removeByOAuth2ApplicationId(long oAuth2ApplicationId) Removes all the o auth2 authorizations where oAuth2ApplicationId = ? from the database.- Parameters:
oAuth2ApplicationId- the o auth2 application ID
-
countByOAuth2ApplicationId
public static 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
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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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_ATCH
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 foundNoSuchOAuth2AuthorizationException
-
fetchByC_ATCH_First
public static 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
-
findByC_ATCH_Last
public static OAuth2Authorization findByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the last 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 last matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be foundNoSuchOAuth2AuthorizationException
-
fetchByC_ATCH_Last
public static OAuth2Authorization fetchByC_ATCH_Last(long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last 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 last matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
findByC_ATCH_PrevAndNext
public static OAuth2Authorization[] findByC_ATCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long accessTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and accessTokenContentHash = ?.- Parameters:
oAuth2AuthorizationId- the primary key of the current o auth2 authorizationcompanyId- the company IDaccessTokenContentHash- the access token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a o auth2 authorization with the primary key could not be foundNoSuchOAuth2AuthorizationException
-
removeByC_ATCH
public static 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
public static 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
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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
-
findByC_RTCH
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 foundNoSuchOAuth2AuthorizationException
-
fetchByC_RTCH_First
public static 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
-
findByC_RTCH_Last
public static OAuth2Authorization findByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the last 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 last matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be foundNoSuchOAuth2AuthorizationException
-
fetchByC_RTCH_Last
public static OAuth2Authorization fetchByC_RTCH_Last(long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last 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 last matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
findByC_RTCH_PrevAndNext
public static OAuth2Authorization[] findByC_RTCH_PrevAndNext(long oAuth2AuthorizationId, long companyId, long refreshTokenContentHash, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where companyId = ? and refreshTokenContentHash = ?.- Parameters:
oAuth2AuthorizationId- the primary key of the current o auth2 authorizationcompanyId- the company IDrefreshTokenContentHash- the refresh token content hashorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a o auth2 authorization with the primary key could not be foundNoSuchOAuth2AuthorizationException
-
removeByC_RTCH
public static 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
public static 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
public static 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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
-
findByU_O_R
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 foundNoSuchOAuth2AuthorizationException
-
fetchByU_O_R_First
public static 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
-
findByU_O_R_Last
public static OAuth2Authorization findByU_O_R_Last(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the last 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 last matching o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a matching o auth2 authorization could not be foundNoSuchOAuth2AuthorizationException
-
fetchByU_O_R_Last
public static OAuth2Authorization fetchByU_O_R_Last(long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns the last 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 last matching o auth2 authorization, or
nullif a matching o auth2 authorization could not be found
-
findByU_O_R_PrevAndNext
public static OAuth2Authorization[] findByU_O_R_PrevAndNext(long oAuth2AuthorizationId, long userId, long oAuth2ApplicationId, String rememberDeviceContent, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) throws NoSuchOAuth2AuthorizationException Returns the o auth2 authorizations before and after the current o auth2 authorization in the ordered set where userId = ? and oAuth2ApplicationId = ? and rememberDeviceContent = ?.- Parameters:
oAuth2AuthorizationId- the primary key of the current o auth2 authorizationuserId- the user IDoAuth2ApplicationId- the o auth2 application IDrememberDeviceContent- the remember device contentorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next o auth2 authorization
- Throws:
NoSuchOAuth2AuthorizationException- if a o auth2 authorization with the primary key could not be foundNoSuchOAuth2AuthorizationException
-
removeByU_O_R
public static void removeByU_O_R(long userId, long oAuth2ApplicationId, String rememberDeviceContent) 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
-
cacheResult
Caches the o auth2 authorization in the entity cache if it is enabled.- Parameters:
oAuth2Authorization- the o auth2 authorization
-
cacheResult
Caches the o auth2 authorizations in the entity cache if it is enabled.- Parameters:
oAuth2Authorizations- the 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
public static OAuth2Authorization remove(long oAuth2AuthorizationId) throws NoSuchOAuth2AuthorizationException 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 foundNoSuchOAuth2AuthorizationException
-
updateImpl
-
findByPrimaryKey
public static 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 foundNoSuchOAuth2AuthorizationException
-
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
-
findAll
Returns all the o auth2 authorizations.- Returns:
- the o auth2 authorizations
-
findAll
Returns a range of all the o auth2 authorizations.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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- Parameters:
start- 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 o auth2 authorizations
-
findAll
public static List<OAuth2Authorization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator) Returns an ordered range of all the o auth2 authorizations.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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- Parameters:
start- 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 o auth2 authorizations
-
findAll
public static List<OAuth2Authorization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OAuth2Authorization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the o auth2 authorizations.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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- Parameters:
start- 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 o auth2 authorizations
-
removeAll
public static void removeAll()Removes all the o auth2 authorizations from the database. -
countAll
public static int countAll()Returns the number of o auth2 authorizations.- Returns:
- the number of o auth2 authorizations
-
getOAuth2ScopeGrantPrimaryKeys
public static 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
public static List<OAuth2Authorization> getOAuth2ScopeGrantOAuth2Authorizations(long pk, int start, int end) 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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 bothstartandendtoQueryUtil#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 fromOAuth2AuthorizationModelImpl.- 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
-
getPersistence
-
setPersistence
-