Class SamlIdpSsoSessionUtil
com.liferay.saml.persistence.service.persistence.impl.SamlIdpSsoSessionPersistenceImpl 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(SamlIdpSsoSession samlIdpSsoSession) static voidcacheResult(List<SamlIdpSsoSession> samlIdpSsoSessions) static voidstatic voidclearCache(SamlIdpSsoSession samlIdpSsoSession) static intcountByLtCreateDate(Date createDate) Returns the number of saml idp sso sessions where createDate < ?.static intcountBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey) Returns the number of saml idp sso sessions where samlIdpSsoSessionKey = ?.static intcountByUserId(long userId) Returns the number of saml idp sso sessions where userId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SamlIdpSsoSessioncreate(long samlIdpSsoSessionId) Creates a new saml idp sso session with the primary key.static SamlIdpSsoSessionfetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) Returns the first saml idp sso session in the ordered set where createDate < ?.static SamlIdpSsoSessionfetchByPrimaryKey(long samlIdpSsoSessionId) Returns the saml idp sso session with the primary key or returnsnullif it could not be found.static Map<Serializable, SamlIdpSsoSession> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SamlIdpSsoSessionfetchBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey) Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returnsnullif it could not be found.static SamlIdpSsoSessionfetchBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey, boolean useFinderCache) Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returnsnullif it could not be found, optionally using the finder cache.static SamlIdpSsoSessionfetchByUserId(long userId) Returns the saml idp sso session where userId = ? or returnsnullif it could not be found.static SamlIdpSsoSessionfetchByUserId(long userId, boolean useFinderCache) Returns the saml idp sso session where userId = ? or returnsnullif it could not be found, optionally using the finder cache.static List<SamlIdpSsoSession> findByLtCreateDate(Date createDate) Returns all the saml idp sso sessions where createDate < ?.static List<SamlIdpSsoSession> findByLtCreateDate(Date createDate, int start, int end) Returns a range of all the saml idp sso sessions where createDate < ?.static List<SamlIdpSsoSession> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) Returns an ordered range of all the saml idp sso sessions where createDate < ?.static List<SamlIdpSsoSession> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml idp sso sessions where createDate < ?.static SamlIdpSsoSessionfindByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) Returns the first saml idp sso session in the ordered set where createDate < ?.static SamlIdpSsoSessionfindByPrimaryKey(long samlIdpSsoSessionId) Returns the saml idp sso session with the primary key or throws aNoSuchIdpSsoSessionExceptionif it could not be found.static SamlIdpSsoSessionfindBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey) Returns the saml idp sso session where samlIdpSsoSessionKey = ? or throws aNoSuchIdpSsoSessionExceptionif it could not be found.static SamlIdpSsoSessionfindByUserId(long userId) Returns the saml idp sso session where userId = ? or throws aNoSuchIdpSsoSessionExceptionif it could not be found.static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) static SamlIdpSsoSessionPersistencestatic SamlIdpSsoSessionremove(long samlIdpSsoSessionId) Removes the saml idp sso session with the primary key from the database.static voidremoveByLtCreateDate(Date createDate) Removes all the saml idp sso sessions where createDate < ? from the database.static SamlIdpSsoSessionremoveBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey) Removes the saml idp sso session where samlIdpSsoSessionKey = ? from the database.static SamlIdpSsoSessionremoveByUserId(long userId) Removes the saml idp sso session where userId = ? from the database.static voidsetPersistence(SamlIdpSsoSessionPersistence persistence) static SamlIdpSsoSessionupdate(SamlIdpSsoSession samlIdpSsoSession) static SamlIdpSsoSessionupdate(SamlIdpSsoSession samlIdpSsoSession, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SamlIdpSsoSessionupdateImpl(SamlIdpSsoSession samlIdpSsoSession)
-
Constructor Details
-
SamlIdpSsoSessionUtil
public SamlIdpSsoSessionUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
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
- See Also:
-
findWithDynamicQuery
public static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<SamlIdpSsoSession> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static SamlIdpSsoSession update(SamlIdpSsoSession samlIdpSsoSession, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUserId
Returns the saml idp sso session where userId = ? or throws aNoSuchIdpSsoSessionExceptionif it could not be found.- Parameters:
userId- the user ID- Returns:
- the matching saml idp sso session
-
fetchByUserId
Returns the saml idp sso session where userId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
userId- the user IDuseFinderCache- whether to use the finder cache- Returns:
- the matching saml idp sso session, or
nullif a matching saml idp sso session could not be found
-
removeByUserId
Removes the saml idp sso session where userId = ? from the database.- Parameters:
userId- the user ID- Returns:
- the saml idp sso session that was removed
- Throws:
NoSuchIdpSsoSessionException
-
countByUserId
public static int countByUserId(long userId) Returns the number of saml idp sso sessions where userId = ?.- Parameters:
userId- the user ID- Returns:
- the number of matching saml idp sso sessions
-
findByLtCreateDate
Returns all the saml idp sso sessions where createDate < ?.- Parameters:
createDate- the create date- Returns:
- the matching saml idp sso sessions
-
findByLtCreateDate
Returns a range of all the saml idp sso sessions where createDate < ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.saml.persistence.model.impl.SamlIdpSsoSessionModelImpl.- Parameters:
createDate- the create datestart- the lower bound of the range of saml idp sso sessionsend- the upper bound of the range of saml idp sso sessions (not inclusive)- Returns:
- the range of matching saml idp sso sessions
-
findByLtCreateDate
public static List<SamlIdpSsoSession> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) Returns an ordered range of all the saml idp sso sessions where createDate < ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.saml.persistence.model.impl.SamlIdpSsoSessionModelImpl.- Parameters:
createDate- the create datestart- the lower bound of the range of saml idp sso sessionsend- the upper bound of the range of saml idp sso sessions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching saml idp sso sessions
-
findByLtCreateDate
public static List<SamlIdpSsoSession> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml idp sso sessions where createDate < ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.saml.persistence.model.impl.SamlIdpSsoSessionModelImpl.- Parameters:
createDate- the create datestart- the lower bound of the range of saml idp sso sessionsend- the upper bound of the range of saml idp sso 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 saml idp sso sessions
-
findByLtCreateDate_First
public static SamlIdpSsoSession findByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) throws NoSuchIdpSsoSessionException Returns the first saml idp sso session in the ordered set where createDate < ?.- Parameters:
createDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml idp sso session
-
fetchByLtCreateDate_First
public static SamlIdpSsoSession fetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlIdpSsoSession> orderByComparator) Returns the first saml idp sso session in the ordered set where createDate < ?.- Parameters:
createDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml idp sso session, or
nullif a matching saml idp sso session could not be found
-
removeByLtCreateDate
Removes all the saml idp sso sessions where createDate < ? from the database.- Parameters:
createDate- the create date
-
countByLtCreateDate
Returns the number of saml idp sso sessions where createDate < ?.- Parameters:
createDate- the create date- Returns:
- the number of matching saml idp sso sessions
-
findBySamlIdpSsoSessionKey
public static SamlIdpSsoSession findBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey) throws NoSuchIdpSsoSessionException Returns the saml idp sso session where samlIdpSsoSessionKey = ? or throws aNoSuchIdpSsoSessionExceptionif it could not be found.- Parameters:
samlIdpSsoSessionKey- the saml idp sso session key- Returns:
- the matching saml idp sso session
-
fetchBySamlIdpSsoSessionKey
public static SamlIdpSsoSession fetchBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey, boolean useFinderCache) Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
samlIdpSsoSessionKey- the saml idp sso session keyuseFinderCache- whether to use the finder cache- Returns:
- the matching saml idp sso session, or
nullif a matching saml idp sso session could not be found
-
removeBySamlIdpSsoSessionKey
public static SamlIdpSsoSession removeBySamlIdpSsoSessionKey(String samlIdpSsoSessionKey) throws NoSuchIdpSsoSessionException Removes the saml idp sso session where samlIdpSsoSessionKey = ? from the database.- Parameters:
samlIdpSsoSessionKey- the saml idp sso session key- Returns:
- the saml idp sso session that was removed
- Throws:
NoSuchIdpSsoSessionException
-
countBySamlIdpSsoSessionKey
Returns the number of saml idp sso sessions where samlIdpSsoSessionKey = ?.- Parameters:
samlIdpSsoSessionKey- the saml idp sso session key- Returns:
- the number of matching saml idp sso sessions
-
create
Creates a new saml idp sso session with the primary key. Does not add the saml idp sso session to the database.- Parameters:
samlIdpSsoSessionId- the primary key for the new saml idp sso session- Returns:
- the new saml idp sso session
-
remove
public static SamlIdpSsoSession remove(long samlIdpSsoSessionId) throws NoSuchIdpSsoSessionException Removes the saml idp sso session with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
samlIdpSsoSessionId- the primary key of the saml idp sso session- Returns:
- the saml idp sso session that was removed
-
updateImpl
-
findByPrimaryKey
public static SamlIdpSsoSession findByPrimaryKey(long samlIdpSsoSessionId) throws NoSuchIdpSsoSessionException Returns the saml idp sso session with the primary key or throws aNoSuchIdpSsoSessionExceptionif it could not be found.- Parameters:
samlIdpSsoSessionId- the primary key of the saml idp sso session- Returns:
- the saml idp sso session
-
fetchByPrimaryKey
Returns the saml idp sso session with the primary key or returnsnullif it could not be found.- Parameters:
samlIdpSsoSessionId- the primary key of the saml idp sso session- Returns:
- the saml idp sso session, or
nullif a saml idp sso session with the primary key could not be found
-
fetchByUserId
Returns the saml idp sso session where userId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userId- the user ID- Returns:
- the matching saml idp sso session, or
nullif a matching saml idp sso session could not be found
-
fetchBySamlIdpSsoSessionKey
Returns the saml idp sso session where samlIdpSsoSessionKey = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
samlIdpSsoSessionKey- the saml idp sso session key- Returns:
- the matching saml idp sso session, or
nullif a matching saml idp sso session could not be found
-
getPersistence
-
setPersistence
-