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