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            public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
059                    java.lang.String name, java.lang.String description,
060                    boolean changeable, boolean changeRequired, long minAge,
061                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
062                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
063                    int minUpperCase, boolean history, int historyCount,
064                    boolean expireable, long maxAge, long warningTime, int graceLimit,
065                    boolean lockout, int maxFailure, long lockoutDuration,
066                    long resetFailureCount, long resetTicketMaxAge)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return getService()
070                                       .addPasswordPolicy(name, description, changeable,
071                            changeRequired, minAge, checkSyntax, allowDictionaryWords,
072                            minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
073                            minUpperCase, history, historyCount, expireable, maxAge,
074                            warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
075                            resetFailureCount, resetTicketMaxAge);
076            }
077    
078            public static void deletePasswordPolicy(long passwordPolicyId)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    getService().deletePasswordPolicy(passwordPolicyId);
082            }
083    
084            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
085                    long passwordPolicyId, java.lang.String name,
086                    java.lang.String description, boolean changeable,
087                    boolean changeRequired, long minAge, boolean checkSyntax,
088                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
089                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
090                    boolean history, int historyCount, boolean expireable, long maxAge,
091                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
092                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return getService()
096                                       .updatePasswordPolicy(passwordPolicyId, name, description,
097                            changeable, changeRequired, minAge, checkSyntax,
098                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
099                            minNumbers, minSymbols, minUpperCase, history, historyCount,
100                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
101                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
102            }
103    
104            public static PasswordPolicyService getService() {
105                    if (_service == null) {
106                            _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
107    
108                            ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
109                                    "_service");
110                    }
111    
112                    return _service;
113            }
114    
115            /**
116             * @deprecated
117             */
118            public void setService(PasswordPolicyService service) {
119            }
120    
121            private static PasswordPolicyService _service;
122    }