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