1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  /**
18   * <a href="GroupFinder.java.html"><b><i>View Source</i></b></a>
19   *
20   * @author Brian Wing Shun Chan
21   */
22  public interface GroupFinder {
23      public int countByG_U(long groupId, long userId)
24          throws com.liferay.portal.kernel.exception.SystemException;
25  
26      public int countByC_N_D(long companyId, java.lang.String name,
27          java.lang.String description,
28          java.util.LinkedHashMap<String, Object> params)
29          throws com.liferay.portal.kernel.exception.SystemException;
30  
31      public java.util.List<com.liferay.portal.model.Group> findByNoLayouts(
32          long classNameId, boolean privateLayout, int start, int end)
33          throws com.liferay.portal.kernel.exception.SystemException;
34  
35      public java.util.List<com.liferay.portal.model.Group> findByNullFriendlyURL()
36          throws com.liferay.portal.kernel.exception.SystemException;
37  
38      public java.util.List<com.liferay.portal.model.Group> findBySystem(
39          long companyId)
40          throws com.liferay.portal.kernel.exception.SystemException;
41  
42      public com.liferay.portal.model.Group findByC_N(long companyId,
43          java.lang.String name)
44          throws com.liferay.portal.NoSuchGroupException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public java.util.List<com.liferay.portal.model.Group> findByC_N_D(
48          long companyId, java.lang.String name, java.lang.String description,
49          java.util.LinkedHashMap<String, Object> params, int start, int end,
50          com.liferay.portal.kernel.util.OrderByComparator obc)
51          throws com.liferay.portal.kernel.exception.SystemException;
52  }