Class PasswordPolicyUtil
com.liferay.portal.service.persistence.impl.PasswordPolicyPersistenceImpl 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
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(PasswordPolicy passwordPolicy) Caches the password policy in the entity cache if it is enabled.static voidcacheResult(List<PasswordPolicy> passwordPolicies) Caches the password policies in the entity cache if it is enabled.static voidstatic voidclearCache(PasswordPolicy passwordPolicy) static intcountAll()Returns the number of password policies.static intcountByC_DP(long companyId, boolean defaultPolicy) Returns the number of password policies where companyId = ? and defaultPolicy = ?.static intcountByC_N(long companyId, String name) Returns the number of password policies where companyId = ? and name = ?.static intcountByCompanyId(long companyId) Returns the number of password policies where companyId = ?.static intcountByUuid(String uuid) Returns the number of password policies where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of password policies where uuid = ? and companyId = ?.static longcountWithDynamicQuery(DynamicQuery dynamicQuery) static PasswordPolicycreate(long passwordPolicyId) Creates a new password policy with the primary key.static PasswordPolicyfetchByC_DP(long companyId, boolean defaultPolicy) Returns the password policy where companyId = ? and defaultPolicy = ? or returnsnullif it could not be found.static PasswordPolicyfetchByC_DP(long companyId, boolean defaultPolicy, boolean useFinderCache) Returns the password policy where companyId = ? and defaultPolicy = ? or returnsnullif it could not be found, optionally using the finder cache.static PasswordPolicyfetchByC_N(long companyId, String name) Returns the password policy where companyId = ? and name = ? or returnsnullif it could not be found.static PasswordPolicyfetchByC_N(long companyId, String name, boolean useFinderCache) Returns the password policy where companyId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.static PasswordPolicyfetchByCompanyId_First(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where companyId = ?.static PasswordPolicyfetchByCompanyId_Last(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where companyId = ?.static PasswordPolicyfetchByPrimaryKey(long passwordPolicyId) Returns the password policy with the primary key or returnsnullif it could not be found.static Map<Serializable,PasswordPolicy> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static PasswordPolicyfetchByUuid_C_First(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ? and companyId = ?.static PasswordPolicyfetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ? and companyId = ?.static PasswordPolicyfetchByUuid_First(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ?.static PasswordPolicyfetchByUuid_Last(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ?.static intfilterCountByCompanyId(long companyId) Returns the number of password policies that the user has permission to view where companyId = ?.static intfilterCountByUuid(String uuid) Returns the number of password policies that the user has permission to view where uuid = ?.static intfilterCountByUuid_C(String uuid, long companyId) Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.static List<PasswordPolicy>filterFindByCompanyId(long companyId) Returns all the password policies that the user has permission to view where companyId = ?.static List<PasswordPolicy>filterFindByCompanyId(long companyId, int start, int end) Returns a range of all the password policies that the user has permission to view where companyId = ?.static List<PasswordPolicy>filterFindByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies that the user has permissions to view where companyId = ?.static PasswordPolicy[]filterFindByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where companyId = ?.static List<PasswordPolicy>filterFindByUuid(String uuid) Returns all the password policies that the user has permission to view where uuid = ?.static List<PasswordPolicy>filterFindByUuid(String uuid, int start, int end) Returns a range of all the password policies that the user has permission to view where uuid = ?.static List<PasswordPolicy>filterFindByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies that the user has permissions to view where uuid = ?.static List<PasswordPolicy>filterFindByUuid_C(String uuid, long companyId) Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.static List<PasswordPolicy>filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the password policies that the user has permission to view where uuid = ? and companyId = ?.static List<PasswordPolicy>filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies that the user has permissions to view where uuid = ? and companyId = ?.static PasswordPolicy[]filterFindByUuid_C_PrevAndNext(long passwordPolicyId, String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = ? and companyId = ?.static PasswordPolicy[]filterFindByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = ?.static List<PasswordPolicy>findAll()Returns all the password policies.static List<PasswordPolicy>findAll(int start, int end) Returns a range of all the password policies.static List<PasswordPolicy>findAll(int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies.static List<PasswordPolicy>findAll(int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies.static PasswordPolicyfindByC_DP(long companyId, boolean defaultPolicy) Returns the password policy where companyId = ? and defaultPolicy = ? or throws aNoSuchPasswordPolicyExceptionif it could not be found.static PasswordPolicyReturns the password policy where companyId = ? and name = ? or throws aNoSuchPasswordPolicyExceptionif it could not be found.static List<PasswordPolicy>findByCompanyId(long companyId) Returns all the password policies where companyId = ?.static List<PasswordPolicy>findByCompanyId(long companyId, int start, int end) Returns a range of all the password policies where companyId = ?.static List<PasswordPolicy>findByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies where companyId = ?.static List<PasswordPolicy>findByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies where companyId = ?.static PasswordPolicyfindByCompanyId_First(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where companyId = ?.static PasswordPolicyfindByCompanyId_Last(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where companyId = ?.static PasswordPolicy[]findByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the password policies before and after the current password policy in the ordered set where companyId = ?.static PasswordPolicyfindByPrimaryKey(long passwordPolicyId) Returns the password policy with the primary key or throws aNoSuchPasswordPolicyExceptionif it could not be found.static List<PasswordPolicy>findByUuid(String uuid) Returns all the password policies where uuid = ?.static List<PasswordPolicy>findByUuid(String uuid, int start, int end) Returns a range of all the password policies where uuid = ?.static List<PasswordPolicy>findByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies where uuid = ?.static List<PasswordPolicy>findByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies where uuid = ?.static List<PasswordPolicy>findByUuid_C(String uuid, long companyId) Returns all the password policies where uuid = ? and companyId = ?.static List<PasswordPolicy>findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the password policies where uuid = ? and companyId = ?.static List<PasswordPolicy>findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies where uuid = ? and companyId = ?.static List<PasswordPolicy>findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies where uuid = ? and companyId = ?.static PasswordPolicyfindByUuid_C_First(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ? and companyId = ?.static PasswordPolicyfindByUuid_C_Last(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ? and companyId = ?.static PasswordPolicy[]findByUuid_C_PrevAndNext(long passwordPolicyId, String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the password policies before and after the current password policy in the ordered set where uuid = ? and companyId = ?.static PasswordPolicyfindByUuid_First(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ?.static PasswordPolicyfindByUuid_Last(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ?.static PasswordPolicy[]findByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the password policies before and after the current password policy in the ordered set where uuid = ?.static List<PasswordPolicy>findWithDynamicQuery(DynamicQuery dynamicQuery) static List<PasswordPolicy>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) static List<PasswordPolicy>findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) static PasswordPolicyPersistencestatic PasswordPolicyremove(long passwordPolicyId) Removes the password policy with the primary key from the database.static voidRemoves all the password policies from the database.static PasswordPolicyremoveByC_DP(long companyId, boolean defaultPolicy) Removes the password policy where companyId = ? and defaultPolicy = ? from the database.static PasswordPolicyremoveByC_N(long companyId, String name) Removes the password policy where companyId = ? and name = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the password policies where companyId = ? from the database.static voidremoveByUuid(String uuid) Removes all the password policies where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the password policies where uuid = ? and companyId = ? from the database.static voidsetPersistence(PasswordPolicyPersistence persistence) static PasswordPolicyupdate(PasswordPolicy passwordPolicy) static PasswordPolicyupdate(PasswordPolicy passwordPolicy, ServiceContext serviceContext) static PasswordPolicyupdateImpl(PasswordPolicy passwordPolicy)
-
Constructor Details
-
PasswordPolicyUtil
public PasswordPolicyUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) -
update
-
update
-
findByUuid
Returns all the password policies where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching password policies
-
findByUuid
Returns a range of all the password policies where uuid = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)- Returns:
- the range of matching password policies
-
findByUuid
public static List<PasswordPolicy> findByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies where uuid = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching password policies
-
findByUuid
public static List<PasswordPolicy> findByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies where uuid = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching password policies
-
findByUuid_First
public static PasswordPolicy findByUuid_First(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the first password policy in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching password policy
- Throws:
NoSuchPasswordPolicyException- if a matching password policy could not be foundNoSuchPasswordPolicyException
-
fetchByUuid_First
public static PasswordPolicy fetchByUuid_First(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching password policy, or
nullif a matching password policy could not be found
-
findByUuid_Last
public static PasswordPolicy findByUuid_Last(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the last password policy in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching password policy
- Throws:
NoSuchPasswordPolicyException- if a matching password policy could not be foundNoSuchPasswordPolicyException
-
fetchByUuid_Last
public static PasswordPolicy fetchByUuid_Last(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching password policy, or
nullif a matching password policy could not be found
-
findByUuid_PrevAndNext
public static PasswordPolicy[] findByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the password policies before and after the current password policy in the ordered set where uuid = ?.- Parameters:
passwordPolicyId- the primary key of the current password policyuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next password policy
- Throws:
NoSuchPasswordPolicyException- if a password policy with the primary key could not be foundNoSuchPasswordPolicyException
-
filterFindByUuid
Returns all the password policies that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching password policies that the user has permission to view
-
filterFindByUuid
Returns a range of all the password policies that the user has permission to view where uuid = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)- Returns:
- the range of matching password policies that the user has permission to view
-
filterFindByUuid
public static List<PasswordPolicy> filterFindByUuid(String uuid, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies that the user has permissions to view where uuid = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching password policies that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static PasswordPolicy[] filterFindByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = ?.- Parameters:
passwordPolicyId- the primary key of the current password policyuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next password policy
- Throws:
NoSuchPasswordPolicyException- if a password policy with the primary key could not be foundNoSuchPasswordPolicyException
-
removeByUuid
Removes all the password policies where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of password policies where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching password policies
-
filterCountByUuid
Returns the number of password policies that the user has permission to view where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching password policies that the user has permission to view
-
findByUuid_C
Returns all the password policies where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching password policies
-
findByUuid_C
Returns a range of all the password policies where uuid = ? and companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)- Returns:
- the range of matching password policies
-
findByUuid_C
public static List<PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies where uuid = ? and companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching password policies
-
findByUuid_C
public static List<PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies where uuid = ? and companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching password policies
-
findByUuid_C_First
public static PasswordPolicy findByUuid_C_First(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the first password policy in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching password policy
- Throws:
NoSuchPasswordPolicyException- if a matching password policy could not be foundNoSuchPasswordPolicyException
-
fetchByUuid_C_First
public static PasswordPolicy fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching password policy, or
nullif a matching password policy could not be found
-
findByUuid_C_Last
public static PasswordPolicy findByUuid_C_Last(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the last password policy in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching password policy
- Throws:
NoSuchPasswordPolicyException- if a matching password policy could not be foundNoSuchPasswordPolicyException
-
fetchByUuid_C_Last
public static PasswordPolicy fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching password policy, or
nullif a matching password policy could not be found
-
findByUuid_C_PrevAndNext
public static PasswordPolicy[] findByUuid_C_PrevAndNext(long passwordPolicyId, String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the password policies before and after the current password policy in the ordered set where uuid = ? and companyId = ?.- Parameters:
passwordPolicyId- the primary key of the current password policyuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next password policy
- Throws:
NoSuchPasswordPolicyException- if a password policy with the primary key could not be foundNoSuchPasswordPolicyException
-
filterFindByUuid_C
Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching password policies that the user has permission to view
-
filterFindByUuid_C
public static List<PasswordPolicy> filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the password policies that the user has permission to view where uuid = ? and companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)- Returns:
- the range of matching password policies that the user has permission to view
-
filterFindByUuid_C
public static List<PasswordPolicy> filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies that the user has permissions to view where uuid = ? and companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching password policies that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static PasswordPolicy[] filterFindByUuid_C_PrevAndNext(long passwordPolicyId, String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
passwordPolicyId- the primary key of the current password policyuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next password policy
- Throws:
NoSuchPasswordPolicyException- if a password policy with the primary key could not be foundNoSuchPasswordPolicyException
-
removeByUuid_C
Removes all the password policies where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of password policies where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching password policies
-
filterCountByUuid_C
Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching password policies that the user has permission to view
-
findByCompanyId
Returns all the password policies where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching password policies
-
findByCompanyId
Returns a range of all the password policies where companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)- Returns:
- the range of matching password policies
-
findByCompanyId
public static List<PasswordPolicy> findByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies where companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching password policies
-
findByCompanyId
public static List<PasswordPolicy> findByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies where companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching password policies
-
findByCompanyId_First
public static PasswordPolicy findByCompanyId_First(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the first password policy in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching password policy
- Throws:
NoSuchPasswordPolicyException- if a matching password policy could not be foundNoSuchPasswordPolicyException
-
fetchByCompanyId_First
public static PasswordPolicy fetchByCompanyId_First(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching password policy, or
nullif a matching password policy could not be found
-
findByCompanyId_Last
public static PasswordPolicy findByCompanyId_Last(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the last password policy in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching password policy
- Throws:
NoSuchPasswordPolicyException- if a matching password policy could not be foundNoSuchPasswordPolicyException
-
fetchByCompanyId_Last
public static PasswordPolicy fetchByCompanyId_Last(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching password policy, or
nullif a matching password policy could not be found
-
findByCompanyId_PrevAndNext
public static PasswordPolicy[] findByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the password policies before and after the current password policy in the ordered set where companyId = ?.- Parameters:
passwordPolicyId- the primary key of the current password policycompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next password policy
- Throws:
NoSuchPasswordPolicyException- if a password policy with the primary key could not be foundNoSuchPasswordPolicyException
-
filterFindByCompanyId
Returns all the password policies that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching password policies that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the password policies that the user has permission to view where companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)- Returns:
- the range of matching password policies that the user has permission to view
-
filterFindByCompanyId
public static List<PasswordPolicy> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies that the user has permissions to view where companyId = ?.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 fromPasswordPolicyModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching password policies that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static PasswordPolicy[] filterFindByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) throws NoSuchPasswordPolicyException Returns the password policies before and after the current password policy in the ordered set of password policies that the user has permission to view where companyId = ?.- Parameters:
passwordPolicyId- the primary key of the current password policycompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next password policy
- Throws:
NoSuchPasswordPolicyException- if a password policy with the primary key could not be foundNoSuchPasswordPolicyException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the password policies where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of password policies where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching password policies
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of password policies that the user has permission to view where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching password policies that the user has permission to view
-
findByC_DP
public static PasswordPolicy findByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException Returns the password policy where companyId = ? and defaultPolicy = ? or throws aNoSuchPasswordPolicyExceptionif it could not be found.- Parameters:
companyId- the company IDdefaultPolicy- the default policy- Returns:
- the matching password policy
- Throws:
NoSuchPasswordPolicyException- if a matching password policy could not be foundNoSuchPasswordPolicyException
-
fetchByC_DP
Returns the password policy where companyId = ? and defaultPolicy = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDdefaultPolicy- the default policy- Returns:
- the matching password policy, or
nullif a matching password policy could not be found
-
fetchByC_DP
public static PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy, boolean useFinderCache) Returns the password policy where companyId = ? and defaultPolicy = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDdefaultPolicy- the default policyuseFinderCache- whether to use the finder cache- Returns:
- the matching password policy, or
nullif a matching password policy could not be found
-
removeByC_DP
public static PasswordPolicy removeByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException Removes the password policy where companyId = ? and defaultPolicy = ? from the database.- Parameters:
companyId- the company IDdefaultPolicy- the default policy- Returns:
- the password policy that was removed
- Throws:
NoSuchPasswordPolicyException
-
countByC_DP
public static int countByC_DP(long companyId, boolean defaultPolicy) Returns the number of password policies where companyId = ? and defaultPolicy = ?.- Parameters:
companyId- the company IDdefaultPolicy- the default policy- Returns:
- the number of matching password policies
-
findByC_N
public static PasswordPolicy findByC_N(long companyId, String name) throws NoSuchPasswordPolicyException Returns the password policy where companyId = ? and name = ? or throws aNoSuchPasswordPolicyExceptionif it could not be found.- Parameters:
companyId- the company IDname- the name- Returns:
- the matching password policy
- Throws:
NoSuchPasswordPolicyException- if a matching password policy could not be foundNoSuchPasswordPolicyException
-
fetchByC_N
Returns the password policy where companyId = ? and name = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDname- the name- Returns:
- the matching password policy, or
nullif a matching password policy could not be found
-
fetchByC_N
Returns the password policy where companyId = ? and name = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDname- the nameuseFinderCache- whether to use the finder cache- Returns:
- the matching password policy, or
nullif a matching password policy could not be found
-
removeByC_N
public static PasswordPolicy removeByC_N(long companyId, String name) throws NoSuchPasswordPolicyException Removes the password policy where companyId = ? and name = ? from the database.- Parameters:
companyId- the company IDname- the name- Returns:
- the password policy that was removed
- Throws:
NoSuchPasswordPolicyException
-
countByC_N
Returns the number of password policies where companyId = ? and name = ?.- Parameters:
companyId- the company IDname- the name- Returns:
- the number of matching password policies
-
cacheResult
Caches the password policy in the entity cache if it is enabled.- Parameters:
passwordPolicy- the password policy
-
cacheResult
Caches the password policies in the entity cache if it is enabled.- Parameters:
passwordPolicies- the password policies
-
create
Creates a new password policy with the primary key. Does not add the password policy to the database.- Parameters:
passwordPolicyId- the primary key for the new password policy- Returns:
- the new password policy
-
remove
Removes the password policy with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
passwordPolicyId- the primary key of the password policy- Returns:
- the password policy that was removed
- Throws:
NoSuchPasswordPolicyException- if a password policy with the primary key could not be foundNoSuchPasswordPolicyException
-
updateImpl
-
findByPrimaryKey
public static PasswordPolicy findByPrimaryKey(long passwordPolicyId) throws NoSuchPasswordPolicyException Returns the password policy with the primary key or throws aNoSuchPasswordPolicyExceptionif it could not be found.- Parameters:
passwordPolicyId- the primary key of the password policy- Returns:
- the password policy
- Throws:
NoSuchPasswordPolicyException- if a password policy with the primary key could not be foundNoSuchPasswordPolicyException
-
fetchByPrimaryKey
Returns the password policy with the primary key or returnsnullif it could not be found.- Parameters:
passwordPolicyId- the primary key of the password policy- Returns:
- the password policy, or
nullif a password policy with the primary key could not be found
-
findAll
Returns all the password policies.- Returns:
- the password policies
-
findAll
Returns a range of all the password policies.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 fromPasswordPolicyModelImpl.- Parameters:
start- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)- Returns:
- the range of password policies
-
findAll
public static List<PasswordPolicy> findAll(int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies.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 fromPasswordPolicyModelImpl.- Parameters:
start- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of password policies
-
findAll
public static List<PasswordPolicy> findAll(int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies.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 fromPasswordPolicyModelImpl.- Parameters:
start- the lower bound of the range of password policiesend- the upper bound of the range of password policies (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of password policies
-
removeAll
public static void removeAll()Removes all the password policies from the database. -
countAll
public static int countAll()Returns the number of password policies.- Returns:
- the number of password policies
-
getPersistence
-
setPersistence
-