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