Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Interface PasswordPolicyPersistence

All Superinterfaces:
BasePersistence<PasswordPolicy>
All Known Implementing Classes:
PasswordPolicyPersistenceImpl

@ProviderType
public interface PasswordPolicyPersistence
extends BasePersistence<PasswordPolicy>

The persistence interface for the password policy service.

Caching information and settings can be found in portal.properties

See Also:
PasswordPolicyPersistenceImpl, PasswordPolicyUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(List<PasswordPolicy> passwordPolicies)
          Caches the password policies in the entity cache if it is enabled.
 void cacheResult(PasswordPolicy passwordPolicy)
          Caches the password policy 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_C(String uuid, long companyId)
          Returns the number of password policies where uuid = ? and companyId = ?.
 int countByUuid(String uuid)
          Returns the number of password policies where uuid = ?.
 PasswordPolicy create(long passwordPolicyId)
          Creates a new password policy with the primary key.
 PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy)
          Returns the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found.
 PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy, boolean retrieveFromCache)
          Returns the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found, optionally using the finder cache.
 PasswordPolicy fetchByC_N(long companyId, String name)
          Returns the password policy where companyId = ? and name = ? or returns null if it could not be found.
 PasswordPolicy fetchByC_N(long companyId, String name, boolean retrieveFromCache)
          Returns the password policy where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
 PasswordPolicy fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where companyId = ?.
 PasswordPolicy fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where companyId = ?.
 PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
          Returns the password policy with the primary key or returns null if it could not be found.
 PasswordPolicy fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
 PasswordPolicy fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where uuid = ? and companyId = ?.
 PasswordPolicy fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where uuid = ?.
 PasswordPolicy fetchByUuid_Last(String uuid, OrderByComparator 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_C(String uuid, long companyId)
          Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.
 int filterCountByUuid(String uuid)
          Returns the number of password policies that the user has permission to view where uuid = ?.
 PasswordPolicy[] filterFindByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator 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 = ?.
 List<PasswordPolicy> filterFindByCompanyId(long companyId)
          Returns all the password policies that the user has permission to view where companyId = ?.
 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 = ?.
 List<PasswordPolicy> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies that the user has permissions to view where companyId = ?.
 PasswordPolicy[] filterFindByUuid_C_PrevAndNext(long passwordPolicyId, String uuid, long companyId, OrderByComparator 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 = ?.
 List<PasswordPolicy> filterFindByUuid_C(String uuid, long companyId)
          Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.
 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 = ?.
 List<PasswordPolicy> filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies that the user has permissions to view where uuid = ? and companyId = ?.
 PasswordPolicy[] filterFindByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator 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 = ?.
 List<PasswordPolicy> filterFindByUuid(String uuid)
          Returns all the password policies that the user has permission to view where uuid = ?.
 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 = ?.
 List<PasswordPolicy> filterFindByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies that the user has permissions to view where uuid = ?.
 List<PasswordPolicy> findAll()
          Returns all the password policies.
 List<PasswordPolicy> findAll(int start, int end)
          Returns a range of all the password policies.
 List<PasswordPolicy> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies.
 PasswordPolicy findByC_DP(long companyId, boolean defaultPolicy)
          Returns the password policy where companyId = ? and defaultPolicy = ? or throws a NoSuchPasswordPolicyException if it could not be found.
 PasswordPolicy findByC_N(long companyId, String name)
          Returns the password policy where companyId = ? and name = ? or throws a NoSuchPasswordPolicyException if it could not be found.
 PasswordPolicy findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where companyId = ?.
 PasswordPolicy findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where companyId = ?.
 PasswordPolicy[] findByCompanyId_PrevAndNext(long passwordPolicyId, long companyId, OrderByComparator orderByComparator)
          Returns the password policies before and after the current password policy in the ordered set where companyId = ?.
 List<PasswordPolicy> findByCompanyId(long companyId)
          Returns all the password policies where companyId = ?.
 List<PasswordPolicy> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the password policies where companyId = ?.
 List<PasswordPolicy> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies where companyId = ?.
 PasswordPolicy findByPrimaryKey(long passwordPolicyId)
          Returns the password policy with the primary key or throws a NoSuchPasswordPolicyException if it could not be found.
 PasswordPolicy findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where uuid = ? and companyId = ?.
 PasswordPolicy findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where uuid = ? and companyId = ?.
 PasswordPolicy[] findByUuid_C_PrevAndNext(long passwordPolicyId, String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the password policies before and after the current password policy in the ordered set where uuid = ? and companyId = ?.
 List<PasswordPolicy> findByUuid_C(String uuid, long companyId)
          Returns all the password policies where uuid = ? and companyId = ?.
 List<PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the password policies where uuid = ? and companyId = ?.
 List<PasswordPolicy> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies where uuid = ? and companyId = ?.
 PasswordPolicy findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first password policy in the ordered set where uuid = ?.
 PasswordPolicy findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last password policy in the ordered set where uuid = ?.
 PasswordPolicy[] findByUuid_PrevAndNext(long passwordPolicyId, String uuid, OrderByComparator orderByComparator)
          Returns the password policies before and after the current password policy in the ordered set where uuid = ?.
 List<PasswordPolicy> findByUuid(String uuid)
          Returns all the password policies where uuid = ?.
 List<PasswordPolicy> findByUuid(String uuid, int start, int end)
          Returns a range of all the password policies where uuid = ?.
 List<PasswordPolicy> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the password policies where uuid = ?.
 PasswordPolicy remove(long passwordPolicyId)
          Removes the password policy with the primary key from the database.
 void removeAll()
          Removes all the password policies from the database.
 PasswordPolicy removeByC_DP(long companyId, boolean defaultPolicy)
          Removes the password policy where companyId = ? and defaultPolicy = ? from the database.
 PasswordPolicy 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_C(String uuid, long companyId)
          Removes all the password policies where uuid = ? and companyId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the password policies where uuid = ? from the database.
 PasswordPolicy updateImpl(PasswordPolicy passwordPolicy)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByUuid

List<PasswordPolicy> findByUuid(String uuid)
                                throws SystemException
Returns all the password policies where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid

List<PasswordPolicy> findByUuid(String uuid,
                                int start,
                                int end)
                                throws SystemException
Returns a range of all the password policies where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid

List<PasswordPolicy> findByUuid(String uuid,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the password policies where uuid = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid_First

PasswordPolicy findByUuid_First(String uuid,
                                OrderByComparator orderByComparator)
                                throws NoSuchPasswordPolicyException,
                                       SystemException
Returns the first password policy in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByUuid_First

PasswordPolicy fetchByUuid_First(String uuid,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first password policy in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

PasswordPolicy findByUuid_Last(String uuid,
                               OrderByComparator orderByComparator)
                               throws NoSuchPasswordPolicyException,
                                      SystemException
Returns the last password policy in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

PasswordPolicy fetchByUuid_Last(String uuid,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the last password policy in the ordered set where uuid = ?.

Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

PasswordPolicy[] findByUuid_PrevAndNext(long passwordPolicyId,
                                        String uuid,
                                        OrderByComparator orderByComparator)
                                        throws NoSuchPasswordPolicyException,
                                               SystemException
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 policy
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

filterFindByUuid

List<PasswordPolicy> filterFindByUuid(String uuid)
                                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByUuid

List<PasswordPolicy> filterFindByUuid(String uuid,
                                      int start,
                                      int end)
                                      throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of password policies
end - 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
Throws:
SystemException - if a system exception occurred

filterFindByUuid

List<PasswordPolicy> filterFindByUuid(String uuid,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid_PrevAndNext

PasswordPolicy[] filterFindByUuid_PrevAndNext(long passwordPolicyId,
                                              String uuid,
                                              OrderByComparator orderByComparator)
                                              throws NoSuchPasswordPolicyException,
                                                     SystemException
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 policy
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid

void removeByUuid(String uuid)
                  throws SystemException
Removes all the password policies where uuid = ? from the database.

Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

int countByUuid(String uuid)
                throws SystemException
Returns the number of password policies where uuid = ?.

Parameters:
uuid - the uuid
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

filterCountByUuid

int filterCountByUuid(String uuid)
                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<PasswordPolicy> findByUuid_C(String uuid,
                                  long companyId)
                                  throws SystemException
Returns all the password policies where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<PasswordPolicy> findByUuid_C(String uuid,
                                  long companyId,
                                  int start,
                                  int end)
                                  throws SystemException
Returns a range of all the password policies where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid_C

List<PasswordPolicy> findByUuid_C(String uuid,
                                  long companyId,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies
Throws:
SystemException - if a system exception occurred

findByUuid_C_First

PasswordPolicy findByUuid_C_First(String uuid,
                                  long companyId,
                                  OrderByComparator orderByComparator)
                                  throws NoSuchPasswordPolicyException,
                                         SystemException
Returns the first password policy in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByUuid_C_First

PasswordPolicy fetchByUuid_C_First(String uuid,
                                   long companyId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException
Returns the first password policy in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_Last

PasswordPolicy findByUuid_C_Last(String uuid,
                                 long companyId,
                                 OrderByComparator orderByComparator)
                                 throws NoSuchPasswordPolicyException,
                                        SystemException
Returns the last password policy in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByUuid_C_Last

PasswordPolicy fetchByUuid_C_Last(String uuid,
                                  long companyId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the last password policy in the ordered set where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_PrevAndNext

PasswordPolicy[] findByUuid_C_PrevAndNext(long passwordPolicyId,
                                          String uuid,
                                          long companyId,
                                          OrderByComparator orderByComparator)
                                          throws NoSuchPasswordPolicyException,
                                                 SystemException
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 policy
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

filterFindByUuid_C

List<PasswordPolicy> filterFindByUuid_C(String uuid,
                                        long companyId)
                                        throws SystemException
Returns all the password policies that the user has permission to view where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid_C

List<PasswordPolicy> filterFindByUuid_C(String uuid,
                                        long companyId,
                                        int start,
                                        int end)
                                        throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of password policies
end - 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
Throws:
SystemException - if a system exception occurred

filterFindByUuid_C

List<PasswordPolicy> filterFindByUuid_C(String uuid,
                                        long companyId,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                        throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByUuid_C_PrevAndNext

PasswordPolicy[] filterFindByUuid_C_PrevAndNext(long passwordPolicyId,
                                                String uuid,
                                                long companyId,
                                                OrderByComparator orderByComparator)
                                                throws NoSuchPasswordPolicyException,
                                                       SystemException
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 policy
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

removeByUuid_C

void removeByUuid_C(String uuid,
                    long companyId)
                    throws SystemException
Removes all the password policies where uuid = ? and companyId = ? from the database.

Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

int countByUuid_C(String uuid,
                  long companyId)
                  throws SystemException
Returns the number of password policies where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

filterCountByUuid_C

int filterCountByUuid_C(String uuid,
                        long companyId)
                        throws SystemException
Returns the number of password policies that the user has permission to view where uuid = ? and companyId = ?.

Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<PasswordPolicy> findByCompanyId(long companyId)
                                     throws SystemException
Returns all the password policies where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching password policies
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<PasswordPolicy> findByCompanyId(long companyId,
                                     int start,
                                     int end)
                                     throws SystemException
Returns a range of all the password policies where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of matching password policies
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<PasswordPolicy> findByCompanyId(long companyId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the password policies where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

PasswordPolicy findByCompanyId_First(long companyId,
                                     OrderByComparator orderByComparator)
                                     throws NoSuchPasswordPolicyException,
                                            SystemException
Returns the first password policy in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

PasswordPolicy fetchByCompanyId_First(long companyId,
                                      OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first password policy in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

PasswordPolicy findByCompanyId_Last(long companyId,
                                    OrderByComparator orderByComparator)
                                    throws NoSuchPasswordPolicyException,
                                           SystemException
Returns the last password policy in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

PasswordPolicy fetchByCompanyId_Last(long companyId,
                                     OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last password policy in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

PasswordPolicy[] findByCompanyId_PrevAndNext(long passwordPolicyId,
                                             long companyId,
                                             OrderByComparator orderByComparator)
                                             throws NoSuchPasswordPolicyException,
                                                    SystemException
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 policy
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

filterFindByCompanyId

List<PasswordPolicy> filterFindByCompanyId(long companyId)
                                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId

List<PasswordPolicy> filterFindByCompanyId(long companyId,
                                           int start,
                                           int end)
                                           throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of password policies
end - 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
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId

List<PasswordPolicy> filterFindByCompanyId(long companyId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                           throws SystemException
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 and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching password policies that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByCompanyId_PrevAndNext

PasswordPolicy[] filterFindByCompanyId_PrevAndNext(long passwordPolicyId,
                                                   long companyId,
                                                   OrderByComparator orderByComparator)
                                                   throws NoSuchPasswordPolicyException,
                                                          SystemException
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 policy
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next password policy
Throws:
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the password policies where companyId = ? from the database.

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Returns the number of password policies where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

filterCountByCompanyId

int filterCountByCompanyId(long companyId)
                           throws SystemException
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
Throws:
SystemException - if a system exception occurred

findByC_DP

PasswordPolicy findByC_DP(long companyId,
                          boolean defaultPolicy)
                          throws NoSuchPasswordPolicyException,
                                 SystemException
Returns the password policy where companyId = ? and defaultPolicy = ? or throws a NoSuchPasswordPolicyException if it could not be found.

Parameters:
companyId - the company ID
defaultPolicy - the default policy
Returns:
the matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByC_DP

PasswordPolicy fetchByC_DP(long companyId,
                           boolean defaultPolicy)
                           throws SystemException
Returns the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company ID
defaultPolicy - the default policy
Returns:
the matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_DP

PasswordPolicy fetchByC_DP(long companyId,
                           boolean defaultPolicy,
                           boolean retrieveFromCache)
                           throws SystemException
Returns the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company ID
defaultPolicy - the default policy
retrieveFromCache - whether to use the finder cache
Returns:
the matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

removeByC_DP

PasswordPolicy removeByC_DP(long companyId,
                            boolean defaultPolicy)
                            throws NoSuchPasswordPolicyException,
                                   SystemException
Removes the password policy where companyId = ? and defaultPolicy = ? from the database.

Parameters:
companyId - the company ID
defaultPolicy - the default policy
Returns:
the password policy that was removed
Throws:
SystemException - if a system exception occurred
NoSuchPasswordPolicyException

countByC_DP

int countByC_DP(long companyId,
                boolean defaultPolicy)
                throws SystemException
Returns the number of password policies where companyId = ? and defaultPolicy = ?.

Parameters:
companyId - the company ID
defaultPolicy - the default policy
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

findByC_N

PasswordPolicy findByC_N(long companyId,
                         String name)
                         throws NoSuchPasswordPolicyException,
                                SystemException
Returns the password policy where companyId = ? and name = ? or throws a NoSuchPasswordPolicyException if it could not be found.

Parameters:
companyId - the company ID
name - the name
Returns:
the matching password policy
Throws:
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred

fetchByC_N

PasswordPolicy fetchByC_N(long companyId,
                          String name)
                          throws SystemException
Returns the password policy where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company ID
name - the name
Returns:
the matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_N

PasswordPolicy fetchByC_N(long companyId,
                          String name,
                          boolean retrieveFromCache)
                          throws SystemException
Returns the password policy where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching password policy, or null if a matching password policy could not be found
Throws:
SystemException - if a system exception occurred

removeByC_N

PasswordPolicy removeByC_N(long companyId,
                           String name)
                           throws NoSuchPasswordPolicyException,
                                  SystemException
Removes the password policy where companyId = ? and name = ? from the database.

Parameters:
companyId - the company ID
name - the name
Returns:
the password policy that was removed
Throws:
SystemException - if a system exception occurred
NoSuchPasswordPolicyException

countByC_N

int countByC_N(long companyId,
               String name)
               throws SystemException
Returns the number of password policies where companyId = ? and name = ?.

Parameters:
companyId - the company ID
name - the name
Returns:
the number of matching password policies
Throws:
SystemException - if a system exception occurred

cacheResult

void cacheResult(PasswordPolicy passwordPolicy)
Caches the password policy in the entity cache if it is enabled.

Parameters:
passwordPolicy - the password policy

cacheResult

void cacheResult(List<PasswordPolicy> passwordPolicies)
Caches the password policies in the entity cache if it is enabled.

Parameters:
passwordPolicies - the password policies

create

PasswordPolicy create(long passwordPolicyId)
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

PasswordPolicy remove(long passwordPolicyId)
                      throws NoSuchPasswordPolicyException,
                             SystemException
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
SystemException - if a system exception occurred

updateImpl

PasswordPolicy updateImpl(PasswordPolicy passwordPolicy)
                          throws SystemException
Throws:
SystemException

findByPrimaryKey

PasswordPolicy findByPrimaryKey(long passwordPolicyId)
                                throws NoSuchPasswordPolicyException,
                                       SystemException
Returns the password policy with the primary key or throws a NoSuchPasswordPolicyException 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
SystemException - if a system exception occurred

fetchByPrimaryKey

PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
                                 throws SystemException
Returns the password policy with the primary key or returns null 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
Throws:
SystemException - if a system exception occurred

findAll

List<PasswordPolicy> findAll()
                             throws SystemException
Returns all the password policies.

Returns:
the password policies
Throws:
SystemException - if a system exception occurred

findAll

List<PasswordPolicy> findAll(int start,
                             int end)
                             throws SystemException
Returns a range of all the password policies.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
Returns:
the range of password policies
Throws:
SystemException - if a system exception occurred

findAll

List<PasswordPolicy> findAll(int start,
                             int end,
                             OrderByComparator orderByComparator)
                             throws SystemException
Returns an ordered range of all the password policies.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from PasswordPolicyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of password policies
end - the upper bound of the range of password policies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of password policies
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the password policies from the database.

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of password policies.

Returns:
the number of password policies
Throws:
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5