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     * Provides the SOAP utility for the
025     * {@link com.liferay.portal.service.PasswordPolicyServiceUtil} service utility. The
026     * static methods of this class calls the same methods of the service utility.
027     * However, the signatures are different because it is difficult for SOAP to
028     * support certain types.
029     *
030     * <p>
031     * ServiceBuilder follows certain rules in translating the methods. For example,
032     * if the method in the service utility returns a {@link java.util.List}, that
033     * is translated to an array of {@link com.liferay.portal.model.PasswordPolicySoap}.
034     * If the method in the service utility returns a
035     * {@link com.liferay.portal.model.PasswordPolicy}, that is translated to a
036     * {@link com.liferay.portal.model.PasswordPolicySoap}. Methods that SOAP cannot
037     * safely wire are skipped.
038     * </p>
039     *
040     * <p>
041     * The benefits of using the SOAP utility is that it is cross platform
042     * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
043     * even Perl, to call the generated services. One drawback of SOAP is that it is
044     * slow because it needs to serialize all calls into a text format (XML).
045     * </p>
046     *
047     * <p>
048     * You can see a list of services at http://localhost:8080/api/axis. Set the
049     * property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
050     * security.
051     * </p>
052     *
053     * <p>
054     * The SOAP utility is only generated for remote services.
055     * </p>
056     *
057     * @author Brian Wing Shun Chan
058     * @see PasswordPolicyServiceHttp
059     * @see com.liferay.portal.model.PasswordPolicySoap
060     * @see com.liferay.portal.service.PasswordPolicyServiceUtil
061     * @generated
062     */
063    public class PasswordPolicyServiceSoap {
064            /**
065            * @deprecated As of 6.2.0, replaced by {@link #addPasswordPolicy(String,
066            String, boolean, boolean, long, boolean, boolean, int, int,
067            int, int, int, int, String, boolean, int, boolean, long,
068            long, int, boolean, int, long, long, long, ServiceContext)}
069            */
070            public static com.liferay.portal.model.PasswordPolicySoap addPasswordPolicy(
071                    java.lang.String name, java.lang.String description,
072                    boolean changeable, boolean changeRequired, long minAge,
073                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
074                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
075                    int minUpperCase, boolean history, int historyCount,
076                    boolean expireable, long maxAge, long warningTime, int graceLimit,
077                    boolean lockout, int maxFailure, long lockoutDuration,
078                    long resetFailureCount, long resetTicketMaxAge)
079                    throws RemoteException {
080                    try {
081                            com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.addPasswordPolicy(name,
082                                            description, changeable, changeRequired, minAge,
083                                            checkSyntax, allowDictionaryWords, minAlphanumeric,
084                                            minLength, minLowerCase, minNumbers, minSymbols,
085                                            minUpperCase, history, historyCount, expireable, maxAge,
086                                            warningTime, graceLimit, lockout, maxFailure,
087                                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
088    
089                            return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
090                    }
091                    catch (Exception e) {
092                            _log.error(e, e);
093    
094                            throw new RemoteException(e.getMessage());
095                    }
096            }
097    
098            public static com.liferay.portal.model.PasswordPolicySoap addPasswordPolicy(
099                    java.lang.String name, java.lang.String description,
100                    boolean changeable, boolean changeRequired, long minAge,
101                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
102                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
103                    int minUpperCase, java.lang.String regex, boolean history,
104                    int historyCount, boolean expireable, long maxAge, long warningTime,
105                    int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
106                    long resetFailureCount, long resetTicketMaxAge,
107                    com.liferay.portal.service.ServiceContext serviceContext)
108                    throws RemoteException {
109                    try {
110                            com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.addPasswordPolicy(name,
111                                            description, changeable, changeRequired, minAge,
112                                            checkSyntax, allowDictionaryWords, minAlphanumeric,
113                                            minLength, minLowerCase, minNumbers, minSymbols,
114                                            minUpperCase, regex, history, historyCount, expireable,
115                                            maxAge, warningTime, graceLimit, lockout, maxFailure,
116                                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
117                                            serviceContext);
118    
119                            return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
120                    }
121                    catch (Exception e) {
122                            _log.error(e, e);
123    
124                            throw new RemoteException(e.getMessage());
125                    }
126            }
127    
128            public static void deletePasswordPolicy(long passwordPolicyId)
129                    throws RemoteException {
130                    try {
131                            PasswordPolicyServiceUtil.deletePasswordPolicy(passwordPolicyId);
132                    }
133                    catch (Exception e) {
134                            _log.error(e, e);
135    
136                            throw new RemoteException(e.getMessage());
137                    }
138            }
139    
140            /**
141            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
142            String, String, boolean, boolean, long, boolean, boolean,
143            int, int, int, int, int, int, String, boolean, int, boolean,
144            long, long, int, boolean, int, long, long, long,
145            ServiceContext)}
146            */
147            public static com.liferay.portal.model.PasswordPolicySoap updatePasswordPolicy(
148                    long passwordPolicyId, java.lang.String name,
149                    java.lang.String description, boolean changeable,
150                    boolean changeRequired, long minAge, boolean checkSyntax,
151                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
152                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
153                    boolean history, int historyCount, boolean expireable, long maxAge,
154                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
155                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
156                    throws RemoteException {
157                    try {
158                            com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.updatePasswordPolicy(passwordPolicyId,
159                                            name, description, changeable, changeRequired, minAge,
160                                            checkSyntax, allowDictionaryWords, minAlphanumeric,
161                                            minLength, minLowerCase, minNumbers, minSymbols,
162                                            minUpperCase, history, historyCount, expireable, maxAge,
163                                            warningTime, graceLimit, lockout, maxFailure,
164                                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
165    
166                            return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
167                    }
168                    catch (Exception e) {
169                            _log.error(e, e);
170    
171                            throw new RemoteException(e.getMessage());
172                    }
173            }
174    
175            public static com.liferay.portal.model.PasswordPolicySoap updatePasswordPolicy(
176                    long passwordPolicyId, java.lang.String name,
177                    java.lang.String description, boolean changeable,
178                    boolean changeRequired, long minAge, boolean checkSyntax,
179                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
180                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
181                    java.lang.String regex, boolean history, int historyCount,
182                    boolean expireable, long maxAge, long warningTime, int graceLimit,
183                    boolean lockout, int maxFailure, long lockoutDuration,
184                    long resetFailureCount, long resetTicketMaxAge,
185                    com.liferay.portal.service.ServiceContext serviceContext)
186                    throws RemoteException {
187                    try {
188                            com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.updatePasswordPolicy(passwordPolicyId,
189                                            name, description, changeable, changeRequired, minAge,
190                                            checkSyntax, allowDictionaryWords, minAlphanumeric,
191                                            minLength, minLowerCase, minNumbers, minSymbols,
192                                            minUpperCase, regex, history, historyCount, expireable,
193                                            maxAge, warningTime, graceLimit, lockout, maxFailure,
194                                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
195                                            serviceContext);
196    
197                            return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
198                    }
199                    catch (Exception e) {
200                            _log.error(e, e);
201    
202                            throw new RemoteException(e.getMessage());
203                    }
204            }
205    
206            private static Log _log = LogFactoryUtil.getLog(PasswordPolicyServiceSoap.class);
207    }