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  import com.liferay.portal.model.Organization;
18  
19  /**
20   * <a href="OrganizationPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       OrganizationPersistenceImpl
29   * @see       OrganizationUtil
30   * @generated
31   */
32  public interface OrganizationPersistence extends BasePersistence<Organization> {
33      public void cacheResult(com.liferay.portal.model.Organization organization);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.Organization> organizations);
37  
38      public com.liferay.portal.model.Organization create(long organizationId);
39  
40      public com.liferay.portal.model.Organization remove(long organizationId)
41          throws com.liferay.portal.NoSuchOrganizationException,
42              com.liferay.portal.kernel.exception.SystemException;
43  
44      public com.liferay.portal.model.Organization updateImpl(
45          com.liferay.portal.model.Organization organization, boolean merge)
46          throws com.liferay.portal.kernel.exception.SystemException;
47  
48      public com.liferay.portal.model.Organization findByPrimaryKey(
49          long organizationId)
50          throws com.liferay.portal.NoSuchOrganizationException,
51              com.liferay.portal.kernel.exception.SystemException;
52  
53      public com.liferay.portal.model.Organization fetchByPrimaryKey(
54          long organizationId)
55          throws com.liferay.portal.kernel.exception.SystemException;
56  
57      public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(
58          long companyId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(
62          long companyId, int start, int end)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(
66          long companyId, int start, int end,
67          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
68          throws com.liferay.portal.kernel.exception.SystemException;
69  
70      public com.liferay.portal.model.Organization findByCompanyId_First(
71          long companyId,
72          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
73          throws com.liferay.portal.NoSuchOrganizationException,
74              com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portal.model.Organization findByCompanyId_Last(
77          long companyId,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.NoSuchOrganizationException,
80              com.liferay.portal.kernel.exception.SystemException;
81  
82      public com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(
83          long organizationId, long companyId,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.NoSuchOrganizationException,
86              com.liferay.portal.kernel.exception.SystemException;
87  
88      public java.util.List<com.liferay.portal.model.Organization> findByLocations(
89          long companyId)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public java.util.List<com.liferay.portal.model.Organization> findByLocations(
93          long companyId, int start, int end)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.Organization> findByLocations(
97          long companyId, int start, int end,
98          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
99          throws com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portal.model.Organization findByLocations_First(
102         long companyId,
103         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104         throws com.liferay.portal.NoSuchOrganizationException,
105             com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portal.model.Organization findByLocations_Last(
108         long companyId,
109         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110         throws com.liferay.portal.NoSuchOrganizationException,
111             com.liferay.portal.kernel.exception.SystemException;
112 
113     public com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(
114         long organizationId, long companyId,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.NoSuchOrganizationException,
117             com.liferay.portal.kernel.exception.SystemException;
118 
119     public java.util.List<com.liferay.portal.model.Organization> findByC_P(
120         long companyId, long parentOrganizationId)
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.Organization> findByC_P(
124         long companyId, long parentOrganizationId, int start, int end)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public java.util.List<com.liferay.portal.model.Organization> findByC_P(
128         long companyId, long parentOrganizationId, int start, int end,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public com.liferay.portal.model.Organization findByC_P_First(
133         long companyId, long parentOrganizationId,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.NoSuchOrganizationException,
136             com.liferay.portal.kernel.exception.SystemException;
137 
138     public com.liferay.portal.model.Organization findByC_P_Last(
139         long companyId, long parentOrganizationId,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.NoSuchOrganizationException,
142             com.liferay.portal.kernel.exception.SystemException;
143 
144     public com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(
145         long organizationId, long companyId, long parentOrganizationId,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.NoSuchOrganizationException,
148             com.liferay.portal.kernel.exception.SystemException;
149 
150     public com.liferay.portal.model.Organization findByC_N(long companyId,
151         java.lang.String name)
152         throws com.liferay.portal.NoSuchOrganizationException,
153             com.liferay.portal.kernel.exception.SystemException;
154 
155     public com.liferay.portal.model.Organization fetchByC_N(long companyId,
156         java.lang.String name)
157         throws com.liferay.portal.kernel.exception.SystemException;
158 
159     public com.liferay.portal.model.Organization fetchByC_N(long companyId,
160         java.lang.String name, boolean retrieveFromCache)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public java.util.List<com.liferay.portal.model.Organization> findAll()
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public java.util.List<com.liferay.portal.model.Organization> findAll(
167         int start, int end)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public java.util.List<com.liferay.portal.model.Organization> findAll(
171         int start, int end,
172         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public void removeByCompanyId(long companyId)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public void removeByLocations(long companyId)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public void removeByC_P(long companyId, long parentOrganizationId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public void removeByC_N(long companyId, java.lang.String name)
185         throws com.liferay.portal.NoSuchOrganizationException,
186             com.liferay.portal.kernel.exception.SystemException;
187 
188     public void removeAll()
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public int countByCompanyId(long companyId)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public int countByLocations(long companyId)
195         throws com.liferay.portal.kernel.exception.SystemException;
196 
197     public int countByC_P(long companyId, long parentOrganizationId)
198         throws com.liferay.portal.kernel.exception.SystemException;
199 
200     public int countByC_N(long companyId, java.lang.String name)
201         throws com.liferay.portal.kernel.exception.SystemException;
202 
203     public int countAll()
204         throws com.liferay.portal.kernel.exception.SystemException;
205 
206     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
207         throws com.liferay.portal.kernel.exception.SystemException;
208 
209     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
210         int start, int end)
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
214         int start, int end,
215         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
216         throws com.liferay.portal.kernel.exception.SystemException;
217 
218     public int getGroupsSize(long pk)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public boolean containsGroup(long pk, long groupPK)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 
224     public boolean containsGroups(long pk)
225         throws com.liferay.portal.kernel.exception.SystemException;
226 
227     public void addGroup(long pk, long groupPK)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public void addGroup(long pk, com.liferay.portal.model.Group group)
231         throws com.liferay.portal.kernel.exception.SystemException;
232 
233     public void addGroups(long pk, long[] groupPKs)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public void addGroups(long pk,
237         java.util.List<com.liferay.portal.model.Group> groups)
238         throws com.liferay.portal.kernel.exception.SystemException;
239 
240     public void clearGroups(long pk)
241         throws com.liferay.portal.kernel.exception.SystemException;
242 
243     public void removeGroup(long pk, long groupPK)
244         throws com.liferay.portal.kernel.exception.SystemException;
245 
246     public void removeGroup(long pk, com.liferay.portal.model.Group group)
247         throws com.liferay.portal.kernel.exception.SystemException;
248 
249     public void removeGroups(long pk, long[] groupPKs)
250         throws com.liferay.portal.kernel.exception.SystemException;
251 
252     public void removeGroups(long pk,
253         java.util.List<com.liferay.portal.model.Group> groups)
254         throws com.liferay.portal.kernel.exception.SystemException;
255 
256     public void setGroups(long pk, long[] groupPKs)
257         throws com.liferay.portal.kernel.exception.SystemException;
258 
259     public void setGroups(long pk,
260         java.util.List<com.liferay.portal.model.Group> groups)
261         throws com.liferay.portal.kernel.exception.SystemException;
262 
263     public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
264         throws com.liferay.portal.kernel.exception.SystemException;
265 
266     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
267         int start, int end)
268         throws com.liferay.portal.kernel.exception.SystemException;
269 
270     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
271         int start, int end,
272         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273         throws com.liferay.portal.kernel.exception.SystemException;
274 
275     public int getUsersSize(long pk)
276         throws com.liferay.portal.kernel.exception.SystemException;
277 
278     public boolean containsUser(long pk, long userPK)
279         throws com.liferay.portal.kernel.exception.SystemException;
280 
281     public boolean containsUsers(long pk)
282         throws com.liferay.portal.kernel.exception.SystemException;
283 
284     public void addUser(long pk, long userPK)
285         throws com.liferay.portal.kernel.exception.SystemException;
286 
287     public void addUser(long pk, com.liferay.portal.model.User user)
288         throws com.liferay.portal.kernel.exception.SystemException;
289 
290     public void addUsers(long pk, long[] userPKs)
291         throws com.liferay.portal.kernel.exception.SystemException;
292 
293     public void addUsers(long pk,
294         java.util.List<com.liferay.portal.model.User> users)
295         throws com.liferay.portal.kernel.exception.SystemException;
296 
297     public void clearUsers(long pk)
298         throws com.liferay.portal.kernel.exception.SystemException;
299 
300     public void removeUser(long pk, long userPK)
301         throws com.liferay.portal.kernel.exception.SystemException;
302 
303     public void removeUser(long pk, com.liferay.portal.model.User user)
304         throws com.liferay.portal.kernel.exception.SystemException;
305 
306     public void removeUsers(long pk, long[] userPKs)
307         throws com.liferay.portal.kernel.exception.SystemException;
308 
309     public void removeUsers(long pk,
310         java.util.List<com.liferay.portal.model.User> users)
311         throws com.liferay.portal.kernel.exception.SystemException;
312 
313     public void setUsers(long pk, long[] userPKs)
314         throws com.liferay.portal.kernel.exception.SystemException;
315 
316     public void setUsers(long pk,
317         java.util.List<com.liferay.portal.model.User> users)
318         throws com.liferay.portal.kernel.exception.SystemException;
319 
320     public void rebuildTree(long companyId, boolean force)
321         throws com.liferay.portal.kernel.exception.SystemException;
322 }