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