1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  /**
18   * <a href="OrganizationFinder.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public interface OrganizationFinder {
23      public int countByKeywords(long companyId, long parentOrganizationId,
24          java.lang.String parentOrganizationIdComparator,
25          java.lang.String keywords, java.lang.String type,
26          java.lang.Long regionId, java.lang.Long countryId,
27          java.util.LinkedHashMap<String, Object> params)
28          throws com.liferay.portal.kernel.exception.SystemException;
29  
30      public int countByO_U(long organizationId, long userId)
31          throws com.liferay.portal.kernel.exception.SystemException;
32  
33      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
34          long parentOrganizationId,
35          java.lang.String parentOrganizationIdComparator, java.lang.String name,
36          java.lang.String type, java.lang.String street, java.lang.String city,
37          java.lang.String zip, java.lang.Long regionId,
38          java.lang.Long countryId,
39          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
40          throws com.liferay.portal.kernel.exception.SystemException;
41  
42      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
43          long parentOrganizationId,
44          java.lang.String parentOrganizationIdComparator,
45          java.lang.String[] names, java.lang.String type,
46          java.lang.String[] streets, java.lang.String[] cities,
47          java.lang.String[] zips, java.lang.Long regionId,
48          java.lang.Long countryId,
49          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public java.util.List<com.liferay.portal.model.Organization> findByKeywords(
53          long companyId, long parentOrganizationId,
54          java.lang.String parentOrganizationIdComparator,
55          java.lang.String keywords, java.lang.String type,
56          java.lang.Long regionId, java.lang.Long countryId,
57          java.util.LinkedHashMap<String, Object> params, int start, int end,
58          com.liferay.portal.kernel.util.OrderByComparator obc)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
62          long companyId, long parentOrganizationId,
63          java.lang.String parentOrganizationIdComparator, java.lang.String name,
64          java.lang.String type, java.lang.String street, java.lang.String city,
65          java.lang.String zip, java.lang.Long regionId,
66          java.lang.Long countryId,
67          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
68          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
72          long companyId, long parentOrganizationId,
73          java.lang.String parentOrganizationIdComparator,
74          java.lang.String[] names, java.lang.String type,
75          java.lang.String[] streets, java.lang.String[] cities,
76          java.lang.String[] zips, java.lang.Long regionId,
77          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.kernel.exception.SystemException;
81  }