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 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            @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            /**
145            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
146            String, String, boolean, boolean, long, boolean, boolean,
147            int, int, int, int, int, int, String, boolean, int, boolean,
148            long, long, int, boolean, int, long, long, long,
149            ServiceContext)}
150            */
151            @Deprecated
152            public static com.liferay.portal.model.PasswordPolicySoap updatePasswordPolicy(
153                    long passwordPolicyId, java.lang.String name,
154                    java.lang.String description, boolean changeable,
155                    boolean changeRequired, long minAge, boolean checkSyntax,
156                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
157                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
158                    boolean history, int historyCount, boolean expireable, long maxAge,
159                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
160                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
161                    throws RemoteException {
162                    try {
163                            com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.updatePasswordPolicy(passwordPolicyId,
164                                            name, description, changeable, changeRequired, minAge,
165                                            checkSyntax, allowDictionaryWords, minAlphanumeric,
166                                            minLength, minLowerCase, minNumbers, minSymbols,
167                                            minUpperCase, history, historyCount, expireable, maxAge,
168                                            warningTime, graceLimit, lockout, maxFailure,
169                                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
170    
171                            return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
172                    }
173                    catch (Exception e) {
174                            _log.error(e, e);
175    
176                            throw new RemoteException(e.getMessage());
177                    }
178            }
179    
180            public static com.liferay.portal.model.PasswordPolicySoap updatePasswordPolicy(
181                    long passwordPolicyId, java.lang.String name,
182                    java.lang.String description, boolean changeable,
183                    boolean changeRequired, long minAge, boolean checkSyntax,
184                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
185                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
186                    java.lang.String regex, boolean history, int historyCount,
187                    boolean expireable, long maxAge, long warningTime, int graceLimit,
188                    boolean lockout, int maxFailure, long lockoutDuration,
189                    long resetFailureCount, long resetTicketMaxAge,
190                    com.liferay.portal.service.ServiceContext serviceContext)
191                    throws RemoteException {
192                    try {
193                            com.liferay.portal.model.PasswordPolicy returnValue = PasswordPolicyServiceUtil.updatePasswordPolicy(passwordPolicyId,
194                                            name, description, changeable, changeRequired, minAge,
195                                            checkSyntax, allowDictionaryWords, minAlphanumeric,
196                                            minLength, minLowerCase, minNumbers, minSymbols,
197                                            minUpperCase, regex, history, historyCount, expireable,
198                                            maxAge, warningTime, graceLimit, lockout, maxFailure,
199                                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
200                                            serviceContext);
201    
202                            return com.liferay.portal.model.PasswordPolicySoap.toSoapModel(returnValue);
203                    }
204                    catch (Exception e) {
205                            _log.error(e, e);
206    
207                            throw new RemoteException(e.getMessage());
208                    }
209            }
210    
211            private static Log _log = LogFactoryUtil.getLog(PasswordPolicyServiceSoap.class);
212    }