001    /**
002     * Copyright (c) 2000-2011 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> 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    }