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, 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  
39      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
40          long parentOrganizationId,
41          java.lang.String parentOrganizationIdComparator, java.lang.String name,
42          java.lang.String type, java.lang.String street, java.lang.String city,
43          java.lang.String zip, java.lang.Long regionId,
44          java.lang.Long countryId,
45          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
46          throws com.liferay.portal.SystemException;
47  
48      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
49          long parentOrganizationId,
50          java.lang.String parentOrganizationIdComparator,
51          java.lang.String[] names, java.lang.String type,
52          java.lang.String[] streets, java.lang.String[] cities,
53          java.lang.String[] zips, 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  
58      public java.util.List<com.liferay.portal.model.Organization> findByKeywords(
59          long companyId, long parentOrganizationId,
60          java.lang.String parentOrganizationIdComparator,
61          java.lang.String keywords, java.lang.String type,
62          java.lang.Long regionId, java.lang.Long countryId,
63          java.util.LinkedHashMap<String, Object> params, int start, int end,
64          com.liferay.portal.kernel.util.OrderByComparator obc)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
68          long companyId, long parentOrganizationId,
69          java.lang.String parentOrganizationIdComparator, java.lang.String name,
70          java.lang.String type, java.lang.String street, java.lang.String city,
71          java.lang.String zip, java.lang.Long regionId,
72          java.lang.Long countryId,
73          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
74          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
78          long companyId, long parentOrganizationId,
79          java.lang.String parentOrganizationIdComparator,
80          java.lang.String[] names, java.lang.String type,
81          java.lang.String[] streets, java.lang.String[] cities,
82          java.lang.String[] zips, java.lang.Long regionId,
83          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  }