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