1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.service.persistence;
21  
22  /**
23   * <a href="OrganizationFinder.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   *
27   */
28  public interface OrganizationFinder {
29      public int countByKeywords(long companyId, long parentOrganizationId,
30          java.lang.String parentOrganizationIdComparator,
31          java.lang.String keywords, int type, java.lang.Long regionId,
32          java.lang.Long countryId, java.util.LinkedHashMap<String, Object> params)
33          throws com.liferay.portal.SystemException;
34  
35      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
36          long parentOrganizationId,
37          java.lang.String parentOrganizationIdComparator, java.lang.String name,
38          int type, java.lang.String street, java.lang.String city,
39          java.lang.String zip, java.lang.Long regionId,
40          java.lang.Long countryId,
41          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
42          throws com.liferay.portal.SystemException;
43  
44      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
45          long parentOrganizationId,
46          java.lang.String parentOrganizationIdComparator,
47          java.lang.String[] names, int type, java.lang.String[] streets,
48          java.lang.String[] cities, java.lang.String[] zips,
49          java.lang.Long regionId, java.lang.Long countryId,
50          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
51          throws com.liferay.portal.SystemException;
52  
53      public java.util.List<com.liferay.portal.model.Organization> findByKeywords(
54          long companyId, long parentOrganizationId,
55          java.lang.String parentOrganizationIdComparator,
56          java.lang.String keywords, int type, java.lang.Long regionId,
57          java.lang.Long countryId,
58          java.util.LinkedHashMap<String, Object> params, int start, int end,
59          com.liferay.portal.kernel.util.OrderByComparator obc)
60          throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
63          long companyId, long parentOrganizationId,
64          java.lang.String parentOrganizationIdComparator, java.lang.String name,
65          int type, java.lang.String street, java.lang.String city,
66          java.lang.String zip, java.lang.Long regionId,
67          java.lang.Long countryId,
68          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
69          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException;
71  
72      public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
73          long companyId, long parentOrganizationId,
74          java.lang.String parentOrganizationIdComparator,
75          java.lang.String[] names, int type, java.lang.String[] streets,
76          java.lang.String[] cities, java.lang.String[] zips,
77          java.lang.Long regionId, java.lang.Long countryId,
78          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
79          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException;
81  }