001    /**
002     * Copyright (c) 2000-2012 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
060            */
061            public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
062                    java.lang.String name, java.lang.String description,
063                    boolean changeable, boolean changeRequired, long minAge,
064                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
065                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
066                    int minUpperCase, boolean history, int historyCount,
067                    boolean expireable, long maxAge, long warningTime, int graceLimit,
068                    boolean lockout, int maxFailure, long lockoutDuration,
069                    long resetFailureCount, long resetTicketMaxAge)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return getService()
073                                       .addPasswordPolicy(name, description, changeable,
074                            changeRequired, minAge, checkSyntax, allowDictionaryWords,
075                            minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
076                            minUpperCase, history, historyCount, expireable, maxAge,
077                            warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
078                            resetFailureCount, resetTicketMaxAge);
079            }
080    
081            public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
082                    java.lang.String name, java.lang.String description,
083                    boolean changeable, boolean changeRequired, long minAge,
084                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
085                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
086                    int minUpperCase, java.lang.String regex, boolean history,
087                    int historyCount, boolean expireable, long maxAge, long warningTime,
088                    int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
089                    long resetFailureCount, long resetTicketMaxAge)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException {
092                    return getService()
093                                       .addPasswordPolicy(name, description, changeable,
094                            changeRequired, minAge, checkSyntax, allowDictionaryWords,
095                            minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
096                            minUpperCase, regex, history, historyCount, expireable, maxAge,
097                            warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
098                            resetFailureCount, resetTicketMaxAge);
099            }
100    
101            public static void deletePasswordPolicy(long passwordPolicyId)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException {
104                    getService().deletePasswordPolicy(passwordPolicyId);
105            }
106    
107            /**
108            * @deprecated
109            */
110            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
111                    long passwordPolicyId, java.lang.String name,
112                    java.lang.String description, boolean changeable,
113                    boolean changeRequired, long minAge, boolean checkSyntax,
114                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
115                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
116                    boolean history, int historyCount, boolean expireable, long maxAge,
117                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
118                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    return getService()
122                                       .updatePasswordPolicy(passwordPolicyId, name, description,
123                            changeable, changeRequired, minAge, checkSyntax,
124                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
125                            minNumbers, minSymbols, minUpperCase, history, historyCount,
126                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
127                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
128            }
129    
130            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
131                    long passwordPolicyId, java.lang.String name,
132                    java.lang.String description, boolean changeable,
133                    boolean changeRequired, long minAge, boolean checkSyntax,
134                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
135                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
136                    java.lang.String regex, boolean history, int historyCount,
137                    boolean expireable, long maxAge, long warningTime, int graceLimit,
138                    boolean lockout, int maxFailure, long lockoutDuration,
139                    long resetFailureCount, long resetTicketMaxAge)
140                    throws com.liferay.portal.kernel.exception.PortalException,
141                            com.liferay.portal.kernel.exception.SystemException {
142                    return getService()
143                                       .updatePasswordPolicy(passwordPolicyId, name, description,
144                            changeable, changeRequired, minAge, checkSyntax,
145                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
146                            minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
147                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
148                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
149            }
150    
151            public static PasswordPolicyService getService() {
152                    if (_service == null) {
153                            _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
154    
155                            ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
156                                    "_service");
157                    }
158    
159                    return _service;
160            }
161    
162            /**
163             * @deprecated
164             */
165            public void setService(PasswordPolicyService service) {
166            }
167    
168            private static PasswordPolicyService _service;
169    }