|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.PasswordPolicyUtil
public class PasswordPolicyUtil
The persistence utility for the password policy service. This utility wraps PasswordPolicyPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
PasswordPolicyPersistence
,
PasswordPolicyPersistenceImpl
Constructor Summary | |
---|---|
PasswordPolicyUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(List<PasswordPolicy> passwordPolicies)
Caches the password policies in the entity cache if it is enabled. |
static void |
cacheResult(PasswordPolicy passwordPolicy)
Caches the password policy in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(PasswordPolicy passwordPolicy)
|
static int |
countAll()
Counts all the password policies. |
static int |
countByC_DP(long companyId,
boolean defaultPolicy)
Counts all the password policies where companyId = ? and defaultPolicy = ?. |
static int |
countByC_N(long companyId,
String name)
Counts all the password policies where companyId = ? and name = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static PasswordPolicy |
create(long passwordPolicyId)
Creates a new password policy with the primary key. |
static PasswordPolicy |
fetchByC_DP(long companyId,
boolean defaultPolicy)
Finds the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found. |
static PasswordPolicy |
fetchByC_DP(long companyId,
boolean defaultPolicy,
boolean retrieveFromCache)
Finds the password policy where companyId = ? and defaultPolicy = ? or returns null if it could not be found, optionally using the finder cache. |
static PasswordPolicy |
fetchByC_N(long companyId,
String name)
Finds the password policy where companyId = ? and name = ? or returns null if it could not be found. |
static PasswordPolicy |
fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
Finds the password policy where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache. |
static PasswordPolicy |
fetchByPrimaryKey(long passwordPolicyId)
Finds the password policy with the primary key or returns null if it could not be found. |
static List<PasswordPolicy> |
findAll()
Finds all the password policies. |
static List<PasswordPolicy> |
findAll(int start,
int end)
Finds a range of all the password policies. |
static List<PasswordPolicy> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the password policies. |
static PasswordPolicy |
findByC_DP(long companyId,
boolean defaultPolicy)
Finds the password policy where companyId = ? and defaultPolicy = ? or throws a NoSuchPasswordPolicyException if it could not be found. |
static PasswordPolicy |
findByC_N(long companyId,
String name)
Finds the password policy where companyId = ? and name = ? or throws a NoSuchPasswordPolicyException if it could not be found. |
static PasswordPolicy |
findByPrimaryKey(long passwordPolicyId)
Finds the password policy with the primary key or throws a NoSuchPasswordPolicyException if it could not be found. |
static List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<PasswordPolicy> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static PasswordPolicyPersistence |
getPersistence()
|
static PasswordPolicy |
remove(long passwordPolicyId)
Removes the password policy with the primary key from the database. |
static PasswordPolicy |
remove(PasswordPolicy passwordPolicy)
|
static void |
removeAll()
Removes all the password policies from the database. |
static void |
removeByC_DP(long companyId,
boolean defaultPolicy)
Removes the password policy where companyId = ? and defaultPolicy = ? from the database. |
static void |
removeByC_N(long companyId,
String name)
Removes the password policy where companyId = ? and name = ? from the database. |
void |
setPersistence(PasswordPolicyPersistence persistence)
|
static PasswordPolicy |
update(PasswordPolicy passwordPolicy,
boolean merge)
|
static PasswordPolicy |
update(PasswordPolicy passwordPolicy,
boolean merge,
ServiceContext serviceContext)
|
static PasswordPolicy |
updateImpl(PasswordPolicy passwordPolicy,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordPolicyUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(PasswordPolicy passwordPolicy)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<PasswordPolicy> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static PasswordPolicy remove(PasswordPolicy passwordPolicy) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static PasswordPolicy update(PasswordPolicy passwordPolicy, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static PasswordPolicy update(PasswordPolicy passwordPolicy, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(PasswordPolicy passwordPolicy)
passwordPolicy
- the password policy to cachepublic static void cacheResult(List<PasswordPolicy> passwordPolicies)
passwordPolicies
- the password policies to cachepublic static PasswordPolicy create(long passwordPolicyId)
passwordPolicyId
- the primary key for the new password policy
public static PasswordPolicy remove(long passwordPolicyId) throws NoSuchPasswordPolicyException, SystemException
passwordPolicyId
- the primary key of the password policy to remove
NoSuchPasswordPolicyException
- if a password policy with the primary key could not be found
SystemException
- if a system exception occurredpublic static PasswordPolicy updateImpl(PasswordPolicy passwordPolicy, boolean merge) throws SystemException
SystemException
public static PasswordPolicy findByPrimaryKey(long passwordPolicyId) throws NoSuchPasswordPolicyException, SystemException
NoSuchPasswordPolicyException
if it could not be found.
passwordPolicyId
- the primary key of the password policy to find
NoSuchPasswordPolicyException
- if a password policy with the primary key could not be found
SystemException
- if a system exception occurredpublic static PasswordPolicy fetchByPrimaryKey(long passwordPolicyId) throws SystemException
null
if it could not be found.
passwordPolicyId
- the primary key of the password policy to find
null
if a password policy with the primary key could not be found
SystemException
- if a system exception occurredpublic static PasswordPolicy findByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException, SystemException
NoSuchPasswordPolicyException
if it could not be found.
companyId
- the company id to search withdefaultPolicy
- the default policy to search with
NoSuchPasswordPolicyException
- if a matching password policy could not be found
SystemException
- if a system exception occurredpublic static PasswordPolicy fetchByC_DP(long companyId, boolean defaultPolicy) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company id to search withdefaultPolicy
- the default policy to search with
null
if a matching password policy could not be found
SystemException
- if a system exception occurredpublic static 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 id to search withdefaultPolicy
- the default policy to search with
null
if a matching password policy could not be found
SystemException
- if a system exception occurredpublic static PasswordPolicy findByC_N(long companyId, String name) throws NoSuchPasswordPolicyException, SystemException
NoSuchPasswordPolicyException
if it could not be found.
companyId
- the company id to search withname
- the name to search with
NoSuchPasswordPolicyException
- if a matching password policy could not be found
SystemException
- if a system exception occurredpublic static PasswordPolicy fetchByC_N(long companyId, String name) throws SystemException
null
if it could not be found. Uses the finder cache.
companyId
- the company id to search withname
- the name to search with
null
if a matching password policy could not be found
SystemException
- if a system exception occurredpublic static 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 id to search withname
- the name to search with
null
if a matching password policy could not be found
SystemException
- if a system exception occurredpublic static List<PasswordPolicy> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static 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 policies to returnend
- the upper bound of the range of password policies to return (not inclusive)
SystemException
- if a system exception occurredpublic static 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 policies to returnend
- the upper bound of the range of password policies to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByC_DP(long companyId, boolean defaultPolicy) throws NoSuchPasswordPolicyException, SystemException
companyId
- the company id to search withdefaultPolicy
- the default policy to search with
SystemException
- if a system exception occurred
NoSuchPasswordPolicyException
public static void removeByC_N(long companyId, String name) throws NoSuchPasswordPolicyException, SystemException
companyId
- the company id to search withname
- the name to search with
SystemException
- if a system exception occurred
NoSuchPasswordPolicyException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByC_DP(long companyId, boolean defaultPolicy) throws SystemException
companyId
- the company id to search withdefaultPolicy
- the default policy to search with
SystemException
- if a system exception occurredpublic static int countByC_N(long companyId, String name) throws SystemException
companyId
- the company id to search withname
- the name to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static PasswordPolicyPersistence getPersistence()
public void setPersistence(PasswordPolicyPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |