Class SamlSpAuthRequestUtil

java.lang.Object
com.liferay.saml.persistence.service.persistence.SamlSpAuthRequestUtil

public class SamlSpAuthRequestUtil extends Object
The persistence utility for the saml sp auth request service. This utility wraps 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 Details

    • SamlSpAuthRequestUtil

      public SamlSpAuthRequestUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(SamlSpAuthRequest samlSpAuthRequest)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,SamlSpAuthRequest> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      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

      public static SamlSpAuthRequest update(SamlSpAuthRequest samlSpAuthRequest)
      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

      public static List<SamlSpAuthRequest> findByLtCreateDate(Date createDate)
      Returns all the saml sp auth requests where createDate < ?.
      Parameters:
      createDate - the create date
      Returns:
      the matching saml sp auth requests
    • findByLtCreateDate

      public static List<SamlSpAuthRequest> findByLtCreateDate(Date createDate, int start, int end)
      Returns a range of all the saml sp auth requests where createDate < ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SamlSpAuthRequestModelImpl.

      Parameters:
      createDate - the create date
      start - the lower bound of the range of saml sp auth requests
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SamlSpAuthRequestModelImpl.

      Parameters:
      createDate - the create date
      start - the lower bound of the range of saml sp auth requests
      end - the upper bound of the range of saml sp auth requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SamlSpAuthRequestModelImpl.

      Parameters:
      createDate - the create date
      start - the lower bound of the range of saml sp auth requests
      end - the upper bound of the range of saml sp auth requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml sp auth request
      Throws:
      NoSuchSpAuthRequestException - if a matching saml sp auth request could not be found
      NoSuchSpAuthRequestException
    • 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 date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching saml sp auth request, or null if 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 date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml sp auth request
      Throws:
      NoSuchSpAuthRequestException - if a matching saml sp auth request could not be found
      NoSuchSpAuthRequestException
    • 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 date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching saml sp auth request, or null if 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 request
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      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 found
      NoSuchSpAuthRequestException
    • removeByLtCreateDate

      public static void removeByLtCreateDate(Date createDate)
      Removes all the saml sp auth requests where createDate < ? from the database.
      Parameters:
      createDate - the create date
    • countByLtCreateDate

      public static int countByLtCreateDate(Date createDate)
      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 a NoSuchSpAuthRequestException if it could not be found.
      Parameters:
      samlIdpEntityId - the saml idp entity ID
      samlSpAuthRequestKey - 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 found
      NoSuchSpAuthRequestException
    • fetchBySIEI_SSARK

      public static SamlSpAuthRequest fetchBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey)
      Returns the saml sp auth request where samlIdpEntityId = ? and samlSpAuthRequestKey = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      samlIdpEntityId - the saml idp entity ID
      samlSpAuthRequestKey - the saml sp auth request key
      Returns:
      the matching saml sp auth request, or null if 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      samlIdpEntityId - the saml idp entity ID
      samlSpAuthRequestKey - the saml sp auth request key
      useFinderCache - whether to use the finder cache
      Returns:
      the matching saml sp auth request, or null if 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 ID
      samlSpAuthRequestKey - the saml sp auth request key
      Returns:
      the saml sp auth request that was removed
      Throws:
      NoSuchSpAuthRequestException
    • countBySIEI_SSARK

      public static int countBySIEI_SSARK(String samlIdpEntityId, String samlSpAuthRequestKey)
      Returns the number of saml sp auth requests where samlIdpEntityId = ? and samlSpAuthRequestKey = ?.
      Parameters:
      samlIdpEntityId - the saml idp entity ID
      samlSpAuthRequestKey - the saml sp auth request key
      Returns:
      the number of matching saml sp auth requests
    • cacheResult

      public static void cacheResult(SamlSpAuthRequest samlSpAuthRequest)
      Caches the saml sp auth request in the entity cache if it is enabled.
      Parameters:
      samlSpAuthRequest - the saml sp auth request
    • cacheResult

      public static void cacheResult(List<SamlSpAuthRequest> samlSpAuthRequests)
      Caches the saml sp auth requests in the entity cache if it is enabled.
      Parameters:
      samlSpAuthRequests - the saml sp auth requests
    • create

      public static SamlSpAuthRequest create(long samlSpAuthnRequestId)
      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 found
      NoSuchSpAuthRequestException
    • updateImpl

      public static SamlSpAuthRequest updateImpl(SamlSpAuthRequest samlSpAuthRequest)
    • findByPrimaryKey

      public static SamlSpAuthRequest findByPrimaryKey(long samlSpAuthnRequestId) throws NoSuchSpAuthRequestException
      Returns the saml sp auth request with the primary key or throws a NoSuchSpAuthRequestException if 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 found
      NoSuchSpAuthRequestException
    • fetchByPrimaryKey

      public static SamlSpAuthRequest fetchByPrimaryKey(long samlSpAuthnRequestId)
      Returns the saml sp auth request with the primary key or returns null if it could not be found.
      Parameters:
      samlSpAuthnRequestId - the primary key of the saml sp auth request
      Returns:
      the saml sp auth request, or null if a saml sp auth request with the primary key could not be found
    • findAll

      public static List<SamlSpAuthRequest> findAll()
      Returns all the saml sp auth requests.
      Returns:
      the saml sp auth requests
    • findAll

      public static List<SamlSpAuthRequest> findAll(int start, int end)
      Returns a range of all the saml sp auth requests.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SamlSpAuthRequestModelImpl.

      Parameters:
      start - the lower bound of the range of saml sp auth requests
      end - 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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SamlSpAuthRequestModelImpl.

      Parameters:
      start - the lower bound of the range of saml sp auth requests
      end - the upper bound of the range of saml sp auth requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from SamlSpAuthRequestModelImpl.

      Parameters:
      start - the lower bound of the range of saml sp auth requests
      end - the upper bound of the range of saml sp auth requests (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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

      public static SamlSpAuthRequestPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SamlSpAuthRequestPersistence persistence)