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