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