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
100 public static java.lang.String getBeanIdentifier() {
101 return getService().getBeanIdentifier();
102 }
103
104
109 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
110 getService().setBeanIdentifier(beanIdentifier);
111 }
112
113
120 @Deprecated
121 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
122 long passwordPolicyId, java.lang.String name,
123 java.lang.String description, boolean changeable,
124 boolean changeRequired, long minAge, boolean checkSyntax,
125 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
126 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
127 boolean history, int historyCount, boolean expireable, long maxAge,
128 long warningTime, int graceLimit, boolean lockout, int maxFailure,
129 long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
130 throws com.liferay.portal.kernel.exception.PortalException {
131 return getService()
132 .updatePasswordPolicy(passwordPolicyId, name, description,
133 changeable, changeRequired, minAge, checkSyntax,
134 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
135 minNumbers, minSymbols, minUpperCase, history, historyCount,
136 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
137 lockoutDuration, resetFailureCount, resetTicketMaxAge);
138 }
139
140 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
141 long passwordPolicyId, java.lang.String name,
142 java.lang.String description, boolean changeable,
143 boolean changeRequired, long minAge, boolean checkSyntax,
144 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
145 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
146 java.lang.String regex, boolean history, int historyCount,
147 boolean expireable, long maxAge, long warningTime, int graceLimit,
148 boolean lockout, int maxFailure, long lockoutDuration,
149 long resetFailureCount, long resetTicketMaxAge,
150 com.liferay.portal.service.ServiceContext serviceContext)
151 throws com.liferay.portal.kernel.exception.PortalException {
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 @Deprecated
177 public void setService(PasswordPolicyService service) {
178 }
179
180 private static PasswordPolicyService _service;
181 }