001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public interface OrganizationFinder {
021            public int countByKeywords(long companyId, long parentOrganizationId,
022                    java.lang.String parentOrganizationIdComparator,
023                    java.lang.String keywords, java.lang.String type,
024                    java.lang.Long regionId, java.lang.Long countryId,
025                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
026                    throws com.liferay.portal.kernel.exception.SystemException;
027    
028            public int countByO_U(long organizationId, long userId)
029                    throws com.liferay.portal.kernel.exception.SystemException;
030    
031            public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
032                    long parentOrganizationId,
033                    java.lang.String parentOrganizationIdComparator, java.lang.String name,
034                    java.lang.String type, java.lang.String street, java.lang.String city,
035                    java.lang.String zip, java.lang.Long regionId,
036                    java.lang.Long countryId,
037                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
038                    boolean andOperator)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
042                    long parentOrganizationId,
043                    java.lang.String parentOrganizationIdComparator,
044                    java.lang.String[] names, java.lang.String type,
045                    java.lang.String[] streets, java.lang.String[] cities,
046                    java.lang.String[] zips, java.lang.Long regionId,
047                    java.lang.Long countryId,
048                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
049                    boolean andOperator)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(
053                    long companyId,
054                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
055                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portal.model.Organization> findByKeywords(
059                    long companyId, long parentOrganizationId,
060                    java.lang.String parentOrganizationIdComparator,
061                    java.lang.String keywords, java.lang.String type,
062                    java.lang.Long regionId, java.lang.Long countryId,
063                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
064                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
068                    long companyId, long parentOrganizationId,
069                    java.lang.String parentOrganizationIdComparator, java.lang.String name,
070                    java.lang.String type, java.lang.String street, java.lang.String city,
071                    java.lang.String zip, java.lang.Long regionId,
072                    java.lang.Long countryId,
073                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
074                    boolean andOperator, int start, int end,
075                    com.liferay.portal.kernel.util.OrderByComparator obc)
076                    throws com.liferay.portal.kernel.exception.SystemException;
077    
078            public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
079                    long companyId, long parentOrganizationId,
080                    java.lang.String parentOrganizationIdComparator,
081                    java.lang.String[] names, java.lang.String type,
082                    java.lang.String[] streets, java.lang.String[] cities,
083                    java.lang.String[] zips, java.lang.Long regionId,
084                    java.lang.Long countryId,
085                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
086                    boolean andOperator, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator obc)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    }