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