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="OrganizationFinder.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface OrganizationFinder {
32      public int countByKeywords(long companyId, 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  
38      public int countByO_U(long organizationId, long userId)
39          throws com.liferay.portal.SystemException;
40  
41      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
42          long parentOrganizationId,
43          java.lang.String parentOrganizationIdComparator, java.lang.String name,
44          int type, java.lang.String street, java.lang.String city,
45          java.lang.String zip, java.lang.Long regionId,
46          java.lang.Long countryId,
47          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
48          throws com.liferay.portal.SystemException;
49  
50      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
51          long parentOrganizationId,
52          java.lang.String parentOrganizationIdComparator,
53          java.lang.String[] names, int type, java.lang.String[] streets,
54          java.lang.String[] cities, java.lang.String[] zips,
55          java.lang.Long regionId, java.lang.Long countryId,
56          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
57          throws com.liferay.portal.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.Organization> findByKeywords(
60          long companyId, long parentOrganizationId,
61          java.lang.String parentOrganizationIdComparator,
62          java.lang.String keywords, int type, java.lang.Long regionId,
63          java.lang.Long countryId,
64          java.util.LinkedHashMap<String, Object> params, int start, int end,
65          com.liferay.portal.kernel.util.OrderByComparator obc)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
69          long companyId, long parentOrganizationId,
70          java.lang.String parentOrganizationIdComparator, java.lang.String name,
71          int type, java.lang.String street, java.lang.String city,
72          java.lang.String zip, java.lang.Long regionId,
73          java.lang.Long countryId,
74          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
75          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException;
77  
78      public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
79          long companyId, long parentOrganizationId,
80          java.lang.String parentOrganizationIdComparator,
81          java.lang.String[] names, int type, java.lang.String[] streets,
82          java.lang.String[] cities, java.lang.String[] zips,
83          java.lang.Long regionId, java.lang.Long countryId,
84          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
85          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.SystemException;
87  }