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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Transactional;
022    import com.liferay.portal.security.ac.AccessControlled;
023    
024    /**
025     * The interface for the password policy remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see PasswordPolicyServiceUtil
033     * @see com.liferay.portal.service.base.PasswordPolicyServiceBaseImpl
034     * @see com.liferay.portal.service.impl.PasswordPolicyServiceImpl
035     * @generated
036     */
037    @AccessControlled
038    @JSONWebService
039    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
040            PortalException.class, SystemException.class})
041    public interface PasswordPolicyService extends BaseService {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify or reference this interface directly. Always use {@link PasswordPolicyServiceUtil} to access the password policy remote service. Add custom service methods to {@link com.liferay.portal.service.impl.PasswordPolicyServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
046             */
047    
048            /**
049            * Returns the Spring bean ID for this bean.
050            *
051            * @return the Spring bean ID for this bean
052            */
053            public java.lang.String getBeanIdentifier();
054    
055            /**
056            * Sets the Spring bean ID for this bean.
057            *
058            * @param beanIdentifier the Spring bean ID for this bean
059            */
060            public void setBeanIdentifier(java.lang.String beanIdentifier);
061    
062            /**
063            * @deprecated
064            */
065            public 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    
077            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
078                    java.lang.String name, java.lang.String description,
079                    boolean changeable, boolean changeRequired, long minAge,
080                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
081                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
082                    int minUpperCase, java.lang.String regex, boolean history,
083                    int historyCount, boolean expireable, long maxAge, long warningTime,
084                    int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
085                    long resetFailureCount, long resetTicketMaxAge)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            public void deletePasswordPolicy(long passwordPolicyId)
090                    throws com.liferay.portal.kernel.exception.PortalException,
091                            com.liferay.portal.kernel.exception.SystemException;
092    
093            /**
094            * @deprecated
095            */
096            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
097                    long passwordPolicyId, java.lang.String name,
098                    java.lang.String description, boolean changeable,
099                    boolean changeRequired, long minAge, boolean checkSyntax,
100                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
101                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
102                    boolean history, int historyCount, boolean expireable, long maxAge,
103                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
104                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
109                    long passwordPolicyId, java.lang.String name,
110                    java.lang.String description, boolean changeable,
111                    boolean changeRequired, long minAge, boolean checkSyntax,
112                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
113                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
114                    java.lang.String regex, boolean history, int historyCount,
115                    boolean expireable, long maxAge, long warningTime, int graceLimit,
116                    boolean lockout, int maxFailure, long lockoutDuration,
117                    long resetFailureCount, long resetTicketMaxAge)
118                    throws com.liferay.portal.kernel.exception.PortalException,
119                            com.liferay.portal.kernel.exception.SystemException;
120    }