Class SamlSpMessageUtil
com.liferay.saml.persistence.service.persistence.impl.SamlSpMessagePersistenceImpl 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(SamlSpMessage samlSpMessage) Caches the saml sp message in the entity cache if it is enabled.static voidcacheResult(List<SamlSpMessage> samlSpMessages) Caches the saml sp messages in the entity cache if it is enabled.static voidstatic voidclearCache(SamlSpMessage samlSpMessage) static intcountAll()Returns the number of saml sp messages.static intcountByLtExpirationDate(Date expirationDate) Returns the number of saml sp messages where expirationDate < ?.static intcountBySIEI_SIRK(String samlIdpEntityId, String samlIdpResponseKey) Returns the number of saml sp messages where samlIdpEntityId = ? and samlIdpResponseKey = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SamlSpMessagecreate(long samlSpMessageId) Creates a new saml sp message with the primary key.static SamlSpMessagefetchByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns the first saml sp message in the ordered set where expirationDate < ?.static SamlSpMessagefetchByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns the last saml sp message in the ordered set where expirationDate < ?.static SamlSpMessagefetchByPrimaryKey(long samlSpMessageId) Returns the saml sp message with the primary key or returnsnullif it could not be found.static Map<Serializable,SamlSpMessage> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SamlSpMessagefetchBySIEI_SIRK(String samlIdpEntityId, String samlIdpResponseKey) Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or returnsnullif it could not be found.static SamlSpMessagefetchBySIEI_SIRK(String samlIdpEntityId, String samlIdpResponseKey, boolean useFinderCache) Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or returnsnullif it could not be found, optionally using the finder cache.static List<SamlSpMessage>findAll()Returns all the saml sp messages.static List<SamlSpMessage>findAll(int start, int end) Returns a range of all the saml sp messages.static List<SamlSpMessage>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns an ordered range of all the saml sp messages.static List<SamlSpMessage>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp messages.static List<SamlSpMessage>findByLtExpirationDate(Date expirationDate) Returns all the saml sp messages where expirationDate < ?.static List<SamlSpMessage>findByLtExpirationDate(Date expirationDate, int start, int end) Returns a range of all the saml sp messages where expirationDate < ?.static List<SamlSpMessage>findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns an ordered range of all the saml sp messages where expirationDate < ?.static List<SamlSpMessage>findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp messages where expirationDate < ?.static SamlSpMessagefindByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns the first saml sp message in the ordered set where expirationDate < ?.static SamlSpMessagefindByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns the last saml sp message in the ordered set where expirationDate < ?.static SamlSpMessage[]findByLtExpirationDate_PrevAndNext(long samlSpMessageId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns the saml sp messages before and after the current saml sp message in the ordered set where expirationDate < ?.static SamlSpMessagefindByPrimaryKey(long samlSpMessageId) Returns the saml sp message with the primary key or throws aNoSuchSpMessageExceptionif it could not be found.static SamlSpMessagefindBySIEI_SIRK(String samlIdpEntityId, String samlIdpResponseKey) Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or throws aNoSuchSpMessageExceptionif it could not be found.static List<SamlSpMessage>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SamlSpMessage>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SamlSpMessage>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) static SamlSpMessagePersistencestatic SamlSpMessageremove(long samlSpMessageId) Removes the saml sp message with the primary key from the database.static voidRemoves all the saml sp messages from the database.static voidremoveByLtExpirationDate(Date expirationDate) Removes all the saml sp messages where expirationDate < ? from the database.static SamlSpMessageremoveBySIEI_SIRK(String samlIdpEntityId, String samlIdpResponseKey) Removes the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? from the database.static voidsetPersistence(SamlSpMessagePersistence persistence) static SamlSpMessageupdate(SamlSpMessage samlSpMessage) static SamlSpMessageupdate(SamlSpMessage samlSpMessage, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SamlSpMessageupdateImpl(SamlSpMessage samlSpMessage)
-
Constructor Details
-
SamlSpMessageUtil
public SamlSpMessageUtil()
-
-
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
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<SamlSpMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<SamlSpMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<SamlSpMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static SamlSpMessage update(SamlSpMessage samlSpMessage, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByLtExpirationDate
Returns all the saml sp messages where expirationDate < ?.- Parameters:
expirationDate- the expiration date- Returns:
- the matching saml sp messages
-
findByLtExpirationDate
Returns a range of all the saml sp messages where expirationDate < ?.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 fromSamlSpMessageModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of saml sp messagesend- the upper bound of the range of saml sp messages (not inclusive)- Returns:
- the range of matching saml sp messages
-
findByLtExpirationDate
public static List<SamlSpMessage> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns an ordered range of all the saml sp messages where expirationDate < ?.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 fromSamlSpMessageModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of saml sp messagesend- the upper bound of the range of saml sp messages (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching saml sp messages
-
findByLtExpirationDate
public static List<SamlSpMessage> findByLtExpirationDate(Date expirationDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp messages where expirationDate < ?.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 fromSamlSpMessageModelImpl.- Parameters:
expirationDate- the expiration datestart- the lower bound of the range of saml sp messagesend- the upper bound of the range of saml sp messages (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 sp messages
-
findByLtExpirationDate_First
public static SamlSpMessage findByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) throws NoSuchSpMessageException Returns the first saml sp message in the ordered set where expirationDate < ?.- Parameters:
expirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml sp message
- Throws:
NoSuchSpMessageException- if a matching saml sp message could not be foundNoSuchSpMessageException
-
fetchByLtExpirationDate_First
public static SamlSpMessage fetchByLtExpirationDate_First(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns the first saml sp message in the ordered set where expirationDate < ?.- Parameters:
expirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml sp message, or
nullif a matching saml sp message could not be found
-
findByLtExpirationDate_Last
public static SamlSpMessage findByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) throws NoSuchSpMessageException Returns the last saml sp message in the ordered set where expirationDate < ?.- Parameters:
expirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp message
- Throws:
NoSuchSpMessageException- if a matching saml sp message could not be foundNoSuchSpMessageException
-
fetchByLtExpirationDate_Last
public static SamlSpMessage fetchByLtExpirationDate_Last(Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns the last saml sp message in the ordered set where expirationDate < ?.- Parameters:
expirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp message, or
nullif a matching saml sp message could not be found
-
findByLtExpirationDate_PrevAndNext
public static SamlSpMessage[] findByLtExpirationDate_PrevAndNext(long samlSpMessageId, Date expirationDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) throws NoSuchSpMessageException Returns the saml sp messages before and after the current saml sp message in the ordered set where expirationDate < ?.- Parameters:
samlSpMessageId- the primary key of the current saml sp messageexpirationDate- the expiration dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next saml sp message
- Throws:
NoSuchSpMessageException- if a saml sp message with the primary key could not be foundNoSuchSpMessageException
-
removeByLtExpirationDate
Removes all the saml sp messages where expirationDate < ? from the database.- Parameters:
expirationDate- the expiration date
-
countByLtExpirationDate
Returns the number of saml sp messages where expirationDate < ?.- Parameters:
expirationDate- the expiration date- Returns:
- the number of matching saml sp messages
-
findBySIEI_SIRK
public static SamlSpMessage findBySIEI_SIRK(String samlIdpEntityId, String samlIdpResponseKey) throws NoSuchSpMessageException Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or throws aNoSuchSpMessageExceptionif it could not be found.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlIdpResponseKey- the saml idp response key- Returns:
- the matching saml sp message
- Throws:
NoSuchSpMessageException- if a matching saml sp message could not be foundNoSuchSpMessageException
-
fetchBySIEI_SIRK
Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlIdpResponseKey- the saml idp response key- Returns:
- the matching saml sp message, or
nullif a matching saml sp message could not be found
-
fetchBySIEI_SIRK
public static SamlSpMessage fetchBySIEI_SIRK(String samlIdpEntityId, String samlIdpResponseKey, boolean useFinderCache) Returns the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlIdpResponseKey- the saml idp response keyuseFinderCache- whether to use the finder cache- Returns:
- the matching saml sp message, or
nullif a matching saml sp message could not be found
-
removeBySIEI_SIRK
public static SamlSpMessage removeBySIEI_SIRK(String samlIdpEntityId, String samlIdpResponseKey) throws NoSuchSpMessageException Removes the saml sp message where samlIdpEntityId = ? and samlIdpResponseKey = ? from the database.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlIdpResponseKey- the saml idp response key- Returns:
- the saml sp message that was removed
- Throws:
NoSuchSpMessageException
-
countBySIEI_SIRK
Returns the number of saml sp messages where samlIdpEntityId = ? and samlIdpResponseKey = ?.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlIdpResponseKey- the saml idp response key- Returns:
- the number of matching saml sp messages
-
cacheResult
Caches the saml sp message in the entity cache if it is enabled.- Parameters:
samlSpMessage- the saml sp message
-
cacheResult
Caches the saml sp messages in the entity cache if it is enabled.- Parameters:
samlSpMessages- the saml sp messages
-
create
Creates a new saml sp message with the primary key. Does not add the saml sp message to the database.- Parameters:
samlSpMessageId- the primary key for the new saml sp message- Returns:
- the new saml sp message
-
remove
Removes the saml sp message with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
samlSpMessageId- the primary key of the saml sp message- Returns:
- the saml sp message that was removed
- Throws:
NoSuchSpMessageException- if a saml sp message with the primary key could not be foundNoSuchSpMessageException
-
updateImpl
-
findByPrimaryKey
Returns the saml sp message with the primary key or throws aNoSuchSpMessageExceptionif it could not be found.- Parameters:
samlSpMessageId- the primary key of the saml sp message- Returns:
- the saml sp message
- Throws:
NoSuchSpMessageException- if a saml sp message with the primary key could not be foundNoSuchSpMessageException
-
fetchByPrimaryKey
Returns the saml sp message with the primary key or returnsnullif it could not be found.- Parameters:
samlSpMessageId- the primary key of the saml sp message- Returns:
- the saml sp message, or
nullif a saml sp message with the primary key could not be found
-
findAll
Returns all the saml sp messages.- Returns:
- the saml sp messages
-
findAll
Returns a range of all the saml sp messages.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 fromSamlSpMessageModelImpl.- Parameters:
start- the lower bound of the range of saml sp messagesend- the upper bound of the range of saml sp messages (not inclusive)- Returns:
- the range of saml sp messages
-
findAll
public static List<SamlSpMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator) Returns an ordered range of all the saml sp messages.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 fromSamlSpMessageModelImpl.- Parameters:
start- the lower bound of the range of saml sp messagesend- the upper bound of the range of saml sp messages (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of saml sp messages
-
findAll
public static List<SamlSpMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp messages.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 fromSamlSpMessageModelImpl.- Parameters:
start- the lower bound of the range of saml sp messagesend- the upper bound of the range of saml sp messages (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of saml sp messages
-
removeAll
public static void removeAll()Removes all the saml sp messages from the database. -
countAll
public static int countAll()Returns the number of saml sp messages.- Returns:
- the number of saml sp messages
-
getPersistence
-
setPersistence
-