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 minLength,
78 boolean history, int historyCount, boolean expireable, long maxAge,
79 long warningTime, int graceLimit, boolean lockout, int maxFailure,
80 long lockoutDuration, long resetFailureCount) throws RemoteException {
81 try {
82 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.addPasswordPolicy(name,
83 description, changeable, changeRequired, minAge,
84 checkSyntax, allowDictionaryWords, minLength, history,
85 historyCount, expireable, maxAge, warningTime, graceLimit,
86 lockout, maxFailure, lockoutDuration, resetFailureCount);
87
88 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
89 }
90 catch (Exception e) {
91 _log.error(e, e);
92
93 throw new RemoteException(e.getMessage());
94 }
95 }
96
97 public static void deletePasswordPolicy(long passwordPolicyId)
98 throws RemoteException {
99 try {
100 PasswordPolicyServiceUtil.deletePasswordPolicy(passwordPolicyId);
101 }
102 catch (Exception e) {
103 _log.error(e, e);
104
105 throw new RemoteException(e.getMessage());
106 }
107 }
108
109 public static com.liferay.portal.model.PasswordPolicySoap updatePasswordPolicy(
110 long passwordPolicyId, java.lang.String name,
111 java.lang.String description, boolean changeable,
112 boolean changeRequired, long minAge, boolean checkSyntax,
113 boolean allowDictionaryWords, int minLength, boolean history,
114 int historyCount, boolean expireable, long maxAge, long warningTime,
115 int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
116 long resetFailureCount) throws RemoteException {
117 try {
118 com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.updatePasswordPolicy(passwordPolicyId,
119 name, description, changeable, changeRequired, minAge,
120 checkSyntax, allowDictionaryWords, minLength, history,
121 historyCount, expireable, maxAge, warningTime, graceLimit,
122 lockout, maxFailure, lockoutDuration, resetFailureCount);
123
124 return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
125 }
126 catch (Exception e) {
127 _log.error(e, e);
128
129 throw new RemoteException(e.getMessage());
130 }
131 }
132
133 private static Log _log = LogFactoryUtil.getLog(PasswordPolicyServiceSoap.class);
134 }