1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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  public interface OrganizationFinder {
31      public int countByKeywords(long companyId, long parentOrganizationId,
32          java.lang.String parentOrganizationIdComparator,
33          java.lang.String keywords, int type, java.lang.Long regionId,
34          java.lang.Long countryId, java.util.LinkedHashMap<String, Object> params)
35          throws com.liferay.portal.SystemException;
36  
37      public int countByO_U(long organizationId, long userId)
38          throws com.liferay.portal.SystemException;
39  
40      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
41          long parentOrganizationId,
42          java.lang.String parentOrganizationIdComparator, java.lang.String name,
43          int type, java.lang.String street, java.lang.String city,
44          java.lang.String zip, java.lang.Long regionId,
45          java.lang.Long countryId,
46          java.util.LinkedHashMap<String, Object> params, boolean andOperator)
47          throws com.liferay.portal.SystemException;
48  
49      public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
50          long parentOrganizationId,
51          java.lang.String parentOrganizationIdComparator,
52          java.lang.String[] names, int type, java.lang.String[] streets,
53          java.lang.String[] cities, java.lang.String[] zips,
54          java.lang.Long regionId, 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, int type, java.lang.Long regionId,
62          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          int 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, int type, java.lang.String[] streets,
81          java.lang.String[] cities, java.lang.String[] zips,
82          java.lang.Long regionId, java.lang.Long countryId,
83          java.util.LinkedHashMap<String, Object> params, boolean andOperator,
84          int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException;
86  }