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="PermissionPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface PermissionPersistence {
030: public com.liferay.portal.model.Permission create(long permissionId);
031:
032: public com.liferay.portal.model.Permission remove(long permissionId)
033: throws com.liferay.portal.SystemException,
034: com.liferay.portal.NoSuchPermissionException;
035:
036: public com.liferay.portal.model.Permission remove(
037: com.liferay.portal.model.Permission permission)
038: throws com.liferay.portal.SystemException;
039:
040: public com.liferay.portal.model.Permission update(
041: com.liferay.portal.model.Permission permission)
042: throws com.liferay.portal.SystemException;
043:
044: public com.liferay.portal.model.Permission update(
045: com.liferay.portal.model.Permission permission,
046: boolean merge) throws com.liferay.portal.SystemException;
047:
048: public com.liferay.portal.model.Permission updateImpl(
049: com.liferay.portal.model.Permission permission,
050: boolean merge) throws com.liferay.portal.SystemException;
051:
052: public com.liferay.portal.model.Permission findByPrimaryKey(
053: long permissionId)
054: throws com.liferay.portal.SystemException,
055: com.liferay.portal.NoSuchPermissionException;
056:
057: public com.liferay.portal.model.Permission fetchByPrimaryKey(
058: long permissionId)
059: throws com.liferay.portal.SystemException;
060:
061: public java.util.List findByResourceId(long resourceId)
062: throws com.liferay.portal.SystemException;
063:
064: public java.util.List findByResourceId(long resourceId, int begin,
065: int end) throws com.liferay.portal.SystemException;
066:
067: public java.util.List findByResourceId(long resourceId, int begin,
068: int end,
069: com.liferay.portal.kernel.util.OrderByComparator obc)
070: throws com.liferay.portal.SystemException;
071:
072: public com.liferay.portal.model.Permission findByResourceId_First(
073: long resourceId,
074: com.liferay.portal.kernel.util.OrderByComparator obc)
075: throws com.liferay.portal.SystemException,
076: com.liferay.portal.NoSuchPermissionException;
077:
078: public com.liferay.portal.model.Permission findByResourceId_Last(
079: long resourceId,
080: com.liferay.portal.kernel.util.OrderByComparator obc)
081: throws com.liferay.portal.SystemException,
082: com.liferay.portal.NoSuchPermissionException;
083:
084: public com.liferay.portal.model.Permission[] findByResourceId_PrevAndNext(
085: long permissionId, long resourceId,
086: com.liferay.portal.kernel.util.OrderByComparator obc)
087: throws com.liferay.portal.SystemException,
088: com.liferay.portal.NoSuchPermissionException;
089:
090: public com.liferay.portal.model.Permission findByA_R(
091: java.lang.String actionId, long resourceId)
092: throws com.liferay.portal.SystemException,
093: com.liferay.portal.NoSuchPermissionException;
094:
095: public com.liferay.portal.model.Permission fetchByA_R(
096: java.lang.String actionId, long resourceId)
097: throws com.liferay.portal.SystemException;
098:
099: public java.util.List findWithDynamicQuery(
100: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
101: throws com.liferay.portal.SystemException;
102:
103: public java.util.List findWithDynamicQuery(
104: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
105: int begin, int end)
106: throws com.liferay.portal.SystemException;
107:
108: public java.util.List findAll()
109: throws com.liferay.portal.SystemException;
110:
111: public java.util.List findAll(int begin, int end)
112: throws com.liferay.portal.SystemException;
113:
114: public java.util.List findAll(int begin, int end,
115: com.liferay.portal.kernel.util.OrderByComparator obc)
116: throws com.liferay.portal.SystemException;
117:
118: public void removeByResourceId(long resourceId)
119: throws com.liferay.portal.SystemException;
120:
121: public void removeByA_R(java.lang.String actionId, long resourceId)
122: throws com.liferay.portal.SystemException,
123: com.liferay.portal.NoSuchPermissionException;
124:
125: public void removeAll() throws com.liferay.portal.SystemException;
126:
127: public int countByResourceId(long resourceId)
128: throws com.liferay.portal.SystemException;
129:
130: public int countByA_R(java.lang.String actionId, long resourceId)
131: throws com.liferay.portal.SystemException;
132:
133: public int countAll() throws com.liferay.portal.SystemException;
134:
135: public java.util.List getGroups(long pk)
136: throws com.liferay.portal.SystemException,
137: com.liferay.portal.NoSuchPermissionException;
138:
139: public java.util.List getGroups(long pk, int begin, int end)
140: throws com.liferay.portal.SystemException,
141: com.liferay.portal.NoSuchPermissionException;
142:
143: public java.util.List getGroups(long pk, int begin, int end,
144: com.liferay.portal.kernel.util.OrderByComparator obc)
145: throws com.liferay.portal.SystemException,
146: com.liferay.portal.NoSuchPermissionException;
147:
148: public int getGroupsSize(long pk)
149: throws com.liferay.portal.SystemException;
150:
151: public boolean containsGroup(long pk, long groupPK)
152: throws com.liferay.portal.SystemException;
153:
154: public boolean containsGroups(long pk)
155: throws com.liferay.portal.SystemException;
156:
157: public void addGroup(long pk, long groupPK)
158: throws com.liferay.portal.SystemException,
159: com.liferay.portal.NoSuchGroupException,
160: com.liferay.portal.NoSuchPermissionException;
161:
162: public void addGroup(long pk, com.liferay.portal.model.Group group)
163: throws com.liferay.portal.SystemException,
164: com.liferay.portal.NoSuchGroupException,
165: com.liferay.portal.NoSuchPermissionException;
166:
167: public void addGroups(long pk, long[] groupPKs)
168: throws com.liferay.portal.SystemException,
169: com.liferay.portal.NoSuchGroupException,
170: com.liferay.portal.NoSuchPermissionException;
171:
172: public void addGroups(long pk, java.util.List groups)
173: throws com.liferay.portal.SystemException,
174: com.liferay.portal.NoSuchGroupException,
175: com.liferay.portal.NoSuchPermissionException;
176:
177: public void clearGroups(long pk)
178: throws com.liferay.portal.SystemException,
179: com.liferay.portal.NoSuchPermissionException;
180:
181: public void removeGroup(long pk, long groupPK)
182: throws com.liferay.portal.SystemException,
183: com.liferay.portal.NoSuchGroupException,
184: com.liferay.portal.NoSuchPermissionException;
185:
186: public void removeGroup(long pk,
187: com.liferay.portal.model.Group group)
188: throws com.liferay.portal.SystemException,
189: com.liferay.portal.NoSuchGroupException,
190: com.liferay.portal.NoSuchPermissionException;
191:
192: public void removeGroups(long pk, long[] groupPKs)
193: throws com.liferay.portal.SystemException,
194: com.liferay.portal.NoSuchGroupException,
195: com.liferay.portal.NoSuchPermissionException;
196:
197: public void removeGroups(long pk, java.util.List groups)
198: throws com.liferay.portal.SystemException,
199: com.liferay.portal.NoSuchGroupException,
200: com.liferay.portal.NoSuchPermissionException;
201:
202: public void setGroups(long pk, long[] groupPKs)
203: throws com.liferay.portal.SystemException,
204: com.liferay.portal.NoSuchGroupException,
205: com.liferay.portal.NoSuchPermissionException;
206:
207: public void setGroups(long pk, java.util.List groups)
208: throws com.liferay.portal.SystemException,
209: com.liferay.portal.NoSuchGroupException,
210: com.liferay.portal.NoSuchPermissionException;
211:
212: public java.util.List getRoles(long pk)
213: throws com.liferay.portal.SystemException,
214: com.liferay.portal.NoSuchPermissionException;
215:
216: public java.util.List getRoles(long pk, int begin, int end)
217: throws com.liferay.portal.SystemException,
218: com.liferay.portal.NoSuchPermissionException;
219:
220: public java.util.List getRoles(long pk, int begin, int end,
221: com.liferay.portal.kernel.util.OrderByComparator obc)
222: throws com.liferay.portal.SystemException,
223: com.liferay.portal.NoSuchPermissionException;
224:
225: public int getRolesSize(long pk)
226: throws com.liferay.portal.SystemException;
227:
228: public boolean containsRole(long pk, long rolePK)
229: throws com.liferay.portal.SystemException;
230:
231: public boolean containsRoles(long pk)
232: throws com.liferay.portal.SystemException;
233:
234: public void addRole(long pk, long rolePK)
235: throws com.liferay.portal.SystemException,
236: com.liferay.portal.NoSuchRoleException,
237: com.liferay.portal.NoSuchPermissionException;
238:
239: public void addRole(long pk, com.liferay.portal.model.Role role)
240: throws com.liferay.portal.SystemException,
241: com.liferay.portal.NoSuchRoleException,
242: com.liferay.portal.NoSuchPermissionException;
243:
244: public void addRoles(long pk, long[] rolePKs)
245: throws com.liferay.portal.SystemException,
246: com.liferay.portal.NoSuchRoleException,
247: com.liferay.portal.NoSuchPermissionException;
248:
249: public void addRoles(long pk, java.util.List roles)
250: throws com.liferay.portal.SystemException,
251: com.liferay.portal.NoSuchRoleException,
252: com.liferay.portal.NoSuchPermissionException;
253:
254: public void clearRoles(long pk)
255: throws com.liferay.portal.SystemException,
256: com.liferay.portal.NoSuchPermissionException;
257:
258: public void removeRole(long pk, long rolePK)
259: throws com.liferay.portal.SystemException,
260: com.liferay.portal.NoSuchRoleException,
261: com.liferay.portal.NoSuchPermissionException;
262:
263: public void removeRole(long pk, com.liferay.portal.model.Role role)
264: throws com.liferay.portal.SystemException,
265: com.liferay.portal.NoSuchRoleException,
266: com.liferay.portal.NoSuchPermissionException;
267:
268: public void removeRoles(long pk, long[] rolePKs)
269: throws com.liferay.portal.SystemException,
270: com.liferay.portal.NoSuchRoleException,
271: com.liferay.portal.NoSuchPermissionException;
272:
273: public void removeRoles(long pk, java.util.List roles)
274: throws com.liferay.portal.SystemException,
275: com.liferay.portal.NoSuchRoleException,
276: com.liferay.portal.NoSuchPermissionException;
277:
278: public void setRoles(long pk, long[] rolePKs)
279: throws com.liferay.portal.SystemException,
280: com.liferay.portal.NoSuchRoleException,
281: com.liferay.portal.NoSuchPermissionException;
282:
283: public void setRoles(long pk, java.util.List roles)
284: throws com.liferay.portal.SystemException,
285: com.liferay.portal.NoSuchRoleException,
286: com.liferay.portal.NoSuchPermissionException;
287:
288: public java.util.List getUsers(long pk)
289: throws com.liferay.portal.SystemException,
290: com.liferay.portal.NoSuchPermissionException;
291:
292: public java.util.List getUsers(long pk, int begin, int end)
293: throws com.liferay.portal.SystemException,
294: com.liferay.portal.NoSuchPermissionException;
295:
296: public java.util.List getUsers(long pk, int begin, int end,
297: com.liferay.portal.kernel.util.OrderByComparator obc)
298: throws com.liferay.portal.SystemException,
299: com.liferay.portal.NoSuchPermissionException;
300:
301: public int getUsersSize(long pk)
302: throws com.liferay.portal.SystemException;
303:
304: public boolean containsUser(long pk, long userPK)
305: throws com.liferay.portal.SystemException;
306:
307: public boolean containsUsers(long pk)
308: throws com.liferay.portal.SystemException;
309:
310: public void addUser(long pk, long userPK)
311: throws com.liferay.portal.SystemException,
312: com.liferay.portal.NoSuchPermissionException,
313: com.liferay.portal.NoSuchUserException;
314:
315: public void addUser(long pk, com.liferay.portal.model.User user)
316: throws com.liferay.portal.SystemException,
317: com.liferay.portal.NoSuchPermissionException,
318: com.liferay.portal.NoSuchUserException;
319:
320: public void addUsers(long pk, long[] userPKs)
321: throws com.liferay.portal.SystemException,
322: com.liferay.portal.NoSuchPermissionException,
323: com.liferay.portal.NoSuchUserException;
324:
325: public void addUsers(long pk, java.util.List users)
326: throws com.liferay.portal.SystemException,
327: com.liferay.portal.NoSuchPermissionException,
328: com.liferay.portal.NoSuchUserException;
329:
330: public void clearUsers(long pk)
331: throws com.liferay.portal.SystemException,
332: com.liferay.portal.NoSuchPermissionException;
333:
334: public void removeUser(long pk, long userPK)
335: throws com.liferay.portal.SystemException,
336: com.liferay.portal.NoSuchPermissionException,
337: com.liferay.portal.NoSuchUserException;
338:
339: public void removeUser(long pk, com.liferay.portal.model.User user)
340: throws com.liferay.portal.SystemException,
341: com.liferay.portal.NoSuchPermissionException,
342: com.liferay.portal.NoSuchUserException;
343:
344: public void removeUsers(long pk, long[] userPKs)
345: throws com.liferay.portal.SystemException,
346: com.liferay.portal.NoSuchPermissionException,
347: com.liferay.portal.NoSuchUserException;
348:
349: public void removeUsers(long pk, java.util.List users)
350: throws com.liferay.portal.SystemException,
351: com.liferay.portal.NoSuchPermissionException,
352: com.liferay.portal.NoSuchUserException;
353:
354: public void setUsers(long pk, long[] userPKs)
355: throws com.liferay.portal.SystemException,
356: com.liferay.portal.NoSuchPermissionException,
357: com.liferay.portal.NoSuchUserException;
358:
359: public void setUsers(long pk, java.util.List users)
360: throws com.liferay.portal.SystemException,
361: com.liferay.portal.NoSuchPermissionException,
362: com.liferay.portal.NoSuchUserException;
363: }
|