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