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
034 public class PasswordPolicyServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059
065 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
066 java.lang.String name, java.lang.String description,
067 boolean changeable, boolean changeRequired, long minAge,
068 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
069 int minLength, int minLowerCase, int minNumbers, int minSymbols,
070 int minUpperCase, boolean history, int historyCount,
071 boolean expireable, long maxAge, long warningTime, int graceLimit,
072 boolean lockout, int maxFailure, long lockoutDuration,
073 long resetFailureCount, long resetTicketMaxAge)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .addPasswordPolicy(name, description, changeable,
078 changeRequired, minAge, checkSyntax, allowDictionaryWords,
079 minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
080 minUpperCase, history, historyCount, expireable, maxAge,
081 warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
082 resetFailureCount, resetTicketMaxAge);
083 }
084
085 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
086 java.lang.String name, java.lang.String description,
087 boolean changeable, boolean changeRequired, long minAge,
088 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
089 int minLength, int minLowerCase, int minNumbers, int minSymbols,
090 int minUpperCase, java.lang.String regex, boolean history,
091 int historyCount, boolean expireable, long maxAge, long warningTime,
092 int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
093 long resetFailureCount, long resetTicketMaxAge,
094 com.liferay.portal.service.ServiceContext serviceContext)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService()
098 .addPasswordPolicy(name, description, changeable,
099 changeRequired, minAge, checkSyntax, allowDictionaryWords,
100 minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
101 minUpperCase, regex, history, historyCount, expireable, maxAge,
102 warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
103 resetFailureCount, resetTicketMaxAge, serviceContext);
104 }
105
106 public static void deletePasswordPolicy(long passwordPolicyId)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException {
109 getService().deletePasswordPolicy(passwordPolicyId);
110 }
111
112
119 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
120 long passwordPolicyId, java.lang.String name,
121 java.lang.String description, boolean changeable,
122 boolean changeRequired, long minAge, boolean checkSyntax,
123 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
124 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
125 boolean history, int historyCount, boolean expireable, long maxAge,
126 long warningTime, int graceLimit, boolean lockout, int maxFailure,
127 long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 return getService()
131 .updatePasswordPolicy(passwordPolicyId, name, description,
132 changeable, changeRequired, minAge, checkSyntax,
133 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
134 minNumbers, minSymbols, minUpperCase, history, historyCount,
135 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
136 lockoutDuration, resetFailureCount, resetTicketMaxAge);
137 }
138
139 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
140 long passwordPolicyId, java.lang.String name,
141 java.lang.String description, boolean changeable,
142 boolean changeRequired, long minAge, boolean checkSyntax,
143 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
144 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
145 java.lang.String regex, boolean history, int historyCount,
146 boolean expireable, long maxAge, long warningTime, int graceLimit,
147 boolean lockout, int maxFailure, long lockoutDuration,
148 long resetFailureCount, long resetTicketMaxAge,
149 com.liferay.portal.service.ServiceContext serviceContext)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 return getService()
153 .updatePasswordPolicy(passwordPolicyId, name, description,
154 changeable, changeRequired, minAge, checkSyntax,
155 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
156 minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
157 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
158 lockoutDuration, resetFailureCount, resetTicketMaxAge,
159 serviceContext);
160 }
161
162 public static PasswordPolicyService getService() {
163 if (_service == null) {
164 _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
165
166 ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
167 "_service");
168 }
169
170 return _service;
171 }
172
173
176 public void setService(PasswordPolicyService service) {
177 }
178
179 private static PasswordPolicyService _service;
180 }