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.persistence;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="OrganizationFinderUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Brian Wing Shun Chan
23   */
24  public class OrganizationFinderUtil {
25      public static int countByKeywords(long companyId,
26          long parentOrganizationId,
27          java.lang.String parentOrganizationIdComparator,
28          java.lang.String keywords, java.lang.String type,
29          java.lang.Long regionId, java.lang.Long countryId,
30          java.util.LinkedHashMap<String, Object> params)
31          throws com.liferay.portal.SystemException {
32          return getFinder()
33                     .countByKeywords(companyId, parentOrganizationId,
34              parentOrganizationIdComparator, keywords, type, regionId,
35              countryId, params);
36      }
37  
38      public static int countByO_U(long organizationId, long userId)
39          throws com.liferay.portal.SystemException {
40          return getFinder().countByO_U(organizationId, userId);
41      }
42  
43      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
44          long parentOrganizationId,
45          java.lang.String parentOrganizationIdComparator, java.lang.String name,
46          java.lang.String type, java.lang.String street, java.lang.String city,
47          java.lang.String zip, java.lang.Long regionId,
48          java.lang.Long countryId,
49          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
50          throws com.liferay.portal.SystemException {
51          return getFinder()
52                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
53              parentOrganizationIdComparator, name, type, street, city, zip,
54              regionId, countryId, params, andOperator);
55      }
56  
57      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
58          long parentOrganizationId,
59          java.lang.String parentOrganizationIdComparator,
60          java.lang.String[] names, java.lang.String type,
61          java.lang.String[] streets, java.lang.String[] cities,
62          java.lang.String[] zips, java.lang.Long regionId,
63          java.lang.Long countryId,
64          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
65          throws com.liferay.portal.SystemException {
66          return getFinder()
67                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
68              parentOrganizationIdComparator, names, type, streets, cities, zips,
69              regionId, countryId, params, andOperator);
70      }
71  
72      public static java.util.List<com.liferay.portal.model.Organization> findByKeywords(
73          long companyId, long parentOrganizationId,
74          java.lang.String parentOrganizationIdComparator,
75          java.lang.String keywords, java.lang.String type,
76          java.lang.Long regionId, java.lang.Long countryId,
77          java.util.LinkedHashMap<String, Object> params, int start, int end,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.SystemException {
80          return getFinder()
81                     .findByKeywords(companyId, parentOrganizationId,
82              parentOrganizationIdComparator, keywords, type, regionId,
83              countryId, params, start, end, obc);
84      }
85  
86      public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
87          long companyId, long parentOrganizationId,
88          java.lang.String parentOrganizationIdComparator, java.lang.String name,
89          java.lang.String type, java.lang.String street, java.lang.String city,
90          java.lang.String zip, java.lang.Long regionId,
91          java.lang.Long countryId,
92          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
93          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
94          throws com.liferay.portal.SystemException {
95          return getFinder()
96                     .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
97              parentOrganizationIdComparator, name, type, street, city, zip,
98              regionId, countryId, params, andOperator, start, end, obc);
99      }
100 
101     public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
102         long companyId, long parentOrganizationId,
103         java.lang.String parentOrganizationIdComparator,
104         java.lang.String[] names, java.lang.String type,
105         java.lang.String[] streets, java.lang.String[] cities,
106         java.lang.String[] zips, java.lang.Long regionId,
107         java.lang.Long countryId,
108         java.util.LinkedHashMap<String, Object> params, boolean andOperator,
109         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
110         throws com.liferay.portal.SystemException {
111         return getFinder()
112                    .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
113             parentOrganizationIdComparator, names, type, streets, cities, zips,
114             regionId, countryId, params, andOperator, start, end, obc);
115     }
116 
117     public static OrganizationFinder getFinder() {
118         if (_finder == null) {
119             _finder = (OrganizationFinder)PortalBeanLocatorUtil.locate(OrganizationFinder.class.getName());
120         }
121 
122         return _finder;
123     }
124 
125     public void setFinder(OrganizationFinder finder) {
126         _finder = finder;
127     }
128 
129     private static OrganizationFinder _finder;
130 }