001    /**
002     * Copyright (c) 2000-2010 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> findByKeywords(
053                    long companyId, long parentOrganizationId,
054                    java.lang.String parentOrganizationIdComparator,
055                    java.lang.String keywords, java.lang.String type,
056                    java.lang.Long regionId, java.lang.Long countryId,
057                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
058                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
062                    long companyId, long parentOrganizationId,
063                    java.lang.String parentOrganizationIdComparator, java.lang.String name,
064                    java.lang.String type, java.lang.String street, java.lang.String city,
065                    java.lang.String zip, java.lang.Long regionId,
066                    java.lang.Long countryId,
067                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
068                    boolean andOperator, int start, int end,
069                    com.liferay.portal.kernel.util.OrderByComparator obc)
070                    throws com.liferay.portal.kernel.exception.SystemException;
071    
072            public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
073                    long companyId, long parentOrganizationId,
074                    java.lang.String parentOrganizationIdComparator,
075                    java.lang.String[] names, java.lang.String type,
076                    java.lang.String[] streets, java.lang.String[] cities,
077                    java.lang.String[] zips, java.lang.Long regionId,
078                    java.lang.Long countryId,
079                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
080                    boolean andOperator, int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator obc)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    }