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