001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
026     * Provides the SOAP utility for the
027     * {@link PasswordPolicyServiceUtil} service utility. The
028     * static methods of this class calls the same methods of the service utility.
029     * However, the signatures are different because it is difficult for SOAP to
030     * support certain types.
031     *
032     * <p>
033     * ServiceBuilder follows certain rules in translating the methods. For example,
034     * if the method in the service utility returns a {@link java.util.List}, that
035     * is translated to an array of {@link com.liferay.portal.model.PasswordPolicySoap}.
036     * If the method in the service utility returns a
037     * {@link com.liferay.portal.model.PasswordPolicy}, that is translated to a
038     * {@link com.liferay.portal.model.PasswordPolicySoap}. Methods that SOAP cannot
039     * safely wire are skipped.
040     * </p>
041     *
042     * <p>
043     * The benefits of using the SOAP utility is that it is cross platform
044     * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
045     * even Perl, to call the generated services. One drawback of SOAP is that it is
046     * slow because it needs to serialize all calls into a text format (XML).
047     * </p>
048     *
049     * <p>
050     * You can see a list of services at http://localhost:8080/api/axis. Set the
051     * property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
052     * security.
053     * </p>
054     *
055     * <p>
056     * The SOAP utility is only generated for remote services.
057     * </p>
058     *
059     * @author Brian Wing Shun Chan
060     * @see PasswordPolicyServiceHttp
061     * @see com.liferay.portal.model.PasswordPolicySoap
062     * @see PasswordPolicyServiceUtil
063     * @generated
064     */
065    @ProviderType
066    public class PasswordPolicyServiceSoap {
067            /**
068            * @deprecated As of 6.2.0, replaced by {@link #addPasswordPolicy(String,
069            String, boolean, boolean, long, boolean, boolean, int, int,
070            int, int, int, int, String, boolean, int, boolean, long,
071            long, int, boolean, int, long, long, long, ServiceContext)}
072            */
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            /**
159            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
160            String, String, boolean, boolean, long, boolean, boolean,
161            int, int, int, int, int, int, String, boolean, int, boolean,
162            long, long, int, boolean, int, long, long, long,
163            ServiceContext)}
164            */
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    }