1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.model.UserGroup;
26  
27  /**
28   * <a href="UserGroupPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       UserGroupPersistenceImpl
37   * @see       UserGroupUtil
38   * @generated
39   */
40  public interface UserGroupPersistence extends BasePersistence<UserGroup> {
41      public void cacheResult(com.liferay.portal.model.UserGroup userGroup);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.UserGroup> userGroups);
45  
46      public com.liferay.portal.model.UserGroup create(long userGroupId);
47  
48      public com.liferay.portal.model.UserGroup remove(long userGroupId)
49          throws com.liferay.portal.NoSuchUserGroupException,
50              com.liferay.portal.SystemException;
51  
52      /**
53       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
54       */
55      public com.liferay.portal.model.UserGroup update(
56          com.liferay.portal.model.UserGroup userGroup)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.UserGroup updateImpl(
60          com.liferay.portal.model.UserGroup userGroup, boolean merge)
61          throws com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
64          throws com.liferay.portal.NoSuchUserGroupException,
65              com.liferay.portal.SystemException;
66  
67      public com.liferay.portal.model.UserGroup fetchByPrimaryKey(
68          long userGroupId) throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
71          long companyId) throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
74          long companyId, int start, int end)
75          throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
78          long companyId, int start, int end,
79          com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portal.model.UserGroup findByCompanyId_First(
83          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.NoSuchUserGroupException,
85              com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.UserGroup findByCompanyId_Last(
88          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.NoSuchUserGroupException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
93          long userGroupId, long companyId,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.NoSuchUserGroupException,
96              com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
99          long companyId, long parentUserGroupId)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
103         long companyId, long parentUserGroupId, int start, int end)
104         throws com.liferay.portal.SystemException;
105 
106     public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
107         long companyId, long parentUserGroupId, int start, int end,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
112         long parentUserGroupId,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchUserGroupException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
118         long parentUserGroupId,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.NoSuchUserGroupException,
121             com.liferay.portal.SystemException;
122 
123     public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
124         long userGroupId, long companyId, long parentUserGroupId,
125         com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.NoSuchUserGroupException,
127             com.liferay.portal.SystemException;
128 
129     public com.liferay.portal.model.UserGroup findByC_N(long companyId,
130         java.lang.String name)
131         throws com.liferay.portal.NoSuchUserGroupException,
132             com.liferay.portal.SystemException;
133 
134     public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
135         java.lang.String name) throws com.liferay.portal.SystemException;
136 
137     public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
138         java.lang.String name, boolean retrieveFromCache)
139         throws com.liferay.portal.SystemException;
140 
141     public java.util.List<com.liferay.portal.model.UserGroup> findAll()
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portal.model.UserGroup> findAll(
145         int start, int end) throws com.liferay.portal.SystemException;
146 
147     public java.util.List<com.liferay.portal.model.UserGroup> findAll(
148         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException;
150 
151     public void removeByCompanyId(long companyId)
152         throws com.liferay.portal.SystemException;
153 
154     public void removeByC_P(long companyId, long parentUserGroupId)
155         throws com.liferay.portal.SystemException;
156 
157     public void removeByC_N(long companyId, java.lang.String name)
158         throws com.liferay.portal.NoSuchUserGroupException,
159             com.liferay.portal.SystemException;
160 
161     public void removeAll() throws com.liferay.portal.SystemException;
162 
163     public int countByCompanyId(long companyId)
164         throws com.liferay.portal.SystemException;
165 
166     public int countByC_P(long companyId, long parentUserGroupId)
167         throws com.liferay.portal.SystemException;
168 
169     public int countByC_N(long companyId, java.lang.String name)
170         throws com.liferay.portal.SystemException;
171 
172     public int countAll() throws com.liferay.portal.SystemException;
173 
174     public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
175         throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
178         int start, int end) throws com.liferay.portal.SystemException;
179 
180     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
181         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException;
183 
184     public int getUsersSize(long pk) throws com.liferay.portal.SystemException;
185 
186     public boolean containsUser(long pk, long userPK)
187         throws com.liferay.portal.SystemException;
188 
189     public boolean containsUsers(long pk)
190         throws com.liferay.portal.SystemException;
191 
192     public void addUser(long pk, long userPK)
193         throws com.liferay.portal.SystemException;
194 
195     public void addUser(long pk, com.liferay.portal.model.User user)
196         throws com.liferay.portal.SystemException;
197 
198     public void addUsers(long pk, long[] userPKs)
199         throws com.liferay.portal.SystemException;
200 
201     public void addUsers(long pk,
202         java.util.List<com.liferay.portal.model.User> users)
203         throws com.liferay.portal.SystemException;
204 
205     public void clearUsers(long pk) throws com.liferay.portal.SystemException;
206 
207     public void removeUser(long pk, long userPK)
208         throws com.liferay.portal.SystemException;
209 
210     public void removeUser(long pk, com.liferay.portal.model.User user)
211         throws com.liferay.portal.SystemException;
212 
213     public void removeUsers(long pk, long[] userPKs)
214         throws com.liferay.portal.SystemException;
215 
216     public void removeUsers(long pk,
217         java.util.List<com.liferay.portal.model.User> users)
218         throws com.liferay.portal.SystemException;
219 
220     public void setUsers(long pk, long[] userPKs)
221         throws com.liferay.portal.SystemException;
222 
223     public void setUsers(long pk,
224         java.util.List<com.liferay.portal.model.User> users)
225         throws com.liferay.portal.SystemException;
226 }