001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class PasswordPolicyServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
059 java.lang.String name, java.lang.String description,
060 boolean changeable, boolean changeRequired, long minAge,
061 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
062 int minLength, int minLowerCase, int minNumbers, int minSymbols,
063 int minUpperCase, boolean history, int historyCount,
064 boolean expireable, long maxAge, long warningTime, int graceLimit,
065 boolean lockout, int maxFailure, long lockoutDuration,
066 long resetFailureCount, long resetTicketMaxAge)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 return getService()
070 .addPasswordPolicy(name, description, changeable,
071 changeRequired, minAge, checkSyntax, allowDictionaryWords,
072 minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
073 minUpperCase, history, historyCount, expireable, maxAge,
074 warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
075 resetFailureCount, resetTicketMaxAge);
076 }
077
078 public static void deletePasswordPolicy(long passwordPolicyId)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException {
081 getService().deletePasswordPolicy(passwordPolicyId);
082 }
083
084 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
085 long passwordPolicyId, java.lang.String name,
086 java.lang.String description, boolean changeable,
087 boolean changeRequired, long minAge, boolean checkSyntax,
088 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
089 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
090 boolean history, int historyCount, boolean expireable, long maxAge,
091 long warningTime, int graceLimit, boolean lockout, int maxFailure,
092 long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 return getService()
096 .updatePasswordPolicy(passwordPolicyId, name, description,
097 changeable, changeRequired, minAge, checkSyntax,
098 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
099 minNumbers, minSymbols, minUpperCase, history, historyCount,
100 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
101 lockoutDuration, resetFailureCount, resetTicketMaxAge);
102 }
103
104 public static PasswordPolicyService getService() {
105 if (_service == null) {
106 _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
107
108 ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
109 "_service");
110 }
111
112 return _service;
113 }
114
115
118 public void setService(PasswordPolicyService service) {
119 }
120
121 private static PasswordPolicyService _service;
122 }