001    /**
002     * Copyright (c) 2000-2013 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 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    /**
024     * <p>
025     * This class provides a SOAP utility for the
026     * {@link com.liferay.portal.service.PasswordPolicyServiceUtil} service utility. The
027     * static methods of this class calls the same methods of the service utility.
028     * However, the signatures are different because it is difficult for SOAP to
029     * support certain types.
030     * </p>
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       com.liferay.portal.service.PasswordPolicyServiceUtil
063     * @generated
064     */
065    public class PasswordPolicyServiceSoap {
066            /**
067            * @deprecated As of 6.2.0, replaced by {@link #addPasswordPolicy(String,
068            String, boolean, boolean, long, boolean, boolean, int, int,
069            int, int, int, int, String, boolean, int, boolean, long,
070            long, int, boolean, int, long, long, long, ServiceContext)}
071            */
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            /**
143            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
144            String, String, boolean, boolean, long, boolean, boolean,
145            int, int, int, int, int, int, String, boolean, int, boolean,
146            long, long, int, boolean, int, long, long, long,
147            ServiceContext)}
148            */
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    }