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