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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for PasswordPolicy. This utility wraps
024     * {@link com.liferay.portal.service.impl.PasswordPolicyServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see PasswordPolicyService
032     * @see com.liferay.portal.service.base.PasswordPolicyServiceBaseImpl
033     * @see com.liferay.portal.service.impl.PasswordPolicyServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class PasswordPolicyServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.PasswordPolicyServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * @deprecated As of 6.2.0, replaced by {@link #addPasswordPolicy(String,
046            String, boolean, boolean, long, boolean, boolean, int, int,
047            int, int, int, int, String, boolean, int, boolean, long,
048            long, int, boolean, int, long, long, long, ServiceContext)}
049            */
050            @Deprecated
051            public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
052                    java.lang.String name, java.lang.String description,
053                    boolean changeable, boolean changeRequired, long minAge,
054                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
055                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
056                    int minUpperCase, boolean history, int historyCount,
057                    boolean expireable, long maxAge, long warningTime, int graceLimit,
058                    boolean lockout, int maxFailure, long lockoutDuration,
059                    long resetFailureCount, long resetTicketMaxAge)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return getService()
062                                       .addPasswordPolicy(name, description, changeable,
063                            changeRequired, minAge, checkSyntax, allowDictionaryWords,
064                            minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
065                            minUpperCase, history, historyCount, expireable, maxAge,
066                            warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
067                            resetFailureCount, resetTicketMaxAge);
068            }
069    
070            public static com.liferay.portal.model.PasswordPolicy 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, java.lang.String regex, boolean history,
076                    int historyCount, boolean expireable, long maxAge, long warningTime,
077                    int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
078                    long resetFailureCount, long resetTicketMaxAge,
079                    com.liferay.portal.service.ServiceContext serviceContext)
080                    throws com.liferay.portal.kernel.exception.PortalException {
081                    return getService()
082                                       .addPasswordPolicy(name, description, changeable,
083                            changeRequired, minAge, checkSyntax, allowDictionaryWords,
084                            minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
085                            minUpperCase, regex, history, historyCount, expireable, maxAge,
086                            warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
087                            resetFailureCount, resetTicketMaxAge, serviceContext);
088            }
089    
090            public static void deletePasswordPolicy(long passwordPolicyId)
091                    throws com.liferay.portal.kernel.exception.PortalException {
092                    getService().deletePasswordPolicy(passwordPolicyId);
093            }
094    
095            public static com.liferay.portal.model.PasswordPolicy fetchPasswordPolicy(
096                    long passwordPolicyId)
097                    throws com.liferay.portal.kernel.exception.PortalException {
098                    return getService().fetchPasswordPolicy(passwordPolicyId);
099            }
100    
101            /**
102            * Returns the OSGi service identifier.
103            *
104            * @return the OSGi service identifier
105            */
106            public static java.lang.String getOSGiServiceIdentifier() {
107                    return getService().getOSGiServiceIdentifier();
108            }
109    
110            /**
111            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
112            String, String, boolean, boolean, long, boolean, boolean,
113            int, int, int, int, int, int, String, boolean, int, boolean,
114            long, long, int, boolean, int, long, long, long,
115            ServiceContext)}
116            */
117            @Deprecated
118            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
119                    long passwordPolicyId, java.lang.String name,
120                    java.lang.String description, boolean changeable,
121                    boolean changeRequired, long minAge, boolean checkSyntax,
122                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
123                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
124                    boolean history, int historyCount, boolean expireable, long maxAge,
125                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
126                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
127                    throws com.liferay.portal.kernel.exception.PortalException {
128                    return getService()
129                                       .updatePasswordPolicy(passwordPolicyId, name, description,
130                            changeable, changeRequired, minAge, checkSyntax,
131                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
132                            minNumbers, minSymbols, minUpperCase, history, historyCount,
133                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
134                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
135            }
136    
137            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
138                    long passwordPolicyId, java.lang.String name,
139                    java.lang.String description, boolean changeable,
140                    boolean changeRequired, long minAge, boolean checkSyntax,
141                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
142                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
143                    java.lang.String regex, boolean history, int historyCount,
144                    boolean expireable, long maxAge, long warningTime, int graceLimit,
145                    boolean lockout, int maxFailure, long lockoutDuration,
146                    long resetFailureCount, long resetTicketMaxAge,
147                    com.liferay.portal.service.ServiceContext serviceContext)
148                    throws com.liferay.portal.kernel.exception.PortalException {
149                    return getService()
150                                       .updatePasswordPolicy(passwordPolicyId, name, description,
151                            changeable, changeRequired, minAge, checkSyntax,
152                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
153                            minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
154                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
155                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
156                            serviceContext);
157            }
158    
159            public static PasswordPolicyService getService() {
160                    if (_service == null) {
161                            _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
162    
163                            ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
164                                    "_service");
165                    }
166    
167                    return _service;
168            }
169    
170            private static PasswordPolicyService _service;
171    }