001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * 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.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.PasswordPolicyServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * 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.
028     * </p>
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    public class PasswordPolicyServiceUtil {
037            public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
038                    java.lang.String name, java.lang.String description,
039                    boolean changeable, boolean changeRequired, long minAge,
040                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
041                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
042                    int minUpperCase, boolean history, int historyCount,
043                    boolean expireable, long maxAge, long warningTime, int graceLimit,
044                    boolean lockout, int maxFailure, long lockoutDuration,
045                    long resetFailureCount, long resetTicketMaxAge)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException {
048                    return getService()
049                                       .addPasswordPolicy(name, description, changeable,
050                            changeRequired, minAge, checkSyntax, allowDictionaryWords,
051                            minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
052                            minUpperCase, history, historyCount, expireable, maxAge,
053                            warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
054                            resetFailureCount, resetTicketMaxAge);
055            }
056    
057            public static void deletePasswordPolicy(long passwordPolicyId)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    getService().deletePasswordPolicy(passwordPolicyId);
061            }
062    
063            public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
064                    long passwordPolicyId, java.lang.String name,
065                    java.lang.String description, boolean changeable,
066                    boolean changeRequired, long minAge, boolean checkSyntax,
067                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
068                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
069                    boolean history, int historyCount, boolean expireable, long maxAge,
070                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
071                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return getService()
075                                       .updatePasswordPolicy(passwordPolicyId, name, description,
076                            changeable, changeRequired, minAge, checkSyntax,
077                            allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
078                            minNumbers, minSymbols, minUpperCase, history, historyCount,
079                            expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
080                            lockoutDuration, resetFailureCount, resetTicketMaxAge);
081            }
082    
083            public static PasswordPolicyService getService() {
084                    if (_service == null) {
085                            _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
086                    }
087    
088                    return _service;
089            }
090    
091            public void setService(PasswordPolicyService service) {
092                    _service = service;
093            }
094    
095            private static PasswordPolicyService _service;
096    }