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 getOSGiServiceIdentifier() {
107 return getService().getOSGiServiceIdentifier();
108 }
109
110
117 @Deprecated
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 return getService()
129 .updatePasswordPolicy(passwordPolicyId, name, description,
130 changeable, changeRequired, minAge, checkSyntax,
131 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
132 minNumbers, minSymbols, minUpperCase, history, historyCount,
133 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
134 lockoutDuration, resetFailureCount, resetTicketMaxAge);
135 }
136
137 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
138 long passwordPolicyId, java.lang.String name,
139 java.lang.String description, boolean changeable,
140 boolean changeRequired, long minAge, boolean checkSyntax,
141 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
142 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
143 java.lang.String regex, boolean history, int historyCount,
144 boolean expireable, long maxAge, long warningTime, int graceLimit,
145 boolean lockout, int maxFailure, long lockoutDuration,
146 long resetFailureCount, long resetTicketMaxAge,
147 com.liferay.portal.service.ServiceContext serviceContext)
148 throws com.liferay.portal.kernel.exception.PortalException {
149 return getService()
150 .updatePasswordPolicy(passwordPolicyId, name, description,
151 changeable, changeRequired, minAge, checkSyntax,
152 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
153 minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
154 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
155 lockoutDuration, resetFailureCount, resetTicketMaxAge,
156 serviceContext);
157 }
158
159 public static PasswordPolicyService getService() {
160 if (_service == null) {
161 _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
162
163 ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
164 "_service");
165 }
166
167 return _service;
168 }
169
170 private static PasswordPolicyService _service;
171 }