Class OpenIdConnectUserUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(OpenIdConnectUser openIdConnectUser) static voidcacheResult(List<OpenIdConnectUser> openIdConnectUsers) static voidstatic voidclearCache(OpenIdConnectUser openIdConnectUser) static intcountByC_I_S(long companyId, String issuer, String subject) Returns the number of open ID connect users where companyId = ? and issuer = ? and subject = ?.static intcountByC_U(long companyId, long userId) Returns the number of open ID connect users where companyId = ? and userId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static OpenIdConnectUsercreate(long openIdConnectUserId) Creates a new open ID connect user with the primary key.static OpenIdConnectUserfetchByC_I_S(long companyId, String issuer, String subject) Returns the open ID connect user where companyId = ? and issuer = ? and subject = ? or returnsnullif it could not be found.static OpenIdConnectUserfetchByC_I_S(long companyId, String issuer, String subject, boolean useFinderCache) Returns the open ID connect user where companyId = ? and issuer = ? and subject = ? or returnsnullif it could not be found, optionally using the finder cache.static OpenIdConnectUserfetchByC_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 = ?.static OpenIdConnectUserfetchByPrimaryKey(long openIdConnectUserId) Returns the open ID connect user with the primary key or returnsnullif it could not be found.static Map<Serializable, OpenIdConnectUser> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static OpenIdConnectUserfindByC_I_S(long companyId, String issuer, String subject) Returns the open ID connect user where companyId = ? and issuer = ? and subject = ? or throws aNoSuchUserExceptionif it could not be found.static List<OpenIdConnectUser> findByC_U(long companyId, long userId) Returns all the open ID connect users where companyId = ? and userId = ?.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 = ?.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 = ?.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 = ?.static OpenIdConnectUserfindByC_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 = ?.static OpenIdConnectUserfindByPrimaryKey(long openIdConnectUserId) Returns the open ID connect user with the primary key or throws aNoSuchUserExceptionif it could not be found.static List<OpenIdConnectUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<OpenIdConnectUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<OpenIdConnectUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<OpenIdConnectUser> orderByComparator) static OpenIdConnectUserPersistencestatic OpenIdConnectUserremove(long openIdConnectUserId) Removes the open ID connect user with the primary key from the database.static OpenIdConnectUserremoveByC_I_S(long companyId, String issuer, String subject) Removes the open ID connect user where companyId = ? and issuer = ? and subject = ? from the database.static voidremoveByC_U(long companyId, long userId) Removes all the open ID connect users where companyId = ? and userId = ? from the database.static voidsetPersistence(OpenIdConnectUserPersistence persistence) static OpenIdConnectUserupdate(OpenIdConnectUser openIdConnectUser) static OpenIdConnectUserupdate(OpenIdConnectUser openIdConnectUser, com.liferay.portal.kernel.service.ServiceContext serviceContext) static OpenIdConnectUserupdateImpl(OpenIdConnectUser openIdConnectUser)
-
Constructor Details
-
OpenIdConnectUserUtil
public OpenIdConnectUserUtil()
-
-
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<OpenIdConnectUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<OpenIdConnectUser> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
- See Also:
-
update
public static OpenIdConnectUser update(OpenIdConnectUser openIdConnectUser, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
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 - 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.portal.security.sso.openid.connect.persistence.model.impl.OpenIdConnectUserModelImpl.- Parameters:
companyId- the company IDuserId- the user IDstart- the lower bound of the range of open ID connect usersend- the upper bound of the range of open ID connect users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDuserId- the user IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching open ID connect user, or
nullif 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 IDuserId- 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 IDuserId- 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 aNoSuchUserExceptionif it could not be found.- Parameters:
companyId- the company IDissuer- the issuersubject- 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDissuer- the issuersubject- the subjectuseFinderCache- whether to use the finder cache- Returns:
- the matching open ID connect user, or
nullif 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 IDissuer- the issuersubject- the subject- Returns:
- the open ID connect user that was removed
- Throws:
NoSuchUserException
-
countByC_I_S
Returns the number of open ID connect users where companyId = ? and issuer = ? and subject = ?.- Parameters:
companyId- the company IDissuer- the issuersubject- the subject- Returns:
- the number of matching open ID connect users
-
create
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
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
-
findByPrimaryKey
public static OpenIdConnectUser findByPrimaryKey(long openIdConnectUserId) throws NoSuchUserException Returns the open ID connect user with the primary key or throws aNoSuchUserExceptionif it could not be found.- Parameters:
openIdConnectUserId- the primary key of the open ID connect user- Returns:
- the open ID connect user
-
fetchByPrimaryKey
Returns the open ID connect user with the primary key or returnsnullif it could not be found.- Parameters:
openIdConnectUserId- the primary key of the open ID connect user- Returns:
- the open ID connect user, or
nullif a open ID connect user with the primary key could not be found
-
fetchByC_I_S
Returns the open ID connect user where companyId = ? and issuer = ? and subject = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDissuer- the issuersubject- the subject- Returns:
- the matching open ID connect user, or
nullif a matching open ID connect user could not be found
-
findByC_U
Returns all the open ID connect users where companyId = ? and userId = ?.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the matching open ID connect users
-
findByC_U
Returns a range of all the open ID connect users where companyId = ? and userId = ?.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.portal.security.sso.openid.connect.persistence.model.impl.OpenIdConnectUserModelImpl.- Parameters:
companyId- the company IDuserId- the user IDstart- the lower bound of the range of open ID connect usersend- 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 - 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.portal.security.sso.openid.connect.persistence.model.impl.OpenIdConnectUserModelImpl.- Parameters:
companyId- the company IDuserId- the user IDstart- the lower bound of the range of open ID connect usersend- the upper bound of the range of open ID connect users (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching open ID connect users
-
getPersistence
-
setPersistence
-