Interface PasswordPolicyPersistence
- All Superinterfaces:
BasePersistence<PasswordPolicy>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(PasswordPolicy passwordPolicy) Caches the password policy in the entity cache if it is enabled.void
cacheResult
(List<PasswordPolicy> passwordPolicies) Caches the password policies in the entity cache if it is enabled.int
countAll()
Returns the number of password policies.int
countByC_DP
(long companyId, boolean defaultPolicy) Returns the number of password policies where companyId = ? and defaultPolicy = ?.int
countByC_N
(long companyId, String name) Returns the number of password policies where companyId = ? and name = ?.int
countByCompanyId
(long companyId) Returns the number of password policies where companyId = ?.int
countByUuid
(String uuid) Returns the number of password policies where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of password policies where uuid = ? and companyId = ?.create
(long passwordPolicyId) Creates a new password policy with the primary key.fetchByC_DP
(long companyId, boolean defaultPolicy) Returns the password policy where companyId = ? and defaultPolicy = ? or returnsnull
if it could not be found.fetchByC_DP
(long companyId, boolean defaultPolicy, boolean useFinderCache) Returns the password policy where companyId = ? and defaultPolicy = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByC_N
(long companyId, String name) Returns the password policy where companyId = ? and name = ? or returnsnull
if it could not be found.fetchByC_N
(long companyId, String name, boolean useFinderCache) Returns the password policy where companyId = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByCompanyId_First
(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where companyId = ?.fetchByPrimaryKey
(long passwordPolicyId) Returns the password policy with the primary key or returnsnull
if it could not be found.fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ?.int
filterCountByCompanyId
(long companyId) Returns the number of password policies that the user has permission to view where companyId = ?.int
filterCountByUuid
(String uuid) Returns the number of password policies that the user has permission to view where uuid = ?.int
filterCountByUuid_C
(String uuid, long companyId) Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.filterFindByCompanyId
(long companyId) Returns all the password policies that the user has permission to view where companyId = ?.filterFindByCompanyId
(long companyId, int start, int end) Returns a range of all the password policies that the user has permission to view where companyId = ?.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 = ?.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 = ?.filterFindByUuid
(String uuid) Returns all the password policies that the user has permission to view where uuid = ?.filterFindByUuid
(String uuid, int start, int end) Returns a range of all the password policies that the user has permission to view where uuid = ?.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 = ?.filterFindByUuid_C
(String uuid, long companyId) Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.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 = ?.findAll()
Returns all the password policies.findAll
(int start, int end) Returns a range of all the password policies.findAll
(int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies.findAll
(int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies.findByC_DP
(long companyId, boolean defaultPolicy) Returns the password policy where companyId = ? and defaultPolicy = ? or throws aNoSuchPasswordPolicyException
if it could not be found.Returns the password policy where companyId = ? and name = ? or throws aNoSuchPasswordPolicyException
if it could not be found.findByCompanyId
(long companyId) Returns all the password policies where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the password policies where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies where companyId = ?.findByCompanyId_First
(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where companyId = ?.findByCompanyId_Last
(long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where companyId = ?.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 = ?.findByPrimaryKey
(long passwordPolicyId) Returns the password policy with the primary key or throws aNoSuchPasswordPolicyException
if it could not be found.findByUuid
(String uuid) Returns all the password policies where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the password policies where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) Returns an ordered range of all the password policies where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator, boolean useFinderCache) Returns an ordered range of all the password policies where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the password policies where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the password policies where uuid = ? and companyId = ?.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 = ?.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 = ?.findByUuid_C_First
(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ? and companyId = ?.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 = ?.findByUuid_First
(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the first password policy in the ordered set where uuid = ?.findByUuid_Last
(String uuid, OrderByComparator<PasswordPolicy> orderByComparator) Returns the last password policy in the ordered set where uuid = ?.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 = ?.remove
(long passwordPolicyId) Removes the password policy with the primary key from the database.void
Removes all the password policies from the database.removeByC_DP
(long companyId, boolean defaultPolicy) Removes the password policy where companyId = ? and defaultPolicy = ? from the database.removeByC_N
(long companyId, String name) Removes the password policy where companyId = ? and name = ? from the database.void
removeByCompanyId
(long companyId) Removes all the password policies where companyId = ? from the database.void
removeByUuid
(String uuid) Removes all the password policies where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the password policies where uuid = ? and companyId = ? from the database.updateImpl
(PasswordPolicy passwordPolicy) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByUuid_First
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
null
if a matching password policy could not be found
-
findByUuid_Last
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 found
-
fetchByUuid_Last
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
null
if a matching password policy could not be found
-
findByUuid_PrevAndNext
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 found
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByUuid_C_First
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
null
if a matching password policy could not be found
-
findByUuid_C_Last
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 found
-
fetchByUuid_C_Last
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
null
if a matching password policy could not be found
-
findByUuid_C_PrevAndNext
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 found
-
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
fetchByCompanyId_First
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
null
if a matching password policy could not be found
-
findByCompanyId_Last
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 found
-
fetchByCompanyId_Last
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
null
if a matching password policy could not be found
-
findByCompanyId_PrevAndNext
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 found
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the password policies where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
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
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
PasswordPolicy findByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException Returns the password policy where companyId = ? and defaultPolicy = ? or throws aNoSuchPasswordPolicyException
if 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 found
-
fetchByC_DP
Returns the password policy where companyId = ? and defaultPolicy = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDdefaultPolicy
- the default policy- Returns:
- the matching password policy, or
null
if a matching password policy could not be found
-
fetchByC_DP
Returns the password policy where companyId = ? and defaultPolicy = ? or returnsnull
if 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
null
if a matching password policy could not be found
-
removeByC_DP
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
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
Returns the password policy where companyId = ? and name = ? or throws aNoSuchPasswordPolicyException
if 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 found
-
fetchByC_N
Returns the password policy where companyId = ? and name = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDname
- the name- Returns:
- the matching password policy, or
null
if a matching password policy could not be found
-
fetchByC_N
Returns the password policy where companyId = ? and name = ? or returnsnull
if 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
null
if a matching password policy could not be found
-
removeByC_N
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 found
-
updateImpl
-
findByPrimaryKey
Returns the password policy with the primary key or throws aNoSuchPasswordPolicyException
if 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 found
-
fetchByPrimaryKey
Returns the password policy with the primary key or returnsnull
if it could not be found.- Parameters:
passwordPolicyId
- the primary key of the password policy- Returns:
- the password policy, or
null
if a password policy with the primary key could not be found
-
findAll
List<PasswordPolicy> 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
void removeAll()Removes all the password policies from the database. -
countAll
int countAll()Returns the number of password policies.- Returns:
- the number of password policies
-