Class OpenIdConnectSessionUtil
com.liferay.portal.security.sso.openid.connect.persistence.service.persistence.impl.OpenIdConnectSessionPersistenceImpl 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 voidcacheResult(OpenIdConnectSession openIdConnectSession) Caches the open ID connect session in the entity cache if it is enabled.static voidcacheResult(List<OpenIdConnectSession> openIdConnectSessions) Caches the open ID connect sessions in the entity cache if it is enabled.static voidstatic voidclearCache(OpenIdConnectSession openIdConnectSession) static intcountAll()Returns the number of open ID connect sessions.static intcountByC_A_C(long companyId, String authServerWellKnownURI, String clientId) Returns the number of open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static intcountByLtAccessTokenExpirationDate(Date accessTokenExpirationDate) Returns the number of open ID connect sessions where accessTokenExpirationDate < ?.static intcountByU_A_C(long userId, String authServerWellKnownURI, String clientId) Returns the number of open ID connect sessions where userId = ? and authServerWellKnownURI = ? and clientId = ?.static intcountByUserId(long userId) Returns the number of open ID connect sessions where userId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static OpenIdConnectSessioncreate(long openIdConnectSessionId) Creates a new open ID connect session with the primary key.static OpenIdConnectSessionfetchByC_A_C_First(long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static OpenIdConnectSessionfetchByC_A_C_Last(long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static OpenIdConnectSessionfetchByLtAccessTokenExpirationDate_First(Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where accessTokenExpirationDate < ?.static OpenIdConnectSessionfetchByLtAccessTokenExpirationDate_Last(Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where accessTokenExpirationDate < ?.static OpenIdConnectSessionfetchByPrimaryKey(long openIdConnectSessionId) Returns the open ID connect session with the primary key or returnsnullif it could not be found.static Map<Serializable, OpenIdConnectSession> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static OpenIdConnectSessionfetchByU_A_C(long userId, String authServerWellKnownURI, String clientId) Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or returnsnullif it could not be found.static OpenIdConnectSessionfetchByU_A_C(long userId, String authServerWellKnownURI, String clientId, boolean useFinderCache) Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or returnsnullif it could not be found, optionally using the finder cache.static OpenIdConnectSessionfetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where userId = ?.static OpenIdConnectSessionfetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where userId = ?.static List<OpenIdConnectSession> findAll()Returns all the open ID connect sessions.static List<OpenIdConnectSession> findAll(int start, int end) Returns a range of all the open ID connect sessions.static List<OpenIdConnectSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns an ordered range of all the open ID connect sessions.static List<OpenIdConnectSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the open ID connect sessions.static List<OpenIdConnectSession> findByC_A_C(long companyId, String authServerWellKnownURI, String clientId) Returns all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static List<OpenIdConnectSession> findByC_A_C(long companyId, String authServerWellKnownURI, String clientId, int start, int end) Returns a range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static List<OpenIdConnectSession> findByC_A_C(long companyId, String authServerWellKnownURI, String clientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns an ordered range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static List<OpenIdConnectSession> findByC_A_C(long companyId, String authServerWellKnownURI, String clientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static OpenIdConnectSessionfindByC_A_C_First(long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static OpenIdConnectSessionfindByC_A_C_Last(long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static OpenIdConnectSession[]findByC_A_C_PrevAndNext(long openIdConnectSessionId, long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.static List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(Date accessTokenExpirationDate) Returns all the open ID connect sessions where accessTokenExpirationDate < ?.static List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(Date accessTokenExpirationDate, int start, int end) Returns a range of all the open ID connect sessions where accessTokenExpirationDate < ?.static List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(Date accessTokenExpirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns an ordered range of all the open ID connect sessions where accessTokenExpirationDate < ?.static List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(Date accessTokenExpirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the open ID connect sessions where accessTokenExpirationDate < ?.static OpenIdConnectSessionfindByLtAccessTokenExpirationDate_First(Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where accessTokenExpirationDate < ?.static OpenIdConnectSessionfindByLtAccessTokenExpirationDate_Last(Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where accessTokenExpirationDate < ?.static OpenIdConnectSession[]findByLtAccessTokenExpirationDate_PrevAndNext(long openIdConnectSessionId, Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where accessTokenExpirationDate < ?.static OpenIdConnectSessionfindByPrimaryKey(long openIdConnectSessionId) Returns the open ID connect session with the primary key or throws aNoSuchSessionExceptionif it could not be found.static OpenIdConnectSessionfindByU_A_C(long userId, String authServerWellKnownURI, String clientId) Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or throws aNoSuchSessionExceptionif it could not be found.static List<OpenIdConnectSession> findByUserId(long userId) Returns all the open ID connect sessions where userId = ?.static List<OpenIdConnectSession> findByUserId(long userId, int start, int end) Returns a range of all the open ID connect sessions where userId = ?.static List<OpenIdConnectSession> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns an ordered range of all the open ID connect sessions where userId = ?.static List<OpenIdConnectSession> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the open ID connect sessions where userId = ?.static OpenIdConnectSessionfindByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where userId = ?.static OpenIdConnectSessionfindByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where userId = ?.static OpenIdConnectSession[]findByUserId_PrevAndNext(long openIdConnectSessionId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where userId = ?.static List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) static OpenIdConnectSessionremove(long openIdConnectSessionId) Removes the open ID connect session with the primary key from the database.static voidRemoves all the open ID connect sessions from the database.static voidremoveByC_A_C(long companyId, String authServerWellKnownURI, String clientId) Removes all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ? from the database.static voidremoveByLtAccessTokenExpirationDate(Date accessTokenExpirationDate) Removes all the open ID connect sessions where accessTokenExpirationDate < ? from the database.static OpenIdConnectSessionremoveByU_A_C(long userId, String authServerWellKnownURI, String clientId) Removes the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? from the database.static voidremoveByUserId(long userId) Removes all the open ID connect sessions where userId = ? from the database.static voidsetPersistence(OpenIdConnectSessionPersistence persistence) static OpenIdConnectSessionupdate(OpenIdConnectSession openIdConnectSession) static OpenIdConnectSessionupdate(OpenIdConnectSession openIdConnectSession, com.liferay.portal.kernel.service.ServiceContext serviceContext) static OpenIdConnectSessionupdateImpl(OpenIdConnectSession openIdConnectSession)
-
Constructor Details
-
OpenIdConnectSessionUtil
public OpenIdConnectSessionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,OpenIdConnectSession> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<OpenIdConnectSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static OpenIdConnectSession update(OpenIdConnectSession openIdConnectSession, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUserId
Returns all the open ID connect sessions where userId = ?.- Parameters:
userId- the user ID- Returns:
- the matching open ID connect sessions
-
findByUserId
Returns a range of all the open ID connect sessions 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 fromOpenIdConnectSessionModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)- Returns:
- the range of matching open ID connect sessions
-
findByUserId
public static List<OpenIdConnectSession> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns an ordered range of all the open ID connect sessions 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 fromOpenIdConnectSessionModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching open ID connect sessions
-
findByUserId
public static List<OpenIdConnectSession> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the open ID connect sessions 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 fromOpenIdConnectSessionModelImpl.- Parameters:
userId- the user IDstart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching open ID connect sessions
-
findByUserId_First
public static OpenIdConnectSession findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the first open ID connect session in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching open ID connect session
-
fetchByUserId_First
public static OpenIdConnectSession fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching open ID connect session, or
nullif a matching open ID connect session could not be found
-
findByUserId_Last
public static OpenIdConnectSession findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the last open ID connect session in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching open ID connect session
-
fetchByUserId_Last
public static OpenIdConnectSession fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where userId = ?.- Parameters:
userId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching open ID connect session, or
nullif a matching open ID connect session could not be found
-
findByUserId_PrevAndNext
public static OpenIdConnectSession[] findByUserId_PrevAndNext(long openIdConnectSessionId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where userId = ?.- Parameters:
openIdConnectSessionId- the primary key of the current open ID connect sessionuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next open ID connect session
-
removeByUserId
public static void removeByUserId(long userId) Removes all the open ID connect sessions where userId = ? from the database.- Parameters:
userId- the user ID
-
countByUserId
public static int countByUserId(long userId) Returns the number of open ID connect sessions where userId = ?.- Parameters:
userId- the user ID- Returns:
- the number of matching open ID connect sessions
-
findByLtAccessTokenExpirationDate
public static List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(Date accessTokenExpirationDate) Returns all the open ID connect sessions where accessTokenExpirationDate < ?.- Parameters:
accessTokenExpirationDate- the access token expiration date- Returns:
- the matching open ID connect sessions
-
findByLtAccessTokenExpirationDate
public static List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(Date accessTokenExpirationDate, int start, int end) Returns a range of all the open ID connect sessions where accessTokenExpirationDate < ?.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 fromOpenIdConnectSessionModelImpl.- Parameters:
accessTokenExpirationDate- the access token expiration datestart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)- Returns:
- the range of matching open ID connect sessions
-
findByLtAccessTokenExpirationDate
public static List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(Date accessTokenExpirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns an ordered range of all the open ID connect sessions where accessTokenExpirationDate < ?.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 fromOpenIdConnectSessionModelImpl.- Parameters:
accessTokenExpirationDate- the access token expiration datestart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching open ID connect sessions
-
findByLtAccessTokenExpirationDate
public static List<OpenIdConnectSession> findByLtAccessTokenExpirationDate(Date accessTokenExpirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the open ID connect sessions where accessTokenExpirationDate < ?.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 fromOpenIdConnectSessionModelImpl.- Parameters:
accessTokenExpirationDate- the access token expiration datestart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching open ID connect sessions
-
findByLtAccessTokenExpirationDate_First
public static OpenIdConnectSession findByLtAccessTokenExpirationDate_First(Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the first open ID connect session in the ordered set where accessTokenExpirationDate < ?.- Parameters:
accessTokenExpirationDate- the access token expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching open ID connect session
-
fetchByLtAccessTokenExpirationDate_First
public static OpenIdConnectSession fetchByLtAccessTokenExpirationDate_First(Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where accessTokenExpirationDate < ?.- Parameters:
accessTokenExpirationDate- the access token expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching open ID connect session, or
nullif a matching open ID connect session could not be found
-
findByLtAccessTokenExpirationDate_Last
public static OpenIdConnectSession findByLtAccessTokenExpirationDate_Last(Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the last open ID connect session in the ordered set where accessTokenExpirationDate < ?.- Parameters:
accessTokenExpirationDate- the access token expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching open ID connect session
-
fetchByLtAccessTokenExpirationDate_Last
public static OpenIdConnectSession fetchByLtAccessTokenExpirationDate_Last(Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where accessTokenExpirationDate < ?.- Parameters:
accessTokenExpirationDate- the access token expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching open ID connect session, or
nullif a matching open ID connect session could not be found
-
findByLtAccessTokenExpirationDate_PrevAndNext
public static OpenIdConnectSession[] findByLtAccessTokenExpirationDate_PrevAndNext(long openIdConnectSessionId, Date accessTokenExpirationDate, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where accessTokenExpirationDate < ?.- Parameters:
openIdConnectSessionId- the primary key of the current open ID connect sessionaccessTokenExpirationDate- the access token expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next open ID connect session
-
removeByLtAccessTokenExpirationDate
Removes all the open ID connect sessions where accessTokenExpirationDate < ? from the database.- Parameters:
accessTokenExpirationDate- the access token expiration date
-
countByLtAccessTokenExpirationDate
Returns the number of open ID connect sessions where accessTokenExpirationDate < ?.- Parameters:
accessTokenExpirationDate- the access token expiration date- Returns:
- the number of matching open ID connect sessions
-
findByC_A_C
public static List<OpenIdConnectSession> findByC_A_C(long companyId, String authServerWellKnownURI, String clientId) Returns all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client ID- Returns:
- the matching open ID connect sessions
-
findByC_A_C
public static List<OpenIdConnectSession> findByC_A_C(long companyId, String authServerWellKnownURI, String clientId, int start, int end) Returns a range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.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 fromOpenIdConnectSessionModelImpl.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDstart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)- Returns:
- the range of matching open ID connect sessions
-
findByC_A_C
public static List<OpenIdConnectSession> findByC_A_C(long companyId, String authServerWellKnownURI, String clientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns an ordered range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.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 fromOpenIdConnectSessionModelImpl.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDstart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching open ID connect sessions
-
findByC_A_C
public static List<OpenIdConnectSession> findByC_A_C(long companyId, String authServerWellKnownURI, String clientId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.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 fromOpenIdConnectSessionModelImpl.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDstart- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching open ID connect sessions
-
findByC_A_C_First
public static OpenIdConnectSession findByC_A_C_First(long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the first open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching open ID connect session
-
fetchByC_A_C_First
public static OpenIdConnectSession fetchByC_A_C_First(long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the first open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching open ID connect session, or
nullif a matching open ID connect session could not be found
-
findByC_A_C_Last
public static OpenIdConnectSession findByC_A_C_Last(long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the last open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching open ID connect session
-
fetchByC_A_C_Last
public static OpenIdConnectSession fetchByC_A_C_Last(long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns the last open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching open ID connect session, or
nullif a matching open ID connect session could not be found
-
findByC_A_C_PrevAndNext
public static OpenIdConnectSession[] findByC_A_C_PrevAndNext(long openIdConnectSessionId, long companyId, String authServerWellKnownURI, String clientId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) throws NoSuchSessionException Returns the open ID connect sessions before and after the current open ID connect session in the ordered set where companyId = ? and authServerWellKnownURI = ? and clientId = ?.- Parameters:
openIdConnectSessionId- the primary key of the current open ID connect sessioncompanyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next open ID connect session
-
removeByC_A_C
Removes all the open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ? from the database.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client ID
-
countByC_A_C
Returns the number of open ID connect sessions where companyId = ? and authServerWellKnownURI = ? and clientId = ?.- Parameters:
companyId- the company IDauthServerWellKnownURI- the auth server well known uriclientId- the client ID- Returns:
- the number of matching open ID connect sessions
-
findByU_A_C
public static OpenIdConnectSession findByU_A_C(long userId, String authServerWellKnownURI, String clientId) throws NoSuchSessionException Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or throws aNoSuchSessionExceptionif it could not be found.- Parameters:
userId- the user IDauthServerWellKnownURI- the auth server well known uriclientId- the client ID- Returns:
- the matching open ID connect session
-
fetchByU_A_C
public static OpenIdConnectSession fetchByU_A_C(long userId, String authServerWellKnownURI, String clientId) Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userId- the user IDauthServerWellKnownURI- the auth server well known uriclientId- the client ID- Returns:
- the matching open ID connect session, or
nullif a matching open ID connect session could not be found
-
fetchByU_A_C
public static OpenIdConnectSession fetchByU_A_C(long userId, String authServerWellKnownURI, String clientId, boolean useFinderCache) Returns the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
userId- the user IDauthServerWellKnownURI- the auth server well known uriclientId- the client IDuseFinderCache- whether to use the finder cache- Returns:
- the matching open ID connect session, or
nullif a matching open ID connect session could not be found
-
removeByU_A_C
public static OpenIdConnectSession removeByU_A_C(long userId, String authServerWellKnownURI, String clientId) throws NoSuchSessionException Removes the open ID connect session where userId = ? and authServerWellKnownURI = ? and clientId = ? from the database.- Parameters:
userId- the user IDauthServerWellKnownURI- the auth server well known uriclientId- the client ID- Returns:
- the open ID connect session that was removed
- Throws:
NoSuchSessionException
-
countByU_A_C
Returns the number of open ID connect sessions where userId = ? and authServerWellKnownURI = ? and clientId = ?.- Parameters:
userId- the user IDauthServerWellKnownURI- the auth server well known uriclientId- the client ID- Returns:
- the number of matching open ID connect sessions
-
cacheResult
Caches the open ID connect session in the entity cache if it is enabled.- Parameters:
openIdConnectSession- the open ID connect session
-
cacheResult
Caches the open ID connect sessions in the entity cache if it is enabled.- Parameters:
openIdConnectSessions- the open ID connect sessions
-
create
Creates a new open ID connect session with the primary key. Does not add the open ID connect session to the database.- Parameters:
openIdConnectSessionId- the primary key for the new open ID connect session- Returns:
- the new open ID connect session
-
remove
public static OpenIdConnectSession remove(long openIdConnectSessionId) throws NoSuchSessionException Removes the open ID connect session with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
openIdConnectSessionId- the primary key of the open ID connect session- Returns:
- the open ID connect session that was removed
-
updateImpl
-
findByPrimaryKey
public static OpenIdConnectSession findByPrimaryKey(long openIdConnectSessionId) throws NoSuchSessionException Returns the open ID connect session with the primary key or throws aNoSuchSessionExceptionif it could not be found.- Parameters:
openIdConnectSessionId- the primary key of the open ID connect session- Returns:
- the open ID connect session
-
fetchByPrimaryKey
Returns the open ID connect session with the primary key or returnsnullif it could not be found.- Parameters:
openIdConnectSessionId- the primary key of the open ID connect session- Returns:
- the open ID connect session, or
nullif a open ID connect session with the primary key could not be found
-
findAll
Returns all the open ID connect sessions.- Returns:
- the open ID connect sessions
-
findAll
Returns a range of all the open ID connect sessions.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 fromOpenIdConnectSessionModelImpl.- Parameters:
start- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)- Returns:
- the range of open ID connect sessions
-
findAll
public static List<OpenIdConnectSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator) Returns an ordered range of all the open ID connect sessions.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 fromOpenIdConnectSessionModelImpl.- Parameters:
start- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of open ID connect sessions
-
findAll
public static List<OpenIdConnectSession> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the open ID connect sessions.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 fromOpenIdConnectSessionModelImpl.- Parameters:
start- the lower bound of the range of open ID connect sessionsend- the upper bound of the range of open ID connect sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of open ID connect sessions
-
removeAll
public static void removeAll()Removes all the open ID connect sessions from the database. -
countAll
public static int countAll()Returns the number of open ID connect sessions.- Returns:
- the number of open ID connect sessions
-
getPersistence
-
setPersistence
-