|
Liferay 6.1.2-ce-ga3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PasswordPolicyPersistence
The persistence interface for the password policy service.
Caching information and settings can be found in portal.properties
PasswordPolicyPersistenceImpl,
PasswordPolicyUtil| 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 = ?. |
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 |
fetchByPrimaryKey(long passwordPolicyId)
Returns the password policy with the primary key or returns null if it could not be found. |
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 |
findByPrimaryKey(long passwordPolicyId)
Returns the password policy with the primary key or throws a NoSuchPasswordPolicyException if it could not be found. |
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. |
PasswordPolicy |
updateImpl(PasswordPolicy passwordPolicy,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(PasswordPolicy passwordPolicy)
passwordPolicy - the password policyvoid cacheResult(List<PasswordPolicy> passwordPolicies)
passwordPolicies - the password policiesPasswordPolicy create(long passwordPolicyId)
passwordPolicyId - the primary key for the new password policy
PasswordPolicy remove(long passwordPolicyId)
throws NoSuchPasswordPolicyException,
SystemException
passwordPolicyId - the primary key of the password policy
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred
PasswordPolicy updateImpl(PasswordPolicy passwordPolicy,
boolean merge)
throws SystemException
SystemException
PasswordPolicy findByPrimaryKey(long passwordPolicyId)
throws NoSuchPasswordPolicyException,
SystemException
NoSuchPasswordPolicyException if it could not be found.
passwordPolicyId - the primary key of the password policy
NoSuchPasswordPolicyException - if a password policy with the primary key could not be found
SystemException - if a system exception occurred
PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
throws SystemException
null if it could not be found.
passwordPolicyId - the primary key of the password policy
null if a password policy with the primary key could not be found
SystemException - if a system exception occurred
PasswordPolicy findByC_DP(long companyId,
boolean defaultPolicy)
throws NoSuchPasswordPolicyException,
SystemException
NoSuchPasswordPolicyException if it could not be found.
companyId - the company IDdefaultPolicy - the default policy
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred
PasswordPolicy fetchByC_DP(long companyId,
boolean defaultPolicy)
throws SystemException
null if it could not be found. Uses the finder cache.
companyId - the company IDdefaultPolicy - the default policy
null if a matching password policy could not be found
SystemException - if a system exception occurred
PasswordPolicy fetchByC_DP(long companyId,
boolean defaultPolicy,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
companyId - the company IDdefaultPolicy - the default policyretrieveFromCache - whether to use the finder cache
null if a matching password policy could not be found
SystemException - if a system exception occurred
PasswordPolicy findByC_N(long companyId,
String name)
throws NoSuchPasswordPolicyException,
SystemException
NoSuchPasswordPolicyException if it could not be found.
companyId - the company IDname - the name
NoSuchPasswordPolicyException - if a matching password policy could not be found
SystemException - if a system exception occurred
PasswordPolicy fetchByC_N(long companyId,
String name)
throws SystemException
null if it could not be found. Uses the finder cache.
companyId - the company IDname - the name
null if a matching password policy could not be found
SystemException - if a system exception occurred
PasswordPolicy fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
companyId - the company IDname - the nameretrieveFromCache - whether to use the finder cache
null if a matching password policy could not be found
SystemException - if a system exception occurred
List<PasswordPolicy> findAll()
throws SystemException
SystemException - if a system exception occurred
List<PasswordPolicy> findAll(int start,
int end)
throws SystemException
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.
start - the lower bound of the range of password policiesend - the upper bound of the range of password policies (not inclusive)
SystemException - if a system exception occurred
List<PasswordPolicy> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
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 (optionally null)
SystemException - if a system exception occurred
PasswordPolicy removeByC_DP(long companyId,
boolean defaultPolicy)
throws NoSuchPasswordPolicyException,
SystemException
companyId - the company IDdefaultPolicy - the default policy
SystemException - if a system exception occurred
NoSuchPasswordPolicyException
PasswordPolicy removeByC_N(long companyId,
String name)
throws NoSuchPasswordPolicyException,
SystemException
companyId - the company IDname - the name
SystemException - if a system exception occurred
NoSuchPasswordPolicyException
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByC_DP(long companyId,
boolean defaultPolicy)
throws SystemException
companyId - the company IDdefaultPolicy - the default policy
SystemException - if a system exception occurred
int countByC_N(long companyId,
String name)
throws SystemException
companyId - the company IDname - the name
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.1.2-ce-ga3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||