Class PasswordPolicyLocalServiceWrapper
- All Implemented Interfaces:
BaseLocalService
,PasswordPolicyLocalService
,PersistedModelLocalService
,ServiceWrapper<PasswordPolicyLocalService>
PasswordPolicyLocalService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordPolicyLocalServiceWrapper
(PasswordPolicyLocalService passwordPolicyLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddPasswordPolicy
(long userId, boolean defaultPolicy, String name, String description, boolean changeable, boolean changeRequired, long minAge, boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric, int minLength, int minLowerCase, int minNumbers, int minSymbols, int minUpperCase, String regex, boolean history, int historyCount, boolean expireable, long maxAge, long warningTime, int graceLimit, boolean lockout, int maxFailure, long lockoutDuration, long resetFailureCount, long resetTicketMaxAge, ServiceContext serviceContext) addPasswordPolicy
(PasswordPolicy passwordPolicy) Adds the password policy to the database.void
checkDefaultPasswordPolicy
(long companyId) createPasswordPolicy
(long passwordPolicyId) Creates a new password policy with the primary key.createPersistedModel
(Serializable primaryKeyObj) void
deleteNondefaultPasswordPolicies
(long companyId) deletePasswordPolicy
(long passwordPolicyId) Deletes the password policy with the primary key from the database.deletePasswordPolicy
(PasswordPolicy passwordPolicy) Deletes the password policy from the database.deletePersistedModel
(PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery, int start, int end) Performs a dynamic query on the database and returns a range of the matching rows.<T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchPasswordPolicy
(long passwordPolicyId) fetchPasswordPolicy
(long companyId, String name) fetchPasswordPolicyByUuidAndCompanyId
(String uuid, long companyId) Returns the password policy with the matching UUID and company.getDefaultPasswordPolicy
(long companyId) getExportActionableDynamicQuery
(PortletDataContext portletDataContext) Returns the OSGi service identifier.getPasswordPolicies
(int start, int end) Returns a range of all the password policies.int
Returns the number of password policies.getPasswordPolicy
(long passwordPolicyId) Returns the password policy with the primary key.getPasswordPolicy
(long companyId, boolean defaultPolicy) getPasswordPolicy
(long companyId, long[] organizationIds) getPasswordPolicyByUser
(User user) getPasswordPolicyByUserId
(long userId) getPasswordPolicyByUuidAndCompanyId
(String uuid, long companyId) Returns the password policy with the matching UUID and company.getPersistedModel
(Serializable primaryKeyObj) search
(long companyId, String name, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) int
searchCount
(long companyId, String name) void
setWrappedService
(PasswordPolicyLocalService passwordPolicyLocalService) updatePasswordPolicy
(long passwordPolicyId, String name, String description, boolean changeable, boolean changeRequired, long minAge, boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric, int minLength, int minLowerCase, int minNumbers, int minSymbols, int minUpperCase, String regex, boolean history, int historyCount, boolean expireable, long maxAge, long warningTime, int graceLimit, boolean lockout, int maxFailure, long lockoutDuration, long resetFailureCount, long resetTicketMaxAge, ServiceContext serviceContext) updatePasswordPolicy
(PasswordPolicy passwordPolicy) Updates the password policy in the database or adds it if it does not yet exist.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
PasswordPolicyLocalServiceWrapper
public PasswordPolicyLocalServiceWrapper() -
PasswordPolicyLocalServiceWrapper
-
-
Method Details
-
addPasswordPolicy
public PasswordPolicy addPasswordPolicy(long userId, boolean defaultPolicy, String name, String description, boolean changeable, boolean changeRequired, long minAge, boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric, int minLength, int minLowerCase, int minNumbers, int minSymbols, int minUpperCase, String regex, boolean history, int historyCount, boolean expireable, long maxAge, long warningTime, int graceLimit, boolean lockout, int maxFailure, long lockoutDuration, long resetFailureCount, long resetTicketMaxAge, ServiceContext serviceContext) throws PortalException - Specified by:
addPasswordPolicy
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
addPasswordPolicy
Adds the password policy to the database. Also notifies the appropriate model listeners.Important: Inspect PasswordPolicyLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
addPasswordPolicy
in interfacePasswordPolicyLocalService
- Parameters:
passwordPolicy
- the password policy- Returns:
- the password policy that was added
-
checkDefaultPasswordPolicy
- Specified by:
checkDefaultPasswordPolicy
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
createPasswordPolicy
Creates a new password policy with the primary key. Does not add the password policy to the database.- Specified by:
createPasswordPolicy
in interfacePasswordPolicyLocalService
- Parameters:
passwordPolicyId
- the primary key for the new password policy- Returns:
- the new password policy
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePasswordPolicyLocalService
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
deleteNondefaultPasswordPolicies
- Specified by:
deleteNondefaultPasswordPolicies
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
deletePasswordPolicy
Deletes the password policy with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect PasswordPolicyLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deletePasswordPolicy
in interfacePasswordPolicyLocalService
- Parameters:
passwordPolicyId
- the primary key of the password policy- Returns:
- the password policy that was removed
- Throws:
PortalException
- if a password policy with the primary key could not be foundPortalException
-
deletePasswordPolicy
Deletes the password policy from the database. Also notifies the appropriate model listeners.Important: Inspect PasswordPolicyLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
deletePasswordPolicy
in interfacePasswordPolicyLocalService
- Parameters:
passwordPolicy
- the password policy- Returns:
- the password policy that was removed
- Throws:
PortalException
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePasswordPolicyLocalService
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePasswordPolicyLocalService
- Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePasswordPolicyLocalService
- Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQuery
in interfacePasswordPolicyLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfacePasswordPolicyLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
Performs a dynamic query on the database and returns a range of the matching rows.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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.PasswordPolicyModelImpl
.- Specified by:
dynamicQuery
in interfacePasswordPolicyLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.PasswordPolicyModelImpl
.- Specified by:
dynamicQuery
in interfacePasswordPolicyLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfacePasswordPolicyLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfacePasswordPolicyLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchPasswordPolicy
- Specified by:
fetchPasswordPolicy
in interfacePasswordPolicyLocalService
-
fetchPasswordPolicy
- Specified by:
fetchPasswordPolicy
in interfacePasswordPolicyLocalService
-
fetchPasswordPolicyByUuidAndCompanyId
Returns the password policy with the matching UUID and company.- Specified by:
fetchPasswordPolicyByUuidAndCompanyId
in interfacePasswordPolicyLocalService
- Parameters:
uuid
- the password policy's UUIDcompanyId
- the primary key of the company- Returns:
- the matching password policy, or
null
if a matching password policy could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQuery
in interfacePasswordPolicyLocalService
-
getDefaultPasswordPolicy
- Specified by:
getDefaultPasswordPolicy
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfacePasswordPolicyLocalService
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQuery
in interfacePasswordPolicyLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfacePasswordPolicyLocalService
- Returns:
- the OSGi service identifier
-
getPasswordPolicies
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
tocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.portal.model.impl.PasswordPolicyModelImpl
.- Specified by:
getPasswordPolicies
in interfacePasswordPolicyLocalService
- 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
-
getPasswordPoliciesCount
public int getPasswordPoliciesCount()Returns the number of password policies.- Specified by:
getPasswordPoliciesCount
in interfacePasswordPolicyLocalService
- Returns:
- the number of password policies
-
getPasswordPolicy
Returns the password policy with the primary key.- Specified by:
getPasswordPolicy
in interfacePasswordPolicyLocalService
- Parameters:
passwordPolicyId
- the primary key of the password policy- Returns:
- the password policy
- Throws:
PortalException
- if a password policy with the primary key could not be foundPortalException
-
getPasswordPolicy
public PasswordPolicy getPasswordPolicy(long companyId, boolean defaultPolicy) throws PortalException - Specified by:
getPasswordPolicy
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
getPasswordPolicy
public PasswordPolicy getPasswordPolicy(long companyId, long[] organizationIds) throws PortalException - Specified by:
getPasswordPolicy
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
getPasswordPolicyByUser
- Specified by:
getPasswordPolicyByUser
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
getPasswordPolicyByUserId
- Specified by:
getPasswordPolicyByUserId
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
getPasswordPolicyByUuidAndCompanyId
public PasswordPolicy getPasswordPolicyByUuidAndCompanyId(String uuid, long companyId) throws PortalException Returns the password policy with the matching UUID and company.- Specified by:
getPasswordPolicyByUuidAndCompanyId
in interfacePasswordPolicyLocalService
- Parameters:
uuid
- the password policy's UUIDcompanyId
- the primary key of the company- Returns:
- the matching password policy
- Throws:
PortalException
- if a matching password policy could not be foundPortalException
-
getPersistedModel
- Specified by:
getPersistedModel
in interfacePasswordPolicyLocalService
- Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
PortalException
-
search
public List<PasswordPolicy> search(long companyId, String name, int start, int end, OrderByComparator<PasswordPolicy> orderByComparator) - Specified by:
search
in interfacePasswordPolicyLocalService
-
searchCount
- Specified by:
searchCount
in interfacePasswordPolicyLocalService
-
updatePasswordPolicy
public PasswordPolicy updatePasswordPolicy(long passwordPolicyId, String name, String description, boolean changeable, boolean changeRequired, long minAge, boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric, int minLength, int minLowerCase, int minNumbers, int minSymbols, int minUpperCase, String regex, boolean history, int historyCount, boolean expireable, long maxAge, long warningTime, int graceLimit, boolean lockout, int maxFailure, long lockoutDuration, long resetFailureCount, long resetTicketMaxAge, ServiceContext serviceContext) throws PortalException - Specified by:
updatePasswordPolicy
in interfacePasswordPolicyLocalService
- Throws:
PortalException
-
updatePasswordPolicy
Updates the password policy in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect PasswordPolicyLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
- Specified by:
updatePasswordPolicy
in interfacePasswordPolicyLocalService
- Parameters:
passwordPolicy
- the password policy- Returns:
- the password policy that was updated
-
getBasePersistence
- Specified by:
getBasePersistence
in interfacePersistedModelLocalService
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<PasswordPolicyLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<PasswordPolicyLocalService>
-