com.liferay.portal.service.persistence
Class PasswordPolicyUtil
java.lang.Object
com.liferay.portal.service.persistence.PasswordPolicyUtil
public class PasswordPolicyUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByC_DP(long companyId,
boolean defaultPolicy)
|
static int |
countByC_N(long companyId,
java.lang.String name)
|
static PasswordPolicy |
create(long passwordPolicyId)
|
static PasswordPolicy |
fetchByC_DP(long companyId,
boolean defaultPolicy)
|
static PasswordPolicy |
fetchByC_N(long companyId,
java.lang.String name)
|
static PasswordPolicy |
fetchByPrimaryKey(long passwordPolicyId)
|
static java.util.List<PasswordPolicy> |
findAll()
|
static java.util.List<PasswordPolicy> |
findAll(int start,
int end)
|
static java.util.List<PasswordPolicy> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static PasswordPolicy |
findByC_DP(long companyId,
boolean defaultPolicy)
|
static PasswordPolicy |
findByC_N(long companyId,
java.lang.String name)
|
static PasswordPolicy |
findByPrimaryKey(long passwordPolicyId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static PasswordPolicyPersistence |
getPersistence()
|
static PasswordPolicy |
remove(long passwordPolicyId)
|
static PasswordPolicy |
remove(PasswordPolicy passwordPolicy)
|
static void |
removeAll()
|
static void |
removeByC_DP(long companyId,
boolean defaultPolicy)
|
static void |
removeByC_N(long companyId,
java.lang.String name)
|
void |
setPersistence(PasswordPolicyPersistence persistence)
|
static PasswordPolicy |
update(PasswordPolicy passwordPolicy)
Deprecated. Use update(PasswordPolicy passwordPolicy, boolean merge) . |
static PasswordPolicy |
update(PasswordPolicy passwordPolicy,
boolean merge)
Add, update, or merge, the entity. |
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 |
PasswordPolicyUtil
public PasswordPolicyUtil()
create
public static PasswordPolicy create(long passwordPolicyId)
remove
public static PasswordPolicy remove(long passwordPolicyId)
throws NoSuchPasswordPolicyException,
com.liferay.portal.SystemException
- Throws:
NoSuchPasswordPolicyException
com.liferay.portal.SystemException
remove
public static PasswordPolicy remove(PasswordPolicy passwordPolicy)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static PasswordPolicy update(PasswordPolicy passwordPolicy)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(PasswordPolicy passwordPolicy, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static PasswordPolicy update(PasswordPolicy passwordPolicy,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
passwordPolicy
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when passwordPolicy is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static PasswordPolicy updateImpl(PasswordPolicy passwordPolicy,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static PasswordPolicy findByPrimaryKey(long passwordPolicyId)
throws NoSuchPasswordPolicyException,
com.liferay.portal.SystemException
- Throws:
NoSuchPasswordPolicyException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static PasswordPolicy fetchByPrimaryKey(long passwordPolicyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_DP
public static PasswordPolicy findByC_DP(long companyId,
boolean defaultPolicy)
throws NoSuchPasswordPolicyException,
com.liferay.portal.SystemException
- Throws:
NoSuchPasswordPolicyException
com.liferay.portal.SystemException
fetchByC_DP
public static PasswordPolicy fetchByC_DP(long companyId,
boolean defaultPolicy)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByC_N
public static PasswordPolicy findByC_N(long companyId,
java.lang.String name)
throws NoSuchPasswordPolicyException,
com.liferay.portal.SystemException
- Throws:
NoSuchPasswordPolicyException
com.liferay.portal.SystemException
fetchByC_N
public static PasswordPolicy fetchByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PasswordPolicy> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PasswordPolicy> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<PasswordPolicy> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByC_DP
public static void removeByC_DP(long companyId,
boolean defaultPolicy)
throws NoSuchPasswordPolicyException,
com.liferay.portal.SystemException
- Throws:
NoSuchPasswordPolicyException
com.liferay.portal.SystemException
removeByC_N
public static void removeByC_N(long companyId,
java.lang.String name)
throws NoSuchPasswordPolicyException,
com.liferay.portal.SystemException
- Throws:
NoSuchPasswordPolicyException
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_DP
public static int countByC_DP(long companyId,
boolean defaultPolicy)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByC_N
public static int countByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static PasswordPolicyPersistence getPersistence()
setPersistence
public void setPersistence(PasswordPolicyPersistence persistence)