001
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
033 public class PasswordPolicyServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058
061 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
062 java.lang.String name, java.lang.String description,
063 boolean changeable, boolean changeRequired, long minAge,
064 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
065 int minLength, int minLowerCase, int minNumbers, int minSymbols,
066 int minUpperCase, boolean history, int historyCount,
067 boolean expireable, long maxAge, long warningTime, int graceLimit,
068 boolean lockout, int maxFailure, long lockoutDuration,
069 long resetFailureCount, long resetTicketMaxAge)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 return getService()
073 .addPasswordPolicy(name, description, changeable,
074 changeRequired, minAge, checkSyntax, allowDictionaryWords,
075 minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
076 minUpperCase, history, historyCount, expireable, maxAge,
077 warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
078 resetFailureCount, resetTicketMaxAge);
079 }
080
081 public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
082 java.lang.String name, java.lang.String description,
083 boolean changeable, boolean changeRequired, long minAge,
084 boolean checkSyntax, boolean allowDictionaryWords, int minAlphanumeric,
085 int minLength, int minLowerCase, int minNumbers, int minSymbols,
086 int minUpperCase, java.lang.String regex, boolean history,
087 int historyCount, boolean expireable, long maxAge, long warningTime,
088 int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
089 long resetFailureCount, long resetTicketMaxAge)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return getService()
093 .addPasswordPolicy(name, description, changeable,
094 changeRequired, minAge, checkSyntax, allowDictionaryWords,
095 minAlphanumeric, minLength, minLowerCase, minNumbers, minSymbols,
096 minUpperCase, regex, history, historyCount, expireable, maxAge,
097 warningTime, graceLimit, lockout, maxFailure, lockoutDuration,
098 resetFailureCount, resetTicketMaxAge);
099 }
100
101 public static void deletePasswordPolicy(long passwordPolicyId)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException {
104 getService().deletePasswordPolicy(passwordPolicyId);
105 }
106
107
110 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
111 long passwordPolicyId, java.lang.String name,
112 java.lang.String description, boolean changeable,
113 boolean changeRequired, long minAge, boolean checkSyntax,
114 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
115 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
116 boolean history, int historyCount, boolean expireable, long maxAge,
117 long warningTime, int graceLimit, boolean lockout, int maxFailure,
118 long lockoutDuration, long resetFailureCount, long resetTicketMaxAge)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException {
121 return getService()
122 .updatePasswordPolicy(passwordPolicyId, name, description,
123 changeable, changeRequired, minAge, checkSyntax,
124 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
125 minNumbers, minSymbols, minUpperCase, history, historyCount,
126 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
127 lockoutDuration, resetFailureCount, resetTicketMaxAge);
128 }
129
130 public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
131 long passwordPolicyId, java.lang.String name,
132 java.lang.String description, boolean changeable,
133 boolean changeRequired, long minAge, boolean checkSyntax,
134 boolean allowDictionaryWords, int minAlphanumeric, int minLength,
135 int minLowerCase, int minNumbers, int minSymbols, int minUpperCase,
136 java.lang.String regex, boolean history, int historyCount,
137 boolean expireable, long maxAge, long warningTime, int graceLimit,
138 boolean lockout, int maxFailure, long lockoutDuration,
139 long resetFailureCount, long resetTicketMaxAge)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getService()
143 .updatePasswordPolicy(passwordPolicyId, name, description,
144 changeable, changeRequired, minAge, checkSyntax,
145 allowDictionaryWords, minAlphanumeric, minLength, minLowerCase,
146 minNumbers, minSymbols, minUpperCase, regex, history, historyCount,
147 expireable, maxAge, warningTime, graceLimit, lockout, maxFailure,
148 lockoutDuration, resetFailureCount, resetTicketMaxAge);
149 }
150
151 public static PasswordPolicyService getService() {
152 if (_service == null) {
153 _service = (PasswordPolicyService)PortalBeanLocatorUtil.locate(PasswordPolicyService.class.getName());
154
155 ReferenceRegistry.registerReference(PasswordPolicyServiceUtil.class,
156 "_service");
157 }
158
159 return _service;
160 }
161
162
165 public void setService(PasswordPolicyService service) {
166 }
167
168 private static PasswordPolicyService _service;
169 }