1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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<java.lang.String, java.lang.Object> params)
31          throws com.liferay.portal.kernel.exception.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.kernel.exception.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<java.lang.String, java.lang.Object> params,
50          boolean andOperator)
51          throws com.liferay.portal.kernel.exception.SystemException {
52          return getFinder()
53                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
54              parentOrganizationIdComparator, name, type, street, city, zip,
55              regionId, countryId, params, andOperator);
56      }
57  
58      public static int countByC_PO_N_T_S_C_Z_R_C(long companyId,
59          long parentOrganizationId,
60          java.lang.String parentOrganizationIdComparator,
61          java.lang.String[] names, java.lang.String type,
62          java.lang.String[] streets, java.lang.String[] cities,
63          java.lang.String[] zips, java.lang.Long regionId,
64          java.lang.Long countryId,
65          java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
66          boolean andOperator)
67          throws com.liferay.portal.kernel.exception.SystemException {
68          return getFinder()
69                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
70              parentOrganizationIdComparator, names, type, streets, cities, zips,
71              regionId, countryId, params, andOperator);
72      }
73  
74      public static java.util.List<com.liferay.portal.model.Organization> findByKeywords(
75          long companyId, long parentOrganizationId,
76          java.lang.String parentOrganizationIdComparator,
77          java.lang.String keywords, java.lang.String type,
78          java.lang.Long regionId, java.lang.Long countryId,
79          java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
80          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.kernel.exception.SystemException {
82          return getFinder()
83                     .findByKeywords(companyId, parentOrganizationId,
84              parentOrganizationIdComparator, keywords, type, regionId,
85              countryId, params, start, end, obc);
86      }
87  
88      public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
89          long companyId, long parentOrganizationId,
90          java.lang.String parentOrganizationIdComparator, java.lang.String name,
91          java.lang.String type, java.lang.String street, java.lang.String city,
92          java.lang.String zip, java.lang.Long regionId,
93          java.lang.Long countryId,
94          java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
95          boolean andOperator, int start, int end,
96          com.liferay.portal.kernel.util.OrderByComparator obc)
97          throws com.liferay.portal.kernel.exception.SystemException {
98          return getFinder()
99                     .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
100             parentOrganizationIdComparator, name, type, street, city, zip,
101             regionId, countryId, params, andOperator, start, end, obc);
102     }
103 
104     public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
105         long companyId, long parentOrganizationId,
106         java.lang.String parentOrganizationIdComparator,
107         java.lang.String[] names, java.lang.String type,
108         java.lang.String[] streets, java.lang.String[] cities,
109         java.lang.String[] zips, java.lang.Long regionId,
110         java.lang.Long countryId,
111         java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
112         boolean andOperator, int start, int end,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.kernel.exception.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         if (_finder == null) {
123             _finder = (OrganizationFinder)PortalBeanLocatorUtil.locate(OrganizationFinder.class.getName());
124         }
125 
126         return _finder;
127     }
128 
129     public void setFinder(OrganizationFinder finder) {
130         _finder = finder;
131     }
132 
133     private static OrganizationFinder _finder;
134 }