1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="PasswordPolicyLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link PasswordPolicyLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       PasswordPolicyLocalService
37   * @generated
38   */
39  public class PasswordPolicyLocalServiceUtil {
40      public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
41          com.liferay.portal.model.PasswordPolicy passwordPolicy)
42          throws com.liferay.portal.SystemException {
43          return getService().addPasswordPolicy(passwordPolicy);
44      }
45  
46      public static com.liferay.portal.model.PasswordPolicy createPasswordPolicy(
47          long passwordPolicyId) {
48          return getService().createPasswordPolicy(passwordPolicyId);
49      }
50  
51      public static void deletePasswordPolicy(long passwordPolicyId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deletePasswordPolicy(passwordPolicyId);
55      }
56  
57      public static void deletePasswordPolicy(
58          com.liferay.portal.model.PasswordPolicy passwordPolicy)
59          throws com.liferay.portal.SystemException {
60          getService().deletePasswordPolicy(passwordPolicy);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
76          long passwordPolicyId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getPasswordPolicy(passwordPolicyId);
80      }
81  
82      public static java.util.List<com.liferay.portal.model.PasswordPolicy> getPasswordPolicies(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getPasswordPolicies(start, end);
85      }
86  
87      public static int getPasswordPoliciesCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getPasswordPoliciesCount();
90      }
91  
92      public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
93          com.liferay.portal.model.PasswordPolicy passwordPolicy)
94          throws com.liferay.portal.SystemException {
95          return getService().updatePasswordPolicy(passwordPolicy);
96      }
97  
98      public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
99          com.liferay.portal.model.PasswordPolicy passwordPolicy, boolean merge)
100         throws com.liferay.portal.SystemException {
101         return getService().updatePasswordPolicy(passwordPolicy, merge);
102     }
103 
104     public static com.liferay.portal.model.PasswordPolicy addPasswordPolicy(
105         long userId, boolean defaultPolicy, java.lang.String name,
106         java.lang.String description, boolean changeable,
107         boolean changeRequired, long minAge, boolean checkSyntax,
108         boolean allowDictionaryWords, int minLength, boolean history,
109         int historyCount, boolean expireable, long maxAge, long warningTime,
110         int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
111         long resetFailureCount)
112         throws com.liferay.portal.PortalException,
113             com.liferay.portal.SystemException {
114         return getService()
115                    .addPasswordPolicy(userId, defaultPolicy, name, description,
116             changeable, changeRequired, minAge, checkSyntax,
117             allowDictionaryWords, minLength, history, historyCount, expireable,
118             maxAge, warningTime, graceLimit, lockout, maxFailure,
119             lockoutDuration, resetFailureCount);
120     }
121 
122     public static void checkDefaultPasswordPolicy(long companyId)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         getService().checkDefaultPasswordPolicy(companyId);
126     }
127 
128     public static com.liferay.portal.model.PasswordPolicy getDefaultPasswordPolicy(
129         long companyId)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return getService().getDefaultPasswordPolicy(companyId);
133     }
134 
135     public static com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
136         long companyId, long organizationId, long locationId)
137         throws com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException {
139         return getService()
140                    .getPasswordPolicy(companyId, organizationId, locationId);
141     }
142 
143     public static com.liferay.portal.model.PasswordPolicy getPasswordPolicy(
144         long companyId, long[] organizationIds)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         return getService().getPasswordPolicy(companyId, organizationIds);
148     }
149 
150     public static com.liferay.portal.model.PasswordPolicy getPasswordPolicyByUserId(
151         long userId)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException {
154         return getService().getPasswordPolicyByUserId(userId);
155     }
156 
157     public static java.util.List<com.liferay.portal.model.PasswordPolicy> search(
158         long companyId, java.lang.String name, int start, int end,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException {
161         return getService().search(companyId, name, start, end, obc);
162     }
163 
164     public static int searchCount(long companyId, java.lang.String name)
165         throws com.liferay.portal.SystemException {
166         return getService().searchCount(companyId, name);
167     }
168 
169     public static com.liferay.portal.model.PasswordPolicy updatePasswordPolicy(
170         long passwordPolicyId, java.lang.String name,
171         java.lang.String description, boolean changeable,
172         boolean changeRequired, long minAge, boolean checkSyntax,
173         boolean allowDictionaryWords, int minLength, boolean history,
174         int historyCount, boolean expireable, long maxAge, long warningTime,
175         int graceLimit, boolean lockout, int maxFailure, long lockoutDuration,
176         long resetFailureCount)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException {
179         return getService()
180                    .updatePasswordPolicy(passwordPolicyId, name, description,
181             changeable, changeRequired, minAge, checkSyntax,
182             allowDictionaryWords, minLength, history, historyCount, expireable,
183             maxAge, warningTime, graceLimit, lockout, maxFailure,
184             lockoutDuration, resetFailureCount);
185     }
186 
187     public static PasswordPolicyLocalService getService() {
188         if (_service == null) {
189             _service = (PasswordPolicyLocalService)PortalBeanLocatorUtil.locate(PasswordPolicyLocalService.class.getName());
190         }
191 
192         return _service;
193     }
194 
195     public void setService(PasswordPolicyLocalService service) {
196         _service = service;
197     }
198 
199     private static PasswordPolicyLocalService _service;
200 }