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 GroupFinder {
024            public int countByLayouts(long companyId, long parentGroupId, boolean site)
025                    throws com.liferay.portal.kernel.exception.SystemException;
026    
027            public int countByG_U(long groupId, long userId, boolean inherit)
028                    throws com.liferay.portal.kernel.exception.SystemException;
029    
030            public int countByC_C_PG_N_D(long companyId, long[] classNameIds,
031                    long parentGroupId, java.lang.String[] names,
032                    java.lang.String[] descriptions,
033                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
034                    boolean andOperator)
035                    throws com.liferay.portal.kernel.exception.SystemException;
036    
037            public java.util.List<com.liferay.portal.model.Group> findByLayouts(
038                    long companyId, long parentGroupId, boolean site, int start, int end)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public java.util.List<com.liferay.portal.model.Group> findByLiveGroups()
042                    throws com.liferay.portal.kernel.exception.SystemException;
043    
044            public java.util.List<com.liferay.portal.model.Group> findByNoLayouts(
045                    long classNameId, boolean privateLayout, int start, int end)
046                    throws com.liferay.portal.kernel.exception.SystemException;
047    
048            public java.util.List<com.liferay.portal.model.Group> findByNullFriendlyURL()
049                    throws com.liferay.portal.kernel.exception.SystemException;
050    
051            public java.util.List<com.liferay.portal.model.Group> findBySystem(
052                    long companyId)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
056                    long companyId,
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<java.lang.Long> findByC_P(long companyId,
062                    long parentGroupId, long previousGroupId, int size)
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    
065            public com.liferay.portal.model.Group findByC_N(long companyId,
066                    java.lang.String name)
067                    throws com.liferay.portal.NoSuchGroupException,
068                            com.liferay.portal.kernel.exception.SystemException;
069    
070            public java.util.List<com.liferay.portal.model.Group> findByC_C_PG_N_D(
071                    long companyId, long[] classNameIds, long parentGroupId,
072                    java.lang.String[] names, java.lang.String[] descriptions,
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    }