1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public interface RolePersistence {
32 public com.liferay.portal.model.Role create(long roleId);
33
34 public com.liferay.portal.model.Role remove(long roleId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portal.NoSuchRoleException;
37
38 public com.liferay.portal.model.Role remove(
39 com.liferay.portal.model.Role role)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portal.model.Role update(
43 com.liferay.portal.model.Role role)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portal.model.Role update(
47 com.liferay.portal.model.Role role, boolean merge)
48 throws com.liferay.portal.SystemException;
49
50 public com.liferay.portal.model.Role updateImpl(
51 com.liferay.portal.model.Role role, boolean merge)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portal.model.Role findByPrimaryKey(long roleId)
55 throws com.liferay.portal.SystemException,
56 com.liferay.portal.NoSuchRoleException;
57
58 public com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
59 throws com.liferay.portal.SystemException;
60
61 public java.util.List findByCompanyId(long companyId)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List findByCompanyId(long companyId, int begin, int end)
65 throws com.liferay.portal.SystemException;
66
67 public java.util.List findByCompanyId(long companyId, int begin, int end,
68 com.liferay.portal.kernel.util.OrderByComparator obc)
69 throws com.liferay.portal.SystemException;
70
71 public com.liferay.portal.model.Role findByCompanyId_First(long companyId,
72 com.liferay.portal.kernel.util.OrderByComparator obc)
73 throws com.liferay.portal.SystemException,
74 com.liferay.portal.NoSuchRoleException;
75
76 public com.liferay.portal.model.Role findByCompanyId_Last(long companyId,
77 com.liferay.portal.kernel.util.OrderByComparator obc)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portal.NoSuchRoleException;
80
81 public com.liferay.portal.model.Role[] findByCompanyId_PrevAndNext(
82 long roleId, long companyId,
83 com.liferay.portal.kernel.util.OrderByComparator obc)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.NoSuchRoleException;
86
87 public com.liferay.portal.model.Role findByC_N(long companyId,
88 java.lang.String name)
89 throws com.liferay.portal.SystemException,
90 com.liferay.portal.NoSuchRoleException;
91
92 public com.liferay.portal.model.Role fetchByC_N(long companyId,
93 java.lang.String name) throws com.liferay.portal.SystemException;
94
95 public com.liferay.portal.model.Role findByC_C_C(long companyId,
96 long classNameId, long classPK)
97 throws com.liferay.portal.SystemException,
98 com.liferay.portal.NoSuchRoleException;
99
100 public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
101 long classNameId, long classPK)
102 throws com.liferay.portal.SystemException;
103
104 public java.util.List findWithDynamicQuery(
105 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
106 throws com.liferay.portal.SystemException;
107
108 public java.util.List findWithDynamicQuery(
109 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
110 int begin, int end) throws com.liferay.portal.SystemException;
111
112 public java.util.List findAll() throws com.liferay.portal.SystemException;
113
114 public java.util.List findAll(int begin, int end)
115 throws com.liferay.portal.SystemException;
116
117 public java.util.List findAll(int begin, int end,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException;
120
121 public void removeByCompanyId(long companyId)
122 throws com.liferay.portal.SystemException;
123
124 public void removeByC_N(long companyId, java.lang.String name)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portal.NoSuchRoleException;
127
128 public void removeByC_C_C(long companyId, long classNameId, long classPK)
129 throws com.liferay.portal.SystemException,
130 com.liferay.portal.NoSuchRoleException;
131
132 public void removeAll() throws com.liferay.portal.SystemException;
133
134 public int countByCompanyId(long companyId)
135 throws com.liferay.portal.SystemException;
136
137 public int countByC_N(long companyId, java.lang.String name)
138 throws com.liferay.portal.SystemException;
139
140 public int countByC_C_C(long companyId, long classNameId, long classPK)
141 throws com.liferay.portal.SystemException;
142
143 public int countAll() throws com.liferay.portal.SystemException;
144
145 public java.util.List getGroups(long pk)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portal.NoSuchRoleException;
148
149 public java.util.List getGroups(long pk, int begin, int end)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portal.NoSuchRoleException;
152
153 public java.util.List getGroups(long pk, int begin, int end,
154 com.liferay.portal.kernel.util.OrderByComparator obc)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portal.NoSuchRoleException;
157
158 public int getGroupsSize(long pk) throws com.liferay.portal.SystemException;
159
160 public boolean containsGroup(long pk, long groupPK)
161 throws com.liferay.portal.SystemException;
162
163 public boolean containsGroups(long pk)
164 throws com.liferay.portal.SystemException;
165
166 public void addGroup(long pk, long groupPK)
167 throws com.liferay.portal.SystemException,
168 com.liferay.portal.NoSuchGroupException,
169 com.liferay.portal.NoSuchRoleException;
170
171 public void addGroup(long pk, com.liferay.portal.model.Group group)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portal.NoSuchGroupException,
174 com.liferay.portal.NoSuchRoleException;
175
176 public void addGroups(long pk, long[] groupPKs)
177 throws com.liferay.portal.SystemException,
178 com.liferay.portal.NoSuchGroupException,
179 com.liferay.portal.NoSuchRoleException;
180
181 public void addGroups(long pk, java.util.List groups)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portal.NoSuchGroupException,
184 com.liferay.portal.NoSuchRoleException;
185
186 public void clearGroups(long pk)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portal.NoSuchRoleException;
189
190 public void removeGroup(long pk, long groupPK)
191 throws com.liferay.portal.SystemException,
192 com.liferay.portal.NoSuchGroupException,
193 com.liferay.portal.NoSuchRoleException;
194
195 public void removeGroup(long pk, com.liferay.portal.model.Group group)
196 throws com.liferay.portal.SystemException,
197 com.liferay.portal.NoSuchGroupException,
198 com.liferay.portal.NoSuchRoleException;
199
200 public void removeGroups(long pk, long[] groupPKs)
201 throws com.liferay.portal.SystemException,
202 com.liferay.portal.NoSuchGroupException,
203 com.liferay.portal.NoSuchRoleException;
204
205 public void removeGroups(long pk, java.util.List groups)
206 throws com.liferay.portal.SystemException,
207 com.liferay.portal.NoSuchGroupException,
208 com.liferay.portal.NoSuchRoleException;
209
210 public void setGroups(long pk, long[] groupPKs)
211 throws com.liferay.portal.SystemException,
212 com.liferay.portal.NoSuchGroupException,
213 com.liferay.portal.NoSuchRoleException;
214
215 public void setGroups(long pk, java.util.List groups)
216 throws com.liferay.portal.SystemException,
217 com.liferay.portal.NoSuchGroupException,
218 com.liferay.portal.NoSuchRoleException;
219
220 public java.util.List getPermissions(long pk)
221 throws com.liferay.portal.SystemException,
222 com.liferay.portal.NoSuchRoleException;
223
224 public java.util.List getPermissions(long pk, int begin, int end)
225 throws com.liferay.portal.SystemException,
226 com.liferay.portal.NoSuchRoleException;
227
228 public java.util.List getPermissions(long pk, int begin, int end,
229 com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException,
231 com.liferay.portal.NoSuchRoleException;
232
233 public int getPermissionsSize(long pk)
234 throws com.liferay.portal.SystemException;
235
236 public boolean containsPermission(long pk, long permissionPK)
237 throws com.liferay.portal.SystemException;
238
239 public boolean containsPermissions(long pk)
240 throws com.liferay.portal.SystemException;
241
242 public void addPermission(long pk, long permissionPK)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portal.NoSuchPermissionException,
245 com.liferay.portal.NoSuchRoleException;
246
247 public void addPermission(long pk,
248 com.liferay.portal.model.Permission permission)
249 throws com.liferay.portal.SystemException,
250 com.liferay.portal.NoSuchPermissionException,
251 com.liferay.portal.NoSuchRoleException;
252
253 public void addPermissions(long pk, long[] permissionPKs)
254 throws com.liferay.portal.SystemException,
255 com.liferay.portal.NoSuchPermissionException,
256 com.liferay.portal.NoSuchRoleException;
257
258 public void addPermissions(long pk, java.util.List permissions)
259 throws com.liferay.portal.SystemException,
260 com.liferay.portal.NoSuchPermissionException,
261 com.liferay.portal.NoSuchRoleException;
262
263 public void clearPermissions(long pk)
264 throws com.liferay.portal.SystemException,
265 com.liferay.portal.NoSuchRoleException;
266
267 public void removePermission(long pk, long permissionPK)
268 throws com.liferay.portal.SystemException,
269 com.liferay.portal.NoSuchPermissionException,
270 com.liferay.portal.NoSuchRoleException;
271
272 public void removePermission(long pk,
273 com.liferay.portal.model.Permission permission)
274 throws com.liferay.portal.SystemException,
275 com.liferay.portal.NoSuchPermissionException,
276 com.liferay.portal.NoSuchRoleException;
277
278 public void removePermissions(long pk, long[] permissionPKs)
279 throws com.liferay.portal.SystemException,
280 com.liferay.portal.NoSuchPermissionException,
281 com.liferay.portal.NoSuchRoleException;
282
283 public void removePermissions(long pk, java.util.List permissions)
284 throws com.liferay.portal.SystemException,
285 com.liferay.portal.NoSuchPermissionException,
286 com.liferay.portal.NoSuchRoleException;
287
288 public void setPermissions(long pk, long[] permissionPKs)
289 throws com.liferay.portal.SystemException,
290 com.liferay.portal.NoSuchPermissionException,
291 com.liferay.portal.NoSuchRoleException;
292
293 public void setPermissions(long pk, java.util.List permissions)
294 throws com.liferay.portal.SystemException,
295 com.liferay.portal.NoSuchPermissionException,
296 com.liferay.portal.NoSuchRoleException;
297
298 public java.util.List getUsers(long pk)
299 throws com.liferay.portal.SystemException,
300 com.liferay.portal.NoSuchRoleException;
301
302 public java.util.List getUsers(long pk, int begin, int end)
303 throws com.liferay.portal.SystemException,
304 com.liferay.portal.NoSuchRoleException;
305
306 public java.util.List getUsers(long pk, int begin, int end,
307 com.liferay.portal.kernel.util.OrderByComparator obc)
308 throws com.liferay.portal.SystemException,
309 com.liferay.portal.NoSuchRoleException;
310
311 public int getUsersSize(long pk) throws com.liferay.portal.SystemException;
312
313 public boolean containsUser(long pk, long userPK)
314 throws com.liferay.portal.SystemException;
315
316 public boolean containsUsers(long pk)
317 throws com.liferay.portal.SystemException;
318
319 public void addUser(long pk, long userPK)
320 throws com.liferay.portal.SystemException,
321 com.liferay.portal.NoSuchRoleException,
322 com.liferay.portal.NoSuchUserException;
323
324 public void addUser(long pk, com.liferay.portal.model.User user)
325 throws com.liferay.portal.SystemException,
326 com.liferay.portal.NoSuchRoleException,
327 com.liferay.portal.NoSuchUserException;
328
329 public void addUsers(long pk, long[] userPKs)
330 throws com.liferay.portal.SystemException,
331 com.liferay.portal.NoSuchRoleException,
332 com.liferay.portal.NoSuchUserException;
333
334 public void addUsers(long pk, java.util.List users)
335 throws com.liferay.portal.SystemException,
336 com.liferay.portal.NoSuchRoleException,
337 com.liferay.portal.NoSuchUserException;
338
339 public void clearUsers(long pk)
340 throws com.liferay.portal.SystemException,
341 com.liferay.portal.NoSuchRoleException;
342
343 public void removeUser(long pk, long userPK)
344 throws com.liferay.portal.SystemException,
345 com.liferay.portal.NoSuchRoleException,
346 com.liferay.portal.NoSuchUserException;
347
348 public void removeUser(long pk, com.liferay.portal.model.User user)
349 throws com.liferay.portal.SystemException,
350 com.liferay.portal.NoSuchRoleException,
351 com.liferay.portal.NoSuchUserException;
352
353 public void removeUsers(long pk, long[] userPKs)
354 throws com.liferay.portal.SystemException,
355 com.liferay.portal.NoSuchRoleException,
356 com.liferay.portal.NoSuchUserException;
357
358 public void removeUsers(long pk, java.util.List users)
359 throws com.liferay.portal.SystemException,
360 com.liferay.portal.NoSuchRoleException,
361 com.liferay.portal.NoSuchUserException;
362
363 public void setUsers(long pk, long[] userPKs)
364 throws com.liferay.portal.SystemException,
365 com.liferay.portal.NoSuchRoleException,
366 com.liferay.portal.NoSuchUserException;
367
368 public void setUsers(long pk, java.util.List users)
369 throws com.liferay.portal.SystemException,
370 com.liferay.portal.NoSuchRoleException,
371 com.liferay.portal.NoSuchUserException;
372 }