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