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            /**
096            * Returns the Spring bean ID for this bean.
097            *
098            * @return the Spring bean ID for this bean
099            */
100            public static java.lang.String getBeanIdentifier() {
101                    return getService().getBeanIdentifier();
102            }
103    
104            /**
105            * Sets the Spring bean ID for this bean.
106            *
107            * @param beanIdentifier the Spring bean ID for this bean
108            */
109            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
110                    getService().setBeanIdentifier(beanIdentifier);
111            }
112    
113            /**
114            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
115            String, String, boolean, boolean, long, boolean, boolean,
116            int, int, int, int, int, int, String, boolean, int, boolean,
117            long, long, int, boolean, int, long, long, long,
118            ServiceContext)}
119            */
120            @Deprecated
121            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
122                    long passwordPolicyId, java.lang.String name,
123                    java.lang.String description, boolean changeable,
124                    boolean changeRequired, long minAge, boolean checkSyntax,
125                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
126                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
127                    boolean history, int historyCount, boolean expireable, long maxAge,
128                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
129                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
130                    throws com.liferay.portal.kernel.exception.PortalException {
131                    return getService()
132                                       .updatePasswordPolicy(passwordPolicyId, name, description,
133                            changeable, changeRequired, minAge, checkSyntax,
134                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
135                            minNumbers, minSymbols, minUpperCase, history, historyCount,
136                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
137                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
138            }
139    
140            public static com.liferay.portal.model.PasswordPolicy 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                    java.lang.String regex, boolean history, int historyCount,
147                    boolean expireable, long maxAge, long warningTime, int graceLimit,
148                    boolean lockout, int maxFailure, long lockoutDuration,
149                    long resetFailureCount, long resetTicketMaxAge,
150                    com.liferay.portal.service.ServiceContext serviceContext)
151                    throws com.liferay.portal.kernel.exception.PortalException {
152                    return getService()
153                                       .updatePasswordPolicy(passwordPolicyId, name, description,
154                            changeable, changeRequired, minAge, checkSyntax,
155                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
156                            minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
157                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
158                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
159                            serviceContext);
160            }
161    
162            public static PasswordPolicyService getService() {
163                    if (_service == null) {
164                            _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
165    
166                            ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
167                                    "_service");
168                    }
169    
170                    return _service;
171            }
172    
173            /**
174             * @deprecated As of 6.2.0
175             */
176            @Deprecated
177            public void setService(PasswordPolicyService service) {
178            }
179    
180            private static PasswordPolicyService _service;
181    }