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;
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            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            /**
063            * @deprecated As of 6.2.0, replaced by {@link #addPasswordPolicy(String,
064            String, boolean, boolean, long, boolean, boolean, int, int,
065            int, int, int, int, String, boolean, int, boolean, long,
066            long, int, boolean, int, long, long, long, ServiceContext)}
067            */
068            public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
069                    java.lang.String name, java.lang.String description,
070                    boolean changeable, boolean changeRequired, long minAge,
071                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
072                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
073                    int minUpperCase, boolean history, int historyCount,
074                    boolean expireable, long maxAge, long warningTime, int graceLimit,
075                    boolean lockout, int maxFailure, long lockoutDuration,
076                    long resetFailureCount, long resetTicketMaxAge)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    return getService()
080                                       .addPasswordPolicy(name, description, changeable,
081                            changeRequired, minAge, checkSyntax, allowDictionaryWords,
082                            minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
083                            minUpperCase, history, historyCount, expireable, maxAge,
084                            warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
085                            resetFailureCount, resetTicketMaxAge);
086            }
087    
088            public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
089                    java.lang.String name, java.lang.String description,
090                    boolean changeable, boolean changeRequired, long minAge,
091                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
092                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
093                    int minUpperCase, java.lang.String regex, boolean history,
094                    int historyCount, boolean expireable, long maxAge, long warningTime,
095                    int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
096                    long resetFailureCount, long resetTicketMaxAge,
097                    com.liferay.portal.service.ServiceContext serviceContext)
098                    throws com.liferay.portal.kernel.exception.PortalException,
099                            com.liferay.portal.kernel.exception.SystemException {
100                    return getService()
101                                       .addPasswordPolicy(name, description, changeable,
102                            changeRequired, minAge, checkSyntax, allowDictionaryWords,
103                            minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
104                            minUpperCase, regex, history, historyCount, expireable, maxAge,
105                            warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
106                            resetFailureCount, resetTicketMaxAge, serviceContext);
107            }
108    
109            public static void deletePasswordPolicy(long passwordPolicyId)
110                    throws com.liferay.portal.kernel.exception.PortalException,
111                            com.liferay.portal.kernel.exception.SystemException {
112                    getService().deletePasswordPolicy(passwordPolicyId);
113            }
114    
115            /**
116            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
117            String, String, boolean, boolean, long, boolean, boolean,
118            int, int, int, int, int, int, String, boolean, int, boolean,
119            long, long, int, boolean, int, long, long, long,
120            ServiceContext)}
121            */
122            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
123                    long passwordPolicyId, java.lang.String name,
124                    java.lang.String description, boolean changeable,
125                    boolean changeRequired, long minAge, boolean checkSyntax,
126                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
127                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
128                    boolean history, int historyCount, boolean expireable, long maxAge,
129                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
130                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
131                    throws com.liferay.portal.kernel.exception.PortalException,
132                            com.liferay.portal.kernel.exception.SystemException {
133                    return getService()
134                                       .updatePasswordPolicy(passwordPolicyId, name, description,
135                            changeable, changeRequired, minAge, checkSyntax,
136                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
137                            minNumbers, minSymbols, minUpperCase, history, historyCount,
138                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
139                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
140            }
141    
142            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
143                    long passwordPolicyId, java.lang.String name,
144                    java.lang.String description, boolean changeable,
145                    boolean changeRequired, long minAge, boolean checkSyntax,
146                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
147                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
148                    java.lang.String regex, boolean history, int historyCount,
149                    boolean expireable, long maxAge, long warningTime, int graceLimit,
150                    boolean lockout, int maxFailure, long lockoutDuration,
151                    long resetFailureCount, long resetTicketMaxAge,
152                    com.liferay.portal.service.ServiceContext serviceContext)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return getService()
156                                       .updatePasswordPolicy(passwordPolicyId, name, description,
157                            changeable, changeRequired, minAge, checkSyntax,
158                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
159                            minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
160                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
161                            lockoutDuration, resetFailureCount, resetTicketMaxAge,
162                            serviceContext);
163            }
164    
165            public static PasswordPolicyService getService() {
166                    if (_service == null) {
167                            _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
168    
169                            ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
170                                    "_service");
171                    }
172    
173                    return _service;
174            }
175    
176            /**
177             * @deprecated As of 6.2.0
178             */
179            public void setService(PasswordPolicyService service) {
180            }
181    
182            private static PasswordPolicyService _service;
183    }