001
014
015 package com.liferay.portal.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.kernel.util.MethodHandler;
022 import com.liferay.portal.kernel.util.MethodKey;
023 import com.liferay.portal.security.auth.HttpPrincipal;
024 import com.liferay.portal.service.PasswordPolicyServiceUtil;
025
026
054 @ProviderType
055 public class PasswordPolicyServiceHttp {
056 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
057 HttpPrincipal httpPrincipal, java.lang.String name,
058 java.lang.String description, boolean changeable,
059 boolean changeRequired, long minAge, boolean checkSyntax,
060 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
061 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
062 boolean history, int historyCount, boolean expireable, long maxAge,
063 long warningTime, int graceLimit, boolean lockout, int maxFailure,
064 long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
065 throws com.liferay.portal.kernel.exception.PortalException {
066 try {
067 MethodKey methodKey = new MethodKey(PasswordPolicyServiceUtil.class,
068 "addPasswordPolicy", _addPasswordPolicyParameterTypes0);
069
070 MethodHandler methodHandler = new MethodHandler(methodKey, name,
071 description, changeable, changeRequired, minAge,
072 checkSyntax, allowDictionaryWords, minAlphanumeric,
073 minLength, minLowerCase, minNumbers, minSymbols,
074 minUpperCase, history, historyCount, expireable, maxAge,
075 warningTime, graceLimit, lockout, maxFailure,
076 lockoutDuration, resetFailureCount, resetTicketMaxAge);
077
078 Object returnObj = null;
079
080 try {
081 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
082 }
083 catch (Exception e) {
084 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
085 throw (com.liferay.portal.kernel.exception.PortalException)e;
086 }
087
088 throw new com.liferay.portal.kernel.exception.SystemException(e);
089 }
090
091 return (com.liferay.portal.model.PasswordPolicy)returnObj;
092 }
093 catch (com.liferay.portal.kernel.exception.SystemException se) {
094 _log.error(se, se);
095
096 throw se;
097 }
098 }
099
100 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
101 HttpPrincipal httpPrincipal, java.lang.String name,
102 java.lang.String description, boolean changeable,
103 boolean changeRequired, long minAge, boolean checkSyntax,
104 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
105 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
106 java.lang.String regex, boolean history, int historyCount,
107 boolean expireable, long maxAge, long warningTime, int graceLimit,
108 boolean lockout, int maxFailure, long lockoutDuration,
109 long resetFailureCount, long resetTicketMaxAge,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.kernel.exception.PortalException {
112 try {
113 MethodKey methodKey = new MethodKey(PasswordPolicyServiceUtil.class,
114 "addPasswordPolicy", _addPasswordPolicyParameterTypes1);
115
116 MethodHandler methodHandler = new MethodHandler(methodKey, name,
117 description, changeable, changeRequired, minAge,
118 checkSyntax, allowDictionaryWords, minAlphanumeric,
119 minLength, minLowerCase, minNumbers, minSymbols,
120 minUpperCase, regex, history, historyCount, expireable,
121 maxAge, warningTime, graceLimit, lockout, maxFailure,
122 lockoutDuration, resetFailureCount, resetTicketMaxAge,
123 serviceContext);
124
125 Object returnObj = null;
126
127 try {
128 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
129 }
130 catch (Exception e) {
131 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
132 throw (com.liferay.portal.kernel.exception.PortalException)e;
133 }
134
135 throw new com.liferay.portal.kernel.exception.SystemException(e);
136 }
137
138 return (com.liferay.portal.model.PasswordPolicy)returnObj;
139 }
140 catch (com.liferay.portal.kernel.exception.SystemException se) {
141 _log.error(se, se);
142
143 throw se;
144 }
145 }
146
147 public static void deletePasswordPolicy(HttpPrincipal httpPrincipal,
148 long passwordPolicyId)
149 throws com.liferay.portal.kernel.exception.PortalException {
150 try {
151 MethodKey methodKey = new MethodKey(PasswordPolicyServiceUtil.class,
152 "deletePasswordPolicy", _deletePasswordPolicyParameterTypes2);
153
154 MethodHandler methodHandler = new MethodHandler(methodKey,
155 passwordPolicyId);
156
157 try {
158 TunnelUtil.invoke(httpPrincipal, methodHandler);
159 }
160 catch (Exception e) {
161 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
162 throw (com.liferay.portal.kernel.exception.PortalException)e;
163 }
164
165 throw new com.liferay.portal.kernel.exception.SystemException(e);
166 }
167 }
168 catch (com.liferay.portal.kernel.exception.SystemException se) {
169 _log.error(se, se);
170
171 throw se;
172 }
173 }
174
175 public static com.liferay.portal.model.PasswordPolicy fetchPasswordPolicy(
176 HttpPrincipal httpPrincipal, long passwordPolicyId)
177 throws com.liferay.portal.kernel.exception.PortalException {
178 try {
179 MethodKey methodKey = new MethodKey(PasswordPolicyServiceUtil.class,
180 "fetchPasswordPolicy", _fetchPasswordPolicyParameterTypes3);
181
182 MethodHandler methodHandler = new MethodHandler(methodKey,
183 passwordPolicyId);
184
185 Object returnObj = null;
186
187 try {
188 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
189 }
190 catch (Exception e) {
191 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
192 throw (com.liferay.portal.kernel.exception.PortalException)e;
193 }
194
195 throw new com.liferay.portal.kernel.exception.SystemException(e);
196 }
197
198 return (com.liferay.portal.model.PasswordPolicy)returnObj;
199 }
200 catch (com.liferay.portal.kernel.exception.SystemException se) {
201 _log.error(se, se);
202
203 throw se;
204 }
205 }
206
207 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
208 HttpPrincipal httpPrincipal, long passwordPolicyId,
209 java.lang.String name, java.lang.String description,
210 boolean changeable, boolean changeRequired, long minAge,
211 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
212 int minLength, int minLowerCase, int minNumbers, int minSymbols,
213 int minUpperCase, boolean history, int historyCount,
214 boolean expireable, long maxAge, long warningTime, int graceLimit,
215 boolean lockout, int maxFailure, long lockoutDuration,
216 long resetFailureCount, long resetTicketMaxAge)
217 throws com.liferay.portal.kernel.exception.PortalException {
218 try {
219 MethodKey methodKey = new MethodKey(PasswordPolicyServiceUtil.class,
220 "updatePasswordPolicy", _updatePasswordPolicyParameterTypes4);
221
222 MethodHandler methodHandler = new MethodHandler(methodKey,
223 passwordPolicyId, name, description, changeable,
224 changeRequired, minAge, checkSyntax, allowDictionaryWords,
225 minAlphanumeric, minLength, minLowerCase, minNumbers,
226 minSymbols, minUpperCase, history, historyCount,
227 expireable, maxAge, warningTime, graceLimit, lockout,
228 maxFailure, lockoutDuration, resetFailureCount,
229 resetTicketMaxAge);
230
231 Object returnObj = null;
232
233 try {
234 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
235 }
236 catch (Exception e) {
237 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
238 throw (com.liferay.portal.kernel.exception.PortalException)e;
239 }
240
241 throw new com.liferay.portal.kernel.exception.SystemException(e);
242 }
243
244 return (com.liferay.portal.model.PasswordPolicy)returnObj;
245 }
246 catch (com.liferay.portal.kernel.exception.SystemException se) {
247 _log.error(se, se);
248
249 throw se;
250 }
251 }
252
253 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
254 HttpPrincipal httpPrincipal, long passwordPolicyId,
255 java.lang.String name, java.lang.String description,
256 boolean changeable, boolean changeRequired, long minAge,
257 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
258 int minLength, int minLowerCase, int minNumbers, int minSymbols,
259 int minUpperCase, java.lang.String regex, boolean history,
260 int historyCount, boolean expireable, long maxAge, long warningTime,
261 int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
262 long resetFailureCount, long resetTicketMaxAge,
263 com.liferay.portal.service.ServiceContext serviceContext)
264 throws com.liferay.portal.kernel.exception.PortalException {
265 try {
266 MethodKey methodKey = new MethodKey(PasswordPolicyServiceUtil.class,
267 "updatePasswordPolicy", _updatePasswordPolicyParameterTypes5);
268
269 MethodHandler methodHandler = new MethodHandler(methodKey,
270 passwordPolicyId, name, description, changeable,
271 changeRequired, minAge, checkSyntax, allowDictionaryWords,
272 minAlphanumeric, minLength, minLowerCase, minNumbers,
273 minSymbols, minUpperCase, regex, history, historyCount,
274 expireable, maxAge, warningTime, graceLimit, lockout,
275 maxFailure, lockoutDuration, resetFailureCount,
276 resetTicketMaxAge, serviceContext);
277
278 Object returnObj = null;
279
280 try {
281 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
282 }
283 catch (Exception e) {
284 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
285 throw (com.liferay.portal.kernel.exception.PortalException)e;
286 }
287
288 throw new com.liferay.portal.kernel.exception.SystemException(e);
289 }
290
291 return (com.liferay.portal.model.PasswordPolicy)returnObj;
292 }
293 catch (com.liferay.portal.kernel.exception.SystemException se) {
294 _log.error(se, se);
295
296 throw se;
297 }
298 }
299
300 private static Log _log = LogFactoryUtil.getLog(PasswordPolicyServiceHttp.class);
301 private static final Class<?>[] _addPasswordPolicyParameterTypes0 = new Class[] {
302 java.lang.String.class, java.lang.String.class, boolean.class,
303 boolean.class, long.class, boolean.class, boolean.class, int.class,
304 int.class, int.class, int.class, int.class, int.class, boolean.class,
305 int.class, boolean.class, long.class, long.class, int.class,
306 boolean.class, int.class, long.class, long.class, long.class
307 };
308 private static final Class<?>[] _addPasswordPolicyParameterTypes1 = new Class[] {
309 java.lang.String.class, java.lang.String.class, boolean.class,
310 boolean.class, long.class, boolean.class, boolean.class, int.class,
311 int.class, int.class, int.class, int.class, int.class,
312 java.lang.String.class, boolean.class, int.class, boolean.class,
313 long.class, long.class, int.class, boolean.class, int.class,
314 long.class, long.class, long.class,
315 com.liferay.portal.service.ServiceContext.class
316 };
317 private static final Class<?>[] _deletePasswordPolicyParameterTypes2 = new Class[] {
318 long.class
319 };
320 private static final Class<?>[] _fetchPasswordPolicyParameterTypes3 = new Class[] {
321 long.class
322 };
323 private static final Class<?>[] _updatePasswordPolicyParameterTypes4 = new Class[] {
324 long.class, java.lang.String.class, java.lang.String.class,
325 boolean.class, boolean.class, long.class, boolean.class,
326 boolean.class, int.class, int.class, int.class, int.class, int.class,
327 int.class, boolean.class, int.class, boolean.class, long.class,
328 long.class, int.class, boolean.class, int.class, long.class,
329 long.class, long.class
330 };
331 private static final Class<?>[] _updatePasswordPolicyParameterTypes5 = new Class[] {
332 long.class, java.lang.String.class, java.lang.String.class,
333 boolean.class, boolean.class, long.class, boolean.class,
334 boolean.class, int.class, int.class, int.class, int.class, int.class,
335 int.class, java.lang.String.class, boolean.class, int.class,
336 boolean.class, long.class, long.class, int.class, boolean.class,
337 int.class, long.class, long.class, long.class,
338 com.liferay.portal.service.ServiceContext.class
339 };
340 }