Class SamlSpAuthRequestUtil
com.liferay.saml.persistence.service.persistence.impl.SamlSpAuthRequestPersistenceImpl 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(SamlSpAuthRequest samlSpAuthRequest) Caches the saml sp auth request in the entity cache if it is enabled.static voidcacheResult(List<SamlSpAuthRequest> samlSpAuthRequests) Caches the saml sp auth requests in the entity cache if it is enabled.static voidstatic voidclearCache(SamlSpAuthRequest samlSpAuthRequest) static intcountAll()Returns the number of saml sp auth requests.static intcountByLtCreateDate(Date createDate) Returns the number of saml sp auth requests where createDate < ?.static intcountBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey) Returns the number of saml sp auth requests where samlIdpEntityId = ? and samlSpAuthRequestKey = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static SamlSpAuthRequestcreate(long samlSpAuthnRequestId) Creates a new saml sp auth request with the primary key.static SamlSpAuthRequestfetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns the first saml sp auth request in the ordered set where createDate < ?.static SamlSpAuthRequestfetchByLtCreateDate_Last(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns the last saml sp auth request in the ordered set where createDate < ?.static SamlSpAuthRequestfetchByPrimaryKey(long samlSpAuthnRequestId) Returns the saml sp auth request with the primary key or returnsnullif it could not be found.static Map<Serializable,SamlSpAuthRequest> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static SamlSpAuthRequestfetchBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey) Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or returnsnullif it could not be found.static SamlSpAuthRequestfetchBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey, boolean useFinderCache) Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or returnsnullif it could not be found, optionally using the finder cache.static List<SamlSpAuthRequest>findAll()Returns all the saml sp auth requests.static List<SamlSpAuthRequest>findAll(int start, int end) Returns a range of all the saml sp auth requests.static List<SamlSpAuthRequest>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns an ordered range of all the saml sp auth requests.static List<SamlSpAuthRequest>findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp auth requests.static List<SamlSpAuthRequest>findByLtCreateDate(Date createDate) Returns all the saml sp auth requests where createDate < ?.static List<SamlSpAuthRequest>findByLtCreateDate(Date createDate, int start, int end) Returns a range of all the saml sp auth requests where createDate < ?.static List<SamlSpAuthRequest>findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns an ordered range of all the saml sp auth requests where createDate < ?.static List<SamlSpAuthRequest>findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp auth requests where createDate < ?.static SamlSpAuthRequestfindByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns the first saml sp auth request in the ordered set where createDate < ?.static SamlSpAuthRequestfindByLtCreateDate_Last(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns the last saml sp auth request in the ordered set where createDate < ?.static SamlSpAuthRequest[]findByLtCreateDate_PrevAndNext(long samlSpAuthnRequestId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns the saml sp auth requests before and after the current saml sp auth request in the ordered set where createDate < ?.static SamlSpAuthRequestfindByPrimaryKey(long samlSpAuthnRequestId) Returns the saml sp auth request with the primary key or throws aNoSuchSpAuthRequestExceptionif it could not be found.static SamlSpAuthRequestfindBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey) Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or throws aNoSuchSpAuthRequestExceptionif it could not be found.static List<SamlSpAuthRequest>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<SamlSpAuthRequest>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<SamlSpAuthRequest>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) static SamlSpAuthRequestPersistencestatic SamlSpAuthRequestremove(long samlSpAuthnRequestId) Removes the saml sp auth request with the primary key from the database.static voidRemoves all the saml sp auth requests from the database.static voidremoveByLtCreateDate(Date createDate) Removes all the saml sp auth requests where createDate < ? from the database.static SamlSpAuthRequestremoveBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey) Removes the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? from the database.static voidsetPersistence(SamlSpAuthRequestPersistence persistence) static SamlSpAuthRequestupdate(SamlSpAuthRequest samlSpAuthRequest) static SamlSpAuthRequestupdate(SamlSpAuthRequest samlSpAuthRequest, com.liferay.portal.kernel.service.ServiceContext serviceContext) static SamlSpAuthRequestupdateImpl(SamlSpAuthRequest samlSpAuthRequest)
-
Constructor Details
-
SamlSpAuthRequestUtil
public SamlSpAuthRequestUtil()
-
-
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<SamlSpAuthRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<SamlSpAuthRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<SamlSpAuthRequest> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static SamlSpAuthRequest update(SamlSpAuthRequest samlSpAuthRequest, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByLtCreateDate
Returns all the saml sp auth requests where createDate < ?.- Parameters:
createDate- the create date- Returns:
- the matching saml sp auth requests
-
findByLtCreateDate
Returns a range of all the saml sp auth requests 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 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 fromSamlSpAuthRequestModelImpl.- Parameters:
createDate- the create datestart- the lower bound of the range of saml sp auth requestsend- the upper bound of the range of saml sp auth requests (not inclusive)- Returns:
- the range of matching saml sp auth requests
-
findByLtCreateDate
public static List<SamlSpAuthRequest> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns an ordered range of all the saml sp auth requests 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 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 fromSamlSpAuthRequestModelImpl.- Parameters:
createDate- the create datestart- the lower bound of the range of saml sp auth requestsend- the upper bound of the range of saml sp auth requests (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching saml sp auth requests
-
findByLtCreateDate
public static List<SamlSpAuthRequest> findByLtCreateDate(Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp auth requests 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 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 fromSamlSpAuthRequestModelImpl.- Parameters:
createDate- the create datestart- the lower bound of the range of saml sp auth requestsend- the upper bound of the range of saml sp auth requests (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 auth requests
-
findByLtCreateDate_First
public static SamlSpAuthRequest findByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) throws NoSuchSpAuthRequestException Returns the first saml sp auth request in the ordered set where createDate < ?.- Parameters:
createDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml sp auth request
- Throws:
NoSuchSpAuthRequestException- if a matching saml sp auth request could not be foundNoSuchSpAuthRequestException
-
fetchByLtCreateDate_First
public static SamlSpAuthRequest fetchByLtCreateDate_First(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns the first saml sp auth request in the ordered set where createDate < ?.- Parameters:
createDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching saml sp auth request, or
nullif a matching saml sp auth request could not be found
-
findByLtCreateDate_Last
public static SamlSpAuthRequest findByLtCreateDate_Last(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) throws NoSuchSpAuthRequestException Returns the last saml sp auth request in the ordered set where createDate < ?.- Parameters:
createDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp auth request
- Throws:
NoSuchSpAuthRequestException- if a matching saml sp auth request could not be foundNoSuchSpAuthRequestException
-
fetchByLtCreateDate_Last
public static SamlSpAuthRequest fetchByLtCreateDate_Last(Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns the last saml sp auth request in the ordered set where createDate < ?.- Parameters:
createDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching saml sp auth request, or
nullif a matching saml sp auth request could not be found
-
findByLtCreateDate_PrevAndNext
public static SamlSpAuthRequest[] findByLtCreateDate_PrevAndNext(long samlSpAuthnRequestId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) throws NoSuchSpAuthRequestException Returns the saml sp auth requests before and after the current saml sp auth request in the ordered set where createDate < ?.- Parameters:
samlSpAuthnRequestId- the primary key of the current saml sp auth requestcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next saml sp auth request
- Throws:
NoSuchSpAuthRequestException- if a saml sp auth request with the primary key could not be foundNoSuchSpAuthRequestException
-
removeByLtCreateDate
Removes all the saml sp auth requests where createDate < ? from the database.- Parameters:
createDate- the create date
-
countByLtCreateDate
Returns the number of saml sp auth requests where createDate < ?.- Parameters:
createDate- the create date- Returns:
- the number of matching saml sp auth requests
-
findBySIEI_SSARK
public static SamlSpAuthRequest findBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey) throws NoSuchSpAuthRequestException Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or throws aNoSuchSpAuthRequestExceptionif it could not be found.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlSpAuthRequestKey- the saml sp auth request key- Returns:
- the matching saml sp auth request
- Throws:
NoSuchSpAuthRequestException- if a matching saml sp auth request could not be foundNoSuchSpAuthRequestException
-
fetchBySIEI_SSARK
public static SamlSpAuthRequest fetchBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey) Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlSpAuthRequestKey- the saml sp auth request key- Returns:
- the matching saml sp auth request, or
nullif a matching saml sp auth request could not be found
-
fetchBySIEI_SSARK
public static SamlSpAuthRequest fetchBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey, boolean useFinderCache) Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlSpAuthRequestKey- the saml sp auth request keyuseFinderCache- whether to use the finder cache- Returns:
- the matching saml sp auth request, or
nullif a matching saml sp auth request could not be found
-
removeBySIEI_SSARK
public static SamlSpAuthRequest removeBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey) throws NoSuchSpAuthRequestException Removes the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? from the database.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlSpAuthRequestKey- the saml sp auth request key- Returns:
- the saml sp auth request that was removed
- Throws:
NoSuchSpAuthRequestException
-
countBySIEI_SSARK
Returns the number of saml sp auth requests where samlIdpEntityId = ? and samlSpAuthRequestKey = ?.- Parameters:
samlIdpEntityId- the saml idp entity IDsamlSpAuthRequestKey- the saml sp auth request key- Returns:
- the number of matching saml sp auth requests
-
cacheResult
Caches the saml sp auth request in the entity cache if it is enabled.- Parameters:
samlSpAuthRequest- the saml sp auth request
-
cacheResult
Caches the saml sp auth requests in the entity cache if it is enabled.- Parameters:
samlSpAuthRequests- the saml sp auth requests
-
create
Creates a new saml sp auth request with the primary key. Does not add the saml sp auth request to the database.- Parameters:
samlSpAuthnRequestId- the primary key for the new saml sp auth request- Returns:
- the new saml sp auth request
-
remove
public static SamlSpAuthRequest remove(long samlSpAuthnRequestId) throws NoSuchSpAuthRequestException Removes the saml sp auth request with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
samlSpAuthnRequestId- the primary key of the saml sp auth request- Returns:
- the saml sp auth request that was removed
- Throws:
NoSuchSpAuthRequestException- if a saml sp auth request with the primary key could not be foundNoSuchSpAuthRequestException
-
updateImpl
-
findByPrimaryKey
public static SamlSpAuthRequest findByPrimaryKey(long samlSpAuthnRequestId) throws NoSuchSpAuthRequestException Returns the saml sp auth request with the primary key or throws aNoSuchSpAuthRequestExceptionif it could not be found.- Parameters:
samlSpAuthnRequestId- the primary key of the saml sp auth request- Returns:
- the saml sp auth request
- Throws:
NoSuchSpAuthRequestException- if a saml sp auth request with the primary key could not be foundNoSuchSpAuthRequestException
-
fetchByPrimaryKey
Returns the saml sp auth request with the primary key or returnsnullif it could not be found.- Parameters:
samlSpAuthnRequestId- the primary key of the saml sp auth request- Returns:
- the saml sp auth request, or
nullif a saml sp auth request with the primary key could not be found
-
findAll
Returns all the saml sp auth requests.- Returns:
- the saml sp auth requests
-
findAll
Returns a range of all the saml sp auth requests.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 fromSamlSpAuthRequestModelImpl.- Parameters:
start- the lower bound of the range of saml sp auth requestsend- the upper bound of the range of saml sp auth requests (not inclusive)- Returns:
- the range of saml sp auth requests
-
findAll
public static List<SamlSpAuthRequest> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator) Returns an ordered range of all the saml sp auth requests.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 fromSamlSpAuthRequestModelImpl.- Parameters:
start- the lower bound of the range of saml sp auth requestsend- the upper bound of the range of saml sp auth requests (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of saml sp auth requests
-
findAll
public static List<SamlSpAuthRequest> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SamlSpAuthRequest> orderByComparator, boolean useFinderCache) Returns an ordered range of all the saml sp auth requests.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 fromSamlSpAuthRequestModelImpl.- Parameters:
start- the lower bound of the range of saml sp auth requestsend- the upper bound of the range of saml sp auth requests (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 auth requests
-
removeAll
public static void removeAll()Removes all the saml sp auth requests from the database. -
countAll
public static int countAll()Returns the number of saml sp auth requests.- Returns:
- the number of saml sp auth requests
-
getPersistence
-
setPersistence
-