1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  /**
26   * <a href="OrganizationFinderUtil.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class OrganizationFinderUtil {
32      public static int countByKeywords(long companyId,
33          long parentOrganizationId,
34          java.lang.String parentOrganizationIdComparator,
35          java.lang.String keywords, int type, java.lang.Long regionId,
36          java.lang.Long countryId, java.util.LinkedHashMap<String, Object> params)
37          throws com.liferay.portal.SystemException {
38          return getFinder()
39                     .countByKeywords(companyId, parentOrganizationId,
40              parentOrganizationIdComparator, keywords, type, regionId,
41              countryId, params);
42      }
43  
44      public static int countByO_U(long organizationId, long userId)
45          throws com.liferay.portal.SystemException {
46          return getFinder().countByO_U(organizationId, userId);
47      }
48  
49      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
50          long parentOrganizationId,
51          java.lang.String parentOrganizationIdComparator, java.lang.String name,
52          int type, java.lang.String street, java.lang.String city,
53          java.lang.String zip, java.lang.Long regionId,
54          java.lang.Long countryId,
55          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
56          throws com.liferay.portal.SystemException {
57          return getFinder()
58                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
59              parentOrganizationIdComparator, name, type, street, city, zip,
60              regionId, countryId, params, andOperator);
61      }
62  
63      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
64          long parentOrganizationId,
65          java.lang.String parentOrganizationIdComparator,
66          java.lang.String[] names, int type, java.lang.String[] streets,
67          java.lang.String[] cities, java.lang.String[] zips,
68          java.lang.Long regionId, java.lang.Long countryId,
69          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
70          throws com.liferay.portal.SystemException {
71          return getFinder()
72                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
73              parentOrganizationIdComparator, names, type, streets, cities, zips,
74              regionId, countryId, params, andOperator);
75      }
76  
77      public static java.util.List<com.liferay.portal.model.Organization> findByKeywords(
78          long companyId, long parentOrganizationId,
79          java.lang.String parentOrganizationIdComparator,
80          java.lang.String keywords, int type, java.lang.Long regionId,
81          java.lang.Long countryId,
82          java.util.LinkedHashMap<String, Object> params, int start, int end,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException {
85          return getFinder()
86                     .findByKeywords(companyId, parentOrganizationId,
87              parentOrganizationIdComparator, keywords, type, regionId,
88              countryId, params, start, end, obc);
89      }
90  
91      public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
92          long companyId, long parentOrganizationId,
93          java.lang.String parentOrganizationIdComparator, java.lang.String name,
94          int type, java.lang.String street, java.lang.String city,
95          java.lang.String zip, java.lang.Long regionId,
96          java.lang.Long countryId,
97          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
98          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException {
100         return getFinder()
101                    .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
102             parentOrganizationIdComparator, name, type, street, city, zip,
103             regionId, countryId, params, andOperator, start, end, obc);
104     }
105 
106     public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
107         long companyId, long parentOrganizationId,
108         java.lang.String parentOrganizationIdComparator,
109         java.lang.String[] names, int type, java.lang.String[] streets,
110         java.lang.String[] cities, java.lang.String[] zips,
111         java.lang.Long regionId, java.lang.Long countryId,
112         java.util.LinkedHashMap<String, Object> params, boolean andOperator,
113         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException {
115         return getFinder()
116                    .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
117             parentOrganizationIdComparator, names, type, streets, cities, zips,
118             regionId, countryId, params, andOperator, start, end, obc);
119     }
120 
121     public static OrganizationFinder getFinder() {
122         return _finder;
123     }
124 
125     public void setFinder(OrganizationFinder finder) {
126         _finder = finder;
127     }
128 
129     private static OrganizationFinder _finder;
130 }