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.service.PasswordPolicyServiceUtil;
022
023 import java.rmi.RemoteException;
024
025
065 @ProviderType
066 public class PasswordPolicyServiceSoap {
067
073 @Deprecated
074 public static com.liferay.portal.model.PasswordPolicySoap addPasswordPolicy(
075 java.lang.String name, java.lang.String description,
076 boolean changeable, boolean changeRequired, long minAge,
077 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
078 int minLength, int minLowerCase, int minNumbers, int minSymbols,
079 int minUpperCase, boolean history, int historyCount,
080 boolean expireable, long maxAge, long warningTime, int graceLimit,
081 boolean lockout, int maxFailure, long lockoutDuration,
082 long resetFailureCount, long resetTicketMaxAge)
083 throws RemoteException {
084 try {
085 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.addPasswordPolicy(name,
086 description, changeable, changeRequired, minAge,
087 checkSyntax, allowDictionaryWords, minAlphanumeric,
088 minLength, minLowerCase, minNumbers, minSymbols,
089 minUpperCase, history, historyCount, expireable, maxAge,
090 warningTime, graceLimit, lockout, maxFailure,
091 lockoutDuration, resetFailureCount, resetTicketMaxAge);
092
093 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
094 }
095 catch (Exception e) {
096 _log.error(e, e);
097
098 throw new RemoteException(e.getMessage());
099 }
100 }
101
102 public static com.liferay.portal.model.PasswordPolicySoap addPasswordPolicy(
103 java.lang.String name, java.lang.String description,
104 boolean changeable, boolean changeRequired, long minAge,
105 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
106 int minLength, int minLowerCase, int minNumbers, int minSymbols,
107 int minUpperCase, java.lang.String regex, boolean history,
108 int historyCount, boolean expireable, long maxAge, long warningTime,
109 int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
110 long resetFailureCount, long resetTicketMaxAge,
111 com.liferay.portal.service.ServiceContext serviceContext)
112 throws RemoteException {
113 try {
114 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.addPasswordPolicy(name,
115 description, changeable, changeRequired, minAge,
116 checkSyntax, allowDictionaryWords, minAlphanumeric,
117 minLength, minLowerCase, minNumbers, minSymbols,
118 minUpperCase, regex, history, historyCount, expireable,
119 maxAge, warningTime, graceLimit, lockout, maxFailure,
120 lockoutDuration, resetFailureCount, resetTicketMaxAge,
121 serviceContext);
122
123 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
124 }
125 catch (Exception e) {
126 _log.error(e, e);
127
128 throw new RemoteException(e.getMessage());
129 }
130 }
131
132 public static void deletePasswordPolicy(long passwordPolicyId)
133 throws RemoteException {
134 try {
135 PasswordPolicyServiceUtil.deletePasswordPolicy(passwordPolicyId);
136 }
137 catch (Exception e) {
138 _log.error(e, e);
139
140 throw new RemoteException(e.getMessage());
141 }
142 }
143
144 public static com.liferay.portal.model.PasswordPolicySoap fetchPasswordPolicy(
145 long passwordPolicyId) throws RemoteException {
146 try {
147 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.fetchPasswordPolicy(passwordPolicyId);
148
149 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
150 }
151 catch (Exception e) {
152 _log.error(e, e);
153
154 throw new RemoteException(e.getMessage());
155 }
156 }
157
158
165 @Deprecated
166 public static com.liferay.portal.model.PasswordPolicySoap updatePasswordPolicy(
167 long passwordPolicyId, java.lang.String name,
168 java.lang.String description, boolean changeable,
169 boolean changeRequired, long minAge, boolean checkSyntax,
170 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
171 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
172 boolean history, int historyCount, boolean expireable, long maxAge,
173 long warningTime, int graceLimit, boolean lockout, int maxFailure,
174 long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
175 throws RemoteException {
176 try {
177 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.updatePasswordPolicy(passwordPolicyId,
178 name, description, changeable, changeRequired, minAge,
179 checkSyntax, allowDictionaryWords, minAlphanumeric,
180 minLength, minLowerCase, minNumbers, minSymbols,
181 minUpperCase, history, historyCount, expireable, maxAge,
182 warningTime, graceLimit, lockout, maxFailure,
183 lockoutDuration, resetFailureCount, resetTicketMaxAge);
184
185 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
186 }
187 catch (Exception e) {
188 _log.error(e, e);
189
190 throw new RemoteException(e.getMessage());
191 }
192 }
193
194 public static com.liferay.portal.model.PasswordPolicySoap updatePasswordPolicy(
195 long passwordPolicyId, java.lang.String name,
196 java.lang.String description, boolean changeable,
197 boolean changeRequired, long minAge, boolean checkSyntax,
198 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
199 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
200 java.lang.String regex, boolean history, int historyCount,
201 boolean expireable, long maxAge, long warningTime, int graceLimit,
202 boolean lockout, int maxFailure, long lockoutDuration,
203 long resetFailureCount, long resetTicketMaxAge,
204 com.liferay.portal.service.ServiceContext serviceContext)
205 throws RemoteException {
206 try {
207 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.updatePasswordPolicy(passwordPolicyId,
208 name, description, changeable, changeRequired, minAge,
209 checkSyntax, allowDictionaryWords, minAlphanumeric,
210 minLength, minLowerCase, minNumbers, minSymbols,
211 minUpperCase, regex, history, historyCount, expireable,
212 maxAge, warningTime, graceLimit, lockout, maxFailure,
213 lockoutDuration, resetFailureCount, resetTicketMaxAge,
214 serviceContext);
215
216 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
217 }
218 catch (Exception e) {
219 _log.error(e, e);
220
221 throw new RemoteException(e.getMessage());
222 }
223 }
224
225 private static Log _log = LogFactoryUtil.getLog(PasswordPolicyServiceSoap.class);
226 }