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