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> findByLayouts(
042                    long companyId, long parentGroupId, boolean site, int start, int end,
043                    com.liferay.portal.kernel.util.OrderByComparator obc)
044                    throws com.liferay.portal.kernel.exception.SystemException;
045    
046            public java.util.List<com.liferay.portal.model.Group> findByLiveGroups()
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public java.util.List<com.liferay.portal.model.Group> findByNoLayouts(
050                    long classNameId, boolean privateLayout, int start, int end)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portal.model.Group> findByNullFriendlyURL()
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portal.model.Group> findBySystem(
057                    long companyId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portal.model.Group> findByCompanyId(
061                    long companyId,
062                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
063                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public java.util.List<java.lang.Long> findByC_P(long companyId,
067                    long parentGroupId, long previousGroupId, int size)
068                    throws com.liferay.portal.kernel.exception.SystemException;
069    
070            public com.liferay.portal.model.Group findByC_N(long companyId,
071                    java.lang.String name)
072                    throws com.liferay.portal.NoSuchGroupException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            public java.util.List<com.liferay.portal.model.Group> findByC_C_PG_N_D(
076                    long companyId, long[] classNameIds, long parentGroupId,
077                    java.lang.String[] names, java.lang.String[] descriptions,
078                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
079                    boolean andOperator, int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator obc)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    }