java.lang.Object
com.liferay.portal.security.sso.openid.connect.persistence.service.persistence.OpenIdConnectUserUtil

public class OpenIdConnectUserUtil extends Object
The persistence utility for the open ID connect user service. This utility wraps com.liferay.portal.security.sso.openid.connect.persistence.service.persistence.impl.OpenIdConnectUserPersistenceImpl 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

    • OpenIdConnectUserUtil

      public OpenIdConnectUserUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<OpenIdConnectUser> openIdConnectUsers)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(OpenIdConnectUser openIdConnectUser)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

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

      public static void clearCache(OpenIdConnectUser openIdConnectUser)
      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,OpenIdConnectUser> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<OpenIdConnectUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<OpenIdConnectUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<OpenIdConnectUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectUser> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static OpenIdConnectUser update(OpenIdConnectUser openIdConnectUser)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static OpenIdConnectUser update(OpenIdConnectUser openIdConnectUser, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByC_U

      public static List<OpenIdConnectUser> findByC_U(long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectUser> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the open ID connect users where companyId = ? and userId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.security.sso.openid.connect.persistence.model.impl.OpenIdConnectUserModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of open ID connect users
      end - the upper bound of the range of open ID connect users (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 open ID connect users
    • findByC_U_First

      public static OpenIdConnectUser findByC_U_First(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectUser> orderByComparator) throws NoSuchUserException
      Returns the first open ID connect user in the ordered set where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching open ID connect user
    • fetchByC_U_First

      public static OpenIdConnectUser fetchByC_U_First(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectUser> orderByComparator)
      Returns the first open ID connect user in the ordered set where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching open ID connect user, or null if a matching open ID connect user could not be found
    • removeByC_U

      public static void removeByC_U(long companyId, long userId)
      Removes all the open ID connect users where companyId = ? and userId = ? from the database.
      Parameters:
      companyId - the company ID
      userId - the user ID
    • countByC_U

      public static int countByC_U(long companyId, long userId)
      Returns the number of open ID connect users where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      Returns:
      the number of matching open ID connect users
    • findByC_I_S

      public static OpenIdConnectUser findByC_I_S(long companyId, String issuer, String subject) throws NoSuchUserException
      Returns the open ID connect user where companyId = ? and issuer = ? and subject = ? or throws a NoSuchUserException if it could not be found.
      Parameters:
      companyId - the company ID
      issuer - the issuer
      subject - the subject
      Returns:
      the matching open ID connect user
    • fetchByC_I_S

      public static OpenIdConnectUser fetchByC_I_S(long companyId, String issuer, String subject, boolean useFinderCache)
      Returns the open ID connect user where companyId = ? and issuer = ? and subject = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      issuer - the issuer
      subject - the subject
      useFinderCache - whether to use the finder cache
      Returns:
      the matching open ID connect user, or null if a matching open ID connect user could not be found
    • removeByC_I_S

      public static OpenIdConnectUser removeByC_I_S(long companyId, String issuer, String subject) throws NoSuchUserException
      Removes the open ID connect user where companyId = ? and issuer = ? and subject = ? from the database.
      Parameters:
      companyId - the company ID
      issuer - the issuer
      subject - the subject
      Returns:
      the open ID connect user that was removed
      Throws:
      NoSuchUserException
    • countByC_I_S

      public static int countByC_I_S(long companyId, String issuer, String subject)
      Returns the number of open ID connect users where companyId = ? and issuer = ? and subject = ?.
      Parameters:
      companyId - the company ID
      issuer - the issuer
      subject - the subject
      Returns:
      the number of matching open ID connect users
    • create

      public static OpenIdConnectUser create(long openIdConnectUserId)
      Creates a new open ID connect user with the primary key. Does not add the open ID connect user to the database.
      Parameters:
      openIdConnectUserId - the primary key for the new open ID connect user
      Returns:
      the new open ID connect user
    • remove

      public static OpenIdConnectUser remove(long openIdConnectUserId) throws NoSuchUserException
      Removes the open ID connect user with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      openIdConnectUserId - the primary key of the open ID connect user
      Returns:
      the open ID connect user that was removed
    • updateImpl

      public static OpenIdConnectUser updateImpl(OpenIdConnectUser openIdConnectUser)
    • findByPrimaryKey

      public static OpenIdConnectUser findByPrimaryKey(long openIdConnectUserId) throws NoSuchUserException
      Returns the open ID connect user with the primary key or throws a NoSuchUserException if it could not be found.
      Parameters:
      openIdConnectUserId - the primary key of the open ID connect user
      Returns:
      the open ID connect user
    • fetchByPrimaryKey

      public static OpenIdConnectUser fetchByPrimaryKey(long openIdConnectUserId)
      Returns the open ID connect user with the primary key or returns null if it could not be found.
      Parameters:
      openIdConnectUserId - the primary key of the open ID connect user
      Returns:
      the open ID connect user, or null if a open ID connect user with the primary key could not be found
    • fetchByC_I_S

      public static OpenIdConnectUser fetchByC_I_S(long companyId, String issuer, String subject)
      Returns the open ID connect user where companyId = ? and issuer = ? and subject = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      issuer - the issuer
      subject - the subject
      Returns:
      the matching open ID connect user, or null if a matching open ID connect user could not be found
    • findByC_U

      public static List<OpenIdConnectUser> findByC_U(long companyId, long userId)
      Returns all the open ID connect users where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      Returns:
      the matching open ID connect users
    • findByC_U

      public static List<OpenIdConnectUser> findByC_U(long companyId, long userId, int start, int end)
      Returns a range of all the open ID connect users where companyId = ? and userId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.security.sso.openid.connect.persistence.model.impl.OpenIdConnectUserModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of open ID connect users
      end - the upper bound of the range of open ID connect users (not inclusive)
      Returns:
      the range of matching open ID connect users
    • findByC_U

      public static List<OpenIdConnectUser> findByC_U(long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectUser> orderByComparator)
      Returns an ordered range of all the open ID connect users where companyId = ? and userId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.security.sso.openid.connect.persistence.model.impl.OpenIdConnectUserModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of open ID connect users
      end - the upper bound of the range of open ID connect users (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching open ID connect users
    • getPersistence

      public static OpenIdConnectUserPersistence getPersistence()
    • setPersistence

      public static void setPersistence(OpenIdConnectUserPersistence persistence)