1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  public class OrganizationFinderUtil {
31      public static int countByKeywords(long companyId,
32          long parentOrganizationId,
33          java.lang.String parentOrganizationIdComparator,
34          java.lang.String keywords, java.lang.String type,
35          java.lang.Long regionId, java.lang.Long countryId,
36          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          java.lang.String 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, java.lang.String type,
67          java.lang.String[] streets, java.lang.String[] cities,
68          java.lang.String[] zips, java.lang.Long regionId,
69          java.lang.Long countryId,
70          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
71          throws com.liferay.portal.SystemException {
72          return getFinder()
73                     .countByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
74              parentOrganizationIdComparator, names, type, streets, cities, zips,
75              regionId, countryId, params, andOperator);
76      }
77  
78      public static java.util.List<com.liferay.portal.model.Organization> findByKeywords(
79          long companyId, long parentOrganizationId,
80          java.lang.String parentOrganizationIdComparator,
81          java.lang.String keywords, java.lang.String type,
82          java.lang.Long regionId, java.lang.Long countryId,
83          java.util.LinkedHashMap<String, Object> params, int start, int end,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException {
86          return getFinder()
87                     .findByKeywords(companyId, parentOrganizationId,
88              parentOrganizationIdComparator, keywords, type, regionId,
89              countryId, params, start, end, obc);
90      }
91  
92      public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
93          long companyId, long parentOrganizationId,
94          java.lang.String parentOrganizationIdComparator, java.lang.String name,
95          java.lang.String type, java.lang.String street, java.lang.String city,
96          java.lang.String zip, java.lang.Long regionId,
97          java.lang.Long countryId,
98          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
99          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException {
101         return getFinder()
102                    .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
103             parentOrganizationIdComparator, name, type, street, city, zip,
104             regionId, countryId, params, andOperator, start, end, obc);
105     }
106 
107     public static java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
108         long companyId, long parentOrganizationId,
109         java.lang.String parentOrganizationIdComparator,
110         java.lang.String[] names, java.lang.String type,
111         java.lang.String[] streets, java.lang.String[] cities,
112         java.lang.String[] zips, java.lang.Long regionId,
113         java.lang.Long countryId,
114         java.util.LinkedHashMap<String, Object> params, boolean andOperator,
115         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException {
117         return getFinder()
118                    .findByC_PO_N_T_S_C_Z_R_C(companyId, parentOrganizationId,
119             parentOrganizationIdComparator, names, type, streets, cities, zips,
120             regionId, countryId, params, andOperator, start, end, obc);
121     }
122 
123     public static OrganizationFinder getFinder() {
124         return _finder;
125     }
126 
127     public void setFinder(OrganizationFinder finder) {
128         _finder = finder;
129     }
130 
131     private static OrganizationFinder _finder;
132 }