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