001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
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 }