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.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     * Provides the remote service interface for PasswordPolicy. Methods of this
026     * service are expected to have security checks based on the propagated JAAS
027     * credentials because this service can be accessed remotely.
028     *
029     * @author Brian Wing Shun Chan
030     * @see PasswordPolicyServiceUtil
031     * @see com.liferay.portal.service.base.PasswordPolicyServiceBaseImpl
032     * @see com.liferay.portal.service.impl.PasswordPolicyServiceImpl
033     * @generated
034     */
035    @AccessControlled
036    @JSONWebService
037    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
038            PortalException.class, SystemException.class})
039    public interface PasswordPolicyService extends BaseService {
040            /*
041             * NOTE FOR DEVELOPERS:
042             *
043             * 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.
044             */
045    
046            /**
047            * Returns the Spring bean ID for this bean.
048            *
049            * @return the Spring bean ID for this bean
050            */
051            public java.lang.String getBeanIdentifier();
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public void setBeanIdentifier(java.lang.String beanIdentifier);
059    
060            /**
061            * @deprecated As of 6.2.0, replaced by {@link #addPasswordPolicy(String,
062            String, boolean, boolean, long, boolean, boolean, int, int,
063            int, int, int, int, String, boolean, int, boolean, long,
064            long, int, boolean, int, long, long, long, ServiceContext)}
065            */
066            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
067                    java.lang.String name, java.lang.String description,
068                    boolean changeable, boolean changeRequired, long minAge,
069                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
070                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
071                    int minUpperCase, boolean history, int historyCount,
072                    boolean expireable, long maxAge, long warningTime, int graceLimit,
073                    boolean lockout, int maxFailure, long lockoutDuration,
074                    long resetFailureCount, long resetTicketMaxAge)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException;
077    
078            public com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
079                    java.lang.String name, java.lang.String description,
080                    boolean changeable, boolean changeRequired, long minAge,
081                    boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
082                    int minLength, int minLowerCase, int minNumbers, int minSymbols,
083                    int minUpperCase, java.lang.String regex, boolean history,
084                    int historyCount, boolean expireable, long maxAge, long warningTime,
085                    int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
086                    long resetFailureCount, long resetTicketMaxAge,
087                    com.liferay.portal.service.ServiceContext serviceContext)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException;
090    
091            public void deletePasswordPolicy(long passwordPolicyId)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            /**
096            * @deprecated As of 6.2.0, replaced by {@link #updatePasswordPolicy(long,
097            String, String, boolean, boolean, long, boolean, boolean,
098            int, int, int, int, int, int, String, boolean, int, boolean,
099            long, long, int, boolean, int, long, long, long,
100            ServiceContext)}
101            */
102            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
103                    long passwordPolicyId, java.lang.String name,
104                    java.lang.String description, boolean changeable,
105                    boolean changeRequired, long minAge, boolean checkSyntax,
106                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
107                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
108                    boolean history, int historyCount, boolean expireable, long maxAge,
109                    long warningTime, int graceLimit, boolean lockout, int maxFailure,
110                    long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            public com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
115                    long passwordPolicyId, java.lang.String name,
116                    java.lang.String description, boolean changeable,
117                    boolean changeRequired, long minAge, boolean checkSyntax,
118                    boolean allowDictionaryWords, int minAlphanumeric, int minLength,
119                    int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
120                    java.lang.String regex, boolean history, int historyCount,
121                    boolean expireable, long maxAge, long warningTime, int graceLimit,
122                    boolean lockout, int maxFailure, long lockoutDuration,
123                    long resetFailureCount, long resetTicketMaxAge,
124                    com.liferay.portal.service.ServiceContext serviceContext)
125                    throws com.liferay.portal.kernel.exception.PortalException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    }