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  import com.liferay.portal.kernel.util.MethodCache;
19  import com.liferay.portal.kernel.util.ReferenceRegistry;
20  
21  /**
22   * <a href="PasswordPolicyRelLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link PasswordPolicyRelLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       PasswordPolicyRelLocalService
39   * @generated
40   */
41  public class PasswordPolicyRelLocalServiceUtil {
42      public static com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
43          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
44          throws com.liferay.portal.SystemException {
45          return getService().addPasswordPolicyRel(passwordPolicyRel);
46      }
47  
48      public static com.liferay.portal.model.PasswordPolicyRel createPasswordPolicyRel(
49          long passwordPolicyRelId) {
50          return getService().createPasswordPolicyRel(passwordPolicyRelId);
51      }
52  
53      public static void deletePasswordPolicyRel(long passwordPolicyRelId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deletePasswordPolicyRel(passwordPolicyRelId);
57      }
58  
59      public static void deletePasswordPolicyRel(
60          com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
61          throws com.liferay.portal.SystemException {
62          getService().deletePasswordPolicyRel(passwordPolicyRel);
63      }
64  
65      @SuppressWarnings("rawtypes")
66      public static java.util.List dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException {
69          return getService().dynamicQuery(dynamicQuery);
70      }
71  
72      @SuppressWarnings("rawtypes")
73      public static java.util.List dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end) throws com.liferay.portal.SystemException {
76          return getService().dynamicQuery(dynamicQuery, start, end);
77      }
78  
79      @SuppressWarnings("rawtypes")
80      public static java.util.List dynamicQuery(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82          int end,
83          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84          throws com.liferay.portal.SystemException {
85          return getService()
86                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87      }
88  
89      public static int dynamicQueryCount(
90          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91          throws com.liferay.portal.SystemException {
92          return getService().dynamicQueryCount(dynamicQuery);
93      }
94  
95      public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
96          long passwordPolicyRelId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getPasswordPolicyRel(passwordPolicyRelId);
100     }
101 
102     public static java.util.List<com.liferay.portal.model.PasswordPolicyRel> getPasswordPolicyRels(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getPasswordPolicyRels(start, end);
105     }
106 
107     public static int getPasswordPolicyRelsCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getPasswordPolicyRelsCount();
110     }
111 
112     public static com.liferay.portal.model.PasswordPolicyRel updatePasswordPolicyRel(
113         com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel)
114         throws com.liferay.portal.SystemException {
115         return getService().updatePasswordPolicyRel(passwordPolicyRel);
116     }
117 
118     public static com.liferay.portal.model.PasswordPolicyRel updatePasswordPolicyRel(
119         com.liferay.portal.model.PasswordPolicyRel passwordPolicyRel,
120         boolean merge) throws com.liferay.portal.SystemException {
121         return getService().updatePasswordPolicyRel(passwordPolicyRel, merge);
122     }
123 
124     public static com.liferay.portal.model.PasswordPolicyRel addPasswordPolicyRel(
125         long passwordPolicyId, java.lang.String className, long classPK)
126         throws com.liferay.portal.SystemException {
127         return getService()
128                    .addPasswordPolicyRel(passwordPolicyId, className, classPK);
129     }
130 
131     public static void addPasswordPolicyRels(long passwordPolicyId,
132         java.lang.String className, long[] classPKs)
133         throws com.liferay.portal.SystemException {
134         getService().addPasswordPolicyRels(passwordPolicyId, className, classPKs);
135     }
136 
137     public static void deletePasswordPolicyRel(java.lang.String className,
138         long classPK) throws com.liferay.portal.SystemException {
139         getService().deletePasswordPolicyRel(className, classPK);
140     }
141 
142     public static void deletePasswordPolicyRel(long passwordPolicyId,
143         java.lang.String className, long classPK)
144         throws com.liferay.portal.SystemException {
145         getService()
146             .deletePasswordPolicyRel(passwordPolicyId, className, classPK);
147     }
148 
149     public static void deletePasswordPolicyRels(long passwordPolicyId)
150         throws com.liferay.portal.SystemException {
151         getService().deletePasswordPolicyRels(passwordPolicyId);
152     }
153 
154     public static void deletePasswordPolicyRels(long passwordPolicyId,
155         java.lang.String className, long[] classPKs)
156         throws com.liferay.portal.SystemException {
157         getService()
158             .deletePasswordPolicyRels(passwordPolicyId, className, classPKs);
159     }
160 
161     public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
162         java.lang.String className, long classPK)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException {
165         return getService().getPasswordPolicyRel(className, classPK);
166     }
167 
168     public static com.liferay.portal.model.PasswordPolicyRel getPasswordPolicyRel(
169         long passwordPolicyId, java.lang.String className, long classPK)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException {
172         return getService()
173                    .getPasswordPolicyRel(passwordPolicyId, className, classPK);
174     }
175 
176     public static boolean hasPasswordPolicyRel(long passwordPolicyId,
177         java.lang.String className, long classPK)
178         throws com.liferay.portal.SystemException {
179         return getService()
180                    .hasPasswordPolicyRel(passwordPolicyId, className, classPK);
181     }
182 
183     public static PasswordPolicyRelLocalService getService() {
184         if (_service == null) {
185             _service = (PasswordPolicyRelLocalService)PortalBeanLocatorUtil.locate(PasswordPolicyRelLocalService.class.getName());
186 
187             ReferenceRegistry.registerReference(PasswordPolicyRelLocalServiceUtil.class,
188                 "_service");
189             MethodCache.remove(PasswordPolicyRelLocalService.class);
190         }
191 
192         return _service;
193     }
194 
195     public void setService(PasswordPolicyRelLocalService service) {
196         MethodCache.remove(PasswordPolicyRelLocalService.class);
197 
198         _service = service;
199 
200         ReferenceRegistry.registerReference(PasswordPolicyRelLocalServiceUtil.class,
201             "_service");
202         MethodCache.remove(PasswordPolicyRelLocalService.class);
203     }
204 
205     private static PasswordPolicyRelLocalService _service;
206 }