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    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    @ProviderType
023    public interface OrganizationFinder {
024            public int countByKeywords(long companyId, long parentOrganizationId,
025                    java.lang.String parentOrganizationIdComparator,
026                    java.lang.String keywords, java.lang.String type,
027                    java.lang.Long regionId, java.lang.Long countryId,
028                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
029                    throws com.liferay.portal.kernel.exception.SystemException;
030    
031            public int countByO_U(long organizationId, long userId)
032                    throws com.liferay.portal.kernel.exception.SystemException;
033    
034            public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
035                    long parentOrganizationId,
036                    java.lang.String parentOrganizationIdComparator, java.lang.String name,
037                    java.lang.String type, java.lang.String street, java.lang.String city,
038                    java.lang.String zip, java.lang.Long regionId,
039                    java.lang.Long countryId,
040                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
041                    boolean andOperator)
042                    throws com.liferay.portal.kernel.exception.SystemException;
043    
044            public int countByC_PO_N_T_S_C_Z_R_C(long companyId,
045                    long parentOrganizationId,
046                    java.lang.String parentOrganizationIdComparator,
047                    java.lang.String[] names, java.lang.String type,
048                    java.lang.String[] streets, java.lang.String[] cities,
049                    java.lang.String[] zips, java.lang.Long regionId,
050                    java.lang.Long countryId,
051                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
052                    boolean andOperator)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portal.model.Organization> findByKeywords(
056                    long companyId, long parentOrganizationId,
057                    java.lang.String parentOrganizationIdComparator,
058                    java.lang.String keywords, java.lang.String type,
059                    java.lang.Long regionId, java.lang.Long countryId,
060                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
061                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portal.model.Organization> findByNoAssets()
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public java.util.List<java.lang.Long> findByC_P(long companyId,
068                    long parentOrganizationId, long previousOrganizationId, int size)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
072                    long companyId, long parentOrganizationId,
073                    java.lang.String parentOrganizationIdComparator, java.lang.String name,
074                    java.lang.String type, java.lang.String street, java.lang.String city,
075                    java.lang.String zip, java.lang.Long regionId,
076                    java.lang.Long countryId,
077                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
078                    boolean andOperator, int start, int end,
079                    com.liferay.portal.kernel.util.OrderByComparator obc)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            public java.util.List<com.liferay.portal.model.Organization> findByC_PO_N_T_S_C_Z_R_C(
083                    long companyId, long parentOrganizationId,
084                    java.lang.String parentOrganizationIdComparator,
085                    java.lang.String[] names, java.lang.String type,
086                    java.lang.String[] streets, java.lang.String[] cities,
087                    java.lang.String[] zips, java.lang.Long regionId,
088                    java.lang.Long countryId,
089                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
090                    boolean andOperator, int start, int end,
091                    com.liferay.portal.kernel.util.OrderByComparator obc)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    }