001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="OrganizationPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface OrganizationPersistence {
030: public com.liferay.portal.model.Organization create(
031: long organizationId);
032:
033: public com.liferay.portal.model.Organization remove(
034: long organizationId)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchOrganizationException;
037:
038: public com.liferay.portal.model.Organization remove(
039: com.liferay.portal.model.Organization organization)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.Organization update(
043: com.liferay.portal.model.Organization organization)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.Organization update(
047: com.liferay.portal.model.Organization organization,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.Organization updateImpl(
051: com.liferay.portal.model.Organization organization,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.Organization findByPrimaryKey(
055: long organizationId)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchOrganizationException;
058:
059: public com.liferay.portal.model.Organization fetchByPrimaryKey(
060: long organizationId)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByCompanyId(long companyId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByCompanyId(long companyId, int begin,
067: int end) throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByCompanyId(long companyId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portal.model.Organization findByCompanyId_First(
075: long companyId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchOrganizationException;
079:
080: public com.liferay.portal.model.Organization findByCompanyId_Last(
081: long companyId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portal.NoSuchOrganizationException;
085:
086: public com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(
087: long organizationId, long companyId,
088: com.liferay.portal.kernel.util.OrderByComparator obc)
089: throws com.liferay.portal.SystemException,
090: com.liferay.portal.NoSuchOrganizationException;
091:
092: public java.util.List findByLocations(long companyId)
093: throws com.liferay.portal.SystemException;
094:
095: public java.util.List findByLocations(long companyId, int begin,
096: int end) throws com.liferay.portal.SystemException;
097:
098: public java.util.List findByLocations(long companyId, int begin,
099: int end,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException;
102:
103: public com.liferay.portal.model.Organization findByLocations_First(
104: long companyId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portal.NoSuchOrganizationException;
108:
109: public com.liferay.portal.model.Organization findByLocations_Last(
110: long companyId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portal.NoSuchOrganizationException;
114:
115: public com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(
116: long organizationId, long companyId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portal.NoSuchOrganizationException;
120:
121: public java.util.List findByC_P(long companyId,
122: long parentOrganizationId)
123: throws com.liferay.portal.SystemException;
124:
125: public java.util.List findByC_P(long companyId,
126: long parentOrganizationId, int begin, int end)
127: throws com.liferay.portal.SystemException;
128:
129: public java.util.List findByC_P(long companyId,
130: long parentOrganizationId, int begin, int end,
131: com.liferay.portal.kernel.util.OrderByComparator obc)
132: throws com.liferay.portal.SystemException;
133:
134: public com.liferay.portal.model.Organization findByC_P_First(
135: long companyId, long parentOrganizationId,
136: com.liferay.portal.kernel.util.OrderByComparator obc)
137: throws com.liferay.portal.SystemException,
138: com.liferay.portal.NoSuchOrganizationException;
139:
140: public com.liferay.portal.model.Organization findByC_P_Last(
141: long companyId, long parentOrganizationId,
142: com.liferay.portal.kernel.util.OrderByComparator obc)
143: throws com.liferay.portal.SystemException,
144: com.liferay.portal.NoSuchOrganizationException;
145:
146: public com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(
147: long organizationId, long companyId,
148: long parentOrganizationId,
149: com.liferay.portal.kernel.util.OrderByComparator obc)
150: throws com.liferay.portal.SystemException,
151: com.liferay.portal.NoSuchOrganizationException;
152:
153: public com.liferay.portal.model.Organization findByC_N(
154: long companyId, java.lang.String name)
155: throws com.liferay.portal.SystemException,
156: com.liferay.portal.NoSuchOrganizationException;
157:
158: public com.liferay.portal.model.Organization fetchByC_N(
159: long companyId, java.lang.String name)
160: throws com.liferay.portal.SystemException;
161:
162: public java.util.List findWithDynamicQuery(
163: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
164: throws com.liferay.portal.SystemException;
165:
166: public java.util.List findWithDynamicQuery(
167: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
168: int begin, int end)
169: throws com.liferay.portal.SystemException;
170:
171: public java.util.List findAll()
172: throws com.liferay.portal.SystemException;
173:
174: public java.util.List findAll(int begin, int end)
175: throws com.liferay.portal.SystemException;
176:
177: public java.util.List findAll(int begin, int end,
178: com.liferay.portal.kernel.util.OrderByComparator obc)
179: throws com.liferay.portal.SystemException;
180:
181: public void removeByCompanyId(long companyId)
182: throws com.liferay.portal.SystemException;
183:
184: public void removeByLocations(long companyId)
185: throws com.liferay.portal.SystemException;
186:
187: public void removeByC_P(long companyId, long parentOrganizationId)
188: throws com.liferay.portal.SystemException;
189:
190: public void removeByC_N(long companyId, java.lang.String name)
191: throws com.liferay.portal.SystemException,
192: com.liferay.portal.NoSuchOrganizationException;
193:
194: public void removeAll() throws com.liferay.portal.SystemException;
195:
196: public int countByCompanyId(long companyId)
197: throws com.liferay.portal.SystemException;
198:
199: public int countByLocations(long companyId)
200: throws com.liferay.portal.SystemException;
201:
202: public int countByC_P(long companyId, long parentOrganizationId)
203: throws com.liferay.portal.SystemException;
204:
205: public int countByC_N(long companyId, java.lang.String name)
206: throws com.liferay.portal.SystemException;
207:
208: public int countAll() throws com.liferay.portal.SystemException;
209:
210: public java.util.List getGroups(long pk)
211: throws com.liferay.portal.SystemException,
212: com.liferay.portal.NoSuchOrganizationException;
213:
214: public java.util.List getGroups(long pk, int begin, int end)
215: throws com.liferay.portal.SystemException,
216: com.liferay.portal.NoSuchOrganizationException;
217:
218: public java.util.List getGroups(long pk, int begin, int end,
219: com.liferay.portal.kernel.util.OrderByComparator obc)
220: throws com.liferay.portal.SystemException,
221: com.liferay.portal.NoSuchOrganizationException;
222:
223: public int getGroupsSize(long pk)
224: throws com.liferay.portal.SystemException;
225:
226: public boolean containsGroup(long pk, long groupPK)
227: throws com.liferay.portal.SystemException;
228:
229: public boolean containsGroups(long pk)
230: throws com.liferay.portal.SystemException;
231:
232: public void addGroup(long pk, long groupPK)
233: throws com.liferay.portal.SystemException,
234: com.liferay.portal.NoSuchGroupException,
235: com.liferay.portal.NoSuchOrganizationException;
236:
237: public void addGroup(long pk, com.liferay.portal.model.Group group)
238: throws com.liferay.portal.SystemException,
239: com.liferay.portal.NoSuchGroupException,
240: com.liferay.portal.NoSuchOrganizationException;
241:
242: public void addGroups(long pk, long[] groupPKs)
243: throws com.liferay.portal.SystemException,
244: com.liferay.portal.NoSuchGroupException,
245: com.liferay.portal.NoSuchOrganizationException;
246:
247: public void addGroups(long pk, java.util.List groups)
248: throws com.liferay.portal.SystemException,
249: com.liferay.portal.NoSuchGroupException,
250: com.liferay.portal.NoSuchOrganizationException;
251:
252: public void clearGroups(long pk)
253: throws com.liferay.portal.SystemException,
254: com.liferay.portal.NoSuchOrganizationException;
255:
256: public void removeGroup(long pk, long groupPK)
257: throws com.liferay.portal.SystemException,
258: com.liferay.portal.NoSuchGroupException,
259: com.liferay.portal.NoSuchOrganizationException;
260:
261: public void removeGroup(long pk,
262: com.liferay.portal.model.Group group)
263: throws com.liferay.portal.SystemException,
264: com.liferay.portal.NoSuchGroupException,
265: com.liferay.portal.NoSuchOrganizationException;
266:
267: public void removeGroups(long pk, long[] groupPKs)
268: throws com.liferay.portal.SystemException,
269: com.liferay.portal.NoSuchGroupException,
270: com.liferay.portal.NoSuchOrganizationException;
271:
272: public void removeGroups(long pk, java.util.List groups)
273: throws com.liferay.portal.SystemException,
274: com.liferay.portal.NoSuchGroupException,
275: com.liferay.portal.NoSuchOrganizationException;
276:
277: public void setGroups(long pk, long[] groupPKs)
278: throws com.liferay.portal.SystemException,
279: com.liferay.portal.NoSuchGroupException,
280: com.liferay.portal.NoSuchOrganizationException;
281:
282: public void setGroups(long pk, java.util.List groups)
283: throws com.liferay.portal.SystemException,
284: com.liferay.portal.NoSuchGroupException,
285: com.liferay.portal.NoSuchOrganizationException;
286:
287: public java.util.List getUsers(long pk)
288: throws com.liferay.portal.SystemException,
289: com.liferay.portal.NoSuchOrganizationException;
290:
291: public java.util.List getUsers(long pk, int begin, int end)
292: throws com.liferay.portal.SystemException,
293: com.liferay.portal.NoSuchOrganizationException;
294:
295: public java.util.List getUsers(long pk, int begin, int end,
296: com.liferay.portal.kernel.util.OrderByComparator obc)
297: throws com.liferay.portal.SystemException,
298: com.liferay.portal.NoSuchOrganizationException;
299:
300: public int getUsersSize(long pk)
301: throws com.liferay.portal.SystemException;
302:
303: public boolean containsUser(long pk, long userPK)
304: throws com.liferay.portal.SystemException;
305:
306: public boolean containsUsers(long pk)
307: throws com.liferay.portal.SystemException;
308:
309: public void addUser(long pk, long userPK)
310: throws com.liferay.portal.SystemException,
311: com.liferay.portal.NoSuchOrganizationException,
312: com.liferay.portal.NoSuchUserException;
313:
314: public void addUser(long pk, com.liferay.portal.model.User user)
315: throws com.liferay.portal.SystemException,
316: com.liferay.portal.NoSuchOrganizationException,
317: com.liferay.portal.NoSuchUserException;
318:
319: public void addUsers(long pk, long[] userPKs)
320: throws com.liferay.portal.SystemException,
321: com.liferay.portal.NoSuchOrganizationException,
322: com.liferay.portal.NoSuchUserException;
323:
324: public void addUsers(long pk, java.util.List users)
325: throws com.liferay.portal.SystemException,
326: com.liferay.portal.NoSuchOrganizationException,
327: com.liferay.portal.NoSuchUserException;
328:
329: public void clearUsers(long pk)
330: throws com.liferay.portal.SystemException,
331: com.liferay.portal.NoSuchOrganizationException;
332:
333: public void removeUser(long pk, long userPK)
334: throws com.liferay.portal.SystemException,
335: com.liferay.portal.NoSuchOrganizationException,
336: com.liferay.portal.NoSuchUserException;
337:
338: public void removeUser(long pk, com.liferay.portal.model.User user)
339: throws com.liferay.portal.SystemException,
340: com.liferay.portal.NoSuchOrganizationException,
341: com.liferay.portal.NoSuchUserException;
342:
343: public void removeUsers(long pk, long[] userPKs)
344: throws com.liferay.portal.SystemException,
345: com.liferay.portal.NoSuchOrganizationException,
346: com.liferay.portal.NoSuchUserException;
347:
348: public void removeUsers(long pk, java.util.List users)
349: throws com.liferay.portal.SystemException,
350: com.liferay.portal.NoSuchOrganizationException,
351: com.liferay.portal.NoSuchUserException;
352:
353: public void setUsers(long pk, long[] userPKs)
354: throws com.liferay.portal.SystemException,
355: com.liferay.portal.NoSuchOrganizationException,
356: com.liferay.portal.NoSuchUserException;
357:
358: public void setUsers(long pk, java.util.List users)
359: throws com.liferay.portal.SystemException,
360: com.liferay.portal.NoSuchOrganizationException,
361: com.liferay.portal.NoSuchUserException;
362: }
|