001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class PasswordPolicyServiceUtil {
038
043
044
050 @Deprecated
051 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
052 java.lang.String name, java.lang.String description,
053 boolean changeable, boolean changeRequired, long minAge,
054 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
055 int minLength, int minLowerCase, int minNumbers, int minSymbols,
056 int minUpperCase, boolean history, int historyCount,
057 boolean expireable, long maxAge, long warningTime, int graceLimit,
058 boolean lockout, int maxFailure, long lockoutDuration,
059 long resetFailureCount, long resetTicketMaxAge)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService()
062 .addPasswordPolicy(name, description, changeable,
063 changeRequired, minAge, checkSyntax, allowDictionaryWords,
064 minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
065 minUpperCase, history, historyCount, expireable, maxAge,
066 warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
067 resetFailureCount, resetTicketMaxAge);
068 }
069
070 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
071 java.lang.String name, java.lang.String description,
072 boolean changeable, boolean changeRequired, long minAge,
073 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
074 int minLength, int minLowerCase, int minNumbers, int minSymbols,
075 int minUpperCase, java.lang.String regex, boolean history,
076 int historyCount, boolean expireable, long maxAge, long warningTime,
077 int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
078 long resetFailureCount, long resetTicketMaxAge,
079 com.liferay.portal.service.ServiceContext serviceContext)
080 throws com.liferay.portal.kernel.exception.PortalException {
081 return getService()
082 .addPasswordPolicy(name, description, changeable,
083 changeRequired, minAge, checkSyntax, allowDictionaryWords,
084 minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
085 minUpperCase, regex, history, historyCount, expireable, maxAge,
086 warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
087 resetFailureCount, resetTicketMaxAge, serviceContext);
088 }
089
090 public static void deletePasswordPolicy(long passwordPolicyId)
091 throws com.liferay.portal.kernel.exception.PortalException {
092 getService().deletePasswordPolicy(passwordPolicyId);
093 }
094
095 public static com.liferay.portal.model.PasswordPolicy fetchPasswordPolicy(
096 long passwordPolicyId)
097 throws com.liferay.portal.kernel.exception.PortalException {
098 return getService().fetchPasswordPolicy(passwordPolicyId);
099 }
100
101
106 public static java.lang.String getBeanIdentifier() {
107 return getService().getBeanIdentifier();
108 }
109
110
115 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
116 getService().setBeanIdentifier(beanIdentifier);
117 }
118
119
126 @Deprecated
127 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
128 long passwordPolicyId, java.lang.String name,
129 java.lang.String description, boolean changeable,
130 boolean changeRequired, long minAge, boolean checkSyntax,
131 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
132 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
133 boolean history, int historyCount, boolean expireable, long maxAge,
134 long warningTime, int graceLimit, boolean lockout, int maxFailure,
135 long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
136 throws com.liferay.portal.kernel.exception.PortalException {
137 return getService()
138 .updatePasswordPolicy(passwordPolicyId, name, description,
139 changeable, changeRequired, minAge, checkSyntax,
140 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
141 minNumbers, minSymbols, minUpperCase, history, historyCount,
142 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
143 lockoutDuration, resetFailureCount, resetTicketMaxAge);
144 }
145
146 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
147 long passwordPolicyId, java.lang.String name,
148 java.lang.String description, boolean changeable,
149 boolean changeRequired, long minAge, boolean checkSyntax,
150 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
151 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
152 java.lang.String regex, boolean history, int historyCount,
153 boolean expireable, long maxAge, long warningTime, int graceLimit,
154 boolean lockout, int maxFailure, long lockoutDuration,
155 long resetFailureCount, long resetTicketMaxAge,
156 com.liferay.portal.service.ServiceContext serviceContext)
157 throws com.liferay.portal.kernel.exception.PortalException {
158 return getService()
159 .updatePasswordPolicy(passwordPolicyId, name, description,
160 changeable, changeRequired, minAge, checkSyntax,
161 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
162 minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
163 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
164 lockoutDuration, resetFailureCount, resetTicketMaxAge,
165 serviceContext);
166 }
167
168 public static PasswordPolicyService getService() {
169 if (_service == null) {
170 _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
171
172 ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
173 "_service");
174 }
175
176 return _service;
177 }
178
179
182 @Deprecated
183 public void setService(PasswordPolicyService service) {
184 }
185
186 private static PasswordPolicyService _service;
187 }