1
14
15 package com.liferay.portal.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19 import com.liferay.portal.service.PasswordPolicyServiceUtil;
20
21 import java.rmi.RemoteException;
22
23
73 public class PasswordPolicyServiceSoap {
74 public static com.liferay.portal.model.PasswordPolicySoap addPasswordPolicy(
75 java.lang.String name, java.lang.String description,
76 boolean changeable, boolean changeRequired, long minAge,
77 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
78 int minLength, int minLowerCase, int minNumbers, int minSymbols,
79 int minUpperCase, boolean history, int historyCount,
80 boolean expireable, long maxAge, long warningTime, int graceLimit,
81 boolean lockout, int maxFailure, long lockoutDuration,
82 long resetFailureCount, long resetTicketMaxAge)
83 throws RemoteException {
84 try {
85 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.addPasswordPolicy(name,
86 description, changeable, changeRequired, minAge,
87 checkSyntax, allowDictionaryWords, minAlphanumeric,
88 minLength, minLowerCase, minNumbers, minSymbols,
89 minUpperCase, history, historyCount, expireable, maxAge,
90 warningTime, graceLimit, lockout, maxFailure,
91 lockoutDuration, resetFailureCount, resetTicketMaxAge);
92
93 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
94 }
95 catch (Exception e) {
96 _log.error(e, e);
97
98 throw new RemoteException(e.getMessage());
99 }
100 }
101
102 public static void deletePasswordPolicy(long passwordPolicyId)
103 throws RemoteException {
104 try {
105 PasswordPolicyServiceUtil.deletePasswordPolicy(passwordPolicyId);
106 }
107 catch (Exception e) {
108 _log.error(e, e);
109
110 throw new RemoteException(e.getMessage());
111 }
112 }
113
114 public static com.liferay.portal.model.PasswordPolicySoap updatePasswordPolicy(
115 long passwordPolicyId, java.lang.String name,
116 java.lang.String description, boolean changeable,
117 boolean changeRequired, long minAge, boolean checkSyntax,
118 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
119 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
120 boolean history, int historyCount, boolean expireable, long maxAge,
121 long warningTime, int graceLimit, boolean lockout, int maxFailure,
122 long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
123 throws RemoteException {
124 try {
125 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.updatePasswordPolicy(passwordPolicyId,
126 name, description, changeable, changeRequired, minAge,
127 checkSyntax, allowDictionaryWords, minAlphanumeric,
128 minLength, minLowerCase, minNumbers, minSymbols,
129 minUpperCase, history, historyCount, expireable, maxAge,
130 warningTime, graceLimit, lockout, maxFailure,
131 lockoutDuration, resetFailureCount, resetTicketMaxAge);
132
133 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
134 }
135 catch (Exception e) {
136 _log.error(e, e);
137
138 throw new RemoteException(e.getMessage());
139 }
140 }
141
142 private static Log _log = LogFactoryUtil.getLog(PasswordPolicyServiceSoap.class);
143 }