001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }