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