001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.model.Role;
018
019
025 public interface RolePersistence extends BasePersistence<Role> {
026 public void cacheResult(com.liferay.portal.model.Role role);
027
028 public void cacheResult(java.util.List<com.liferay.portal.model.Role> roles);
029
030 public com.liferay.portal.model.Role create(long roleId);
031
032 public com.liferay.portal.model.Role remove(long roleId)
033 throws com.liferay.portal.NoSuchRoleException,
034 com.liferay.portal.kernel.exception.SystemException;
035
036 public com.liferay.portal.model.Role updateImpl(
037 com.liferay.portal.model.Role role, boolean merge)
038 throws com.liferay.portal.kernel.exception.SystemException;
039
040 public com.liferay.portal.model.Role findByPrimaryKey(long roleId)
041 throws com.liferay.portal.NoSuchRoleException,
042 com.liferay.portal.kernel.exception.SystemException;
043
044 public com.liferay.portal.model.Role fetchByPrimaryKey(long roleId)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public java.util.List<com.liferay.portal.model.Role> findByCompanyId(
048 long companyId)
049 throws com.liferay.portal.kernel.exception.SystemException;
050
051 public java.util.List<com.liferay.portal.model.Role> findByCompanyId(
052 long companyId, int start, int end)
053 throws com.liferay.portal.kernel.exception.SystemException;
054
055 public java.util.List<com.liferay.portal.model.Role> findByCompanyId(
056 long companyId, int start, int end,
057 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
058 throws com.liferay.portal.kernel.exception.SystemException;
059
060 public com.liferay.portal.model.Role findByCompanyId_First(long companyId,
061 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
062 throws com.liferay.portal.NoSuchRoleException,
063 com.liferay.portal.kernel.exception.SystemException;
064
065 public com.liferay.portal.model.Role findByCompanyId_Last(long companyId,
066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067 throws com.liferay.portal.NoSuchRoleException,
068 com.liferay.portal.kernel.exception.SystemException;
069
070 public com.liferay.portal.model.Role[] findByCompanyId_PrevAndNext(
071 long roleId, long companyId,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.NoSuchRoleException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 public java.util.List<com.liferay.portal.model.Role> findBySubtype(
077 java.lang.String subtype)
078 throws com.liferay.portal.kernel.exception.SystemException;
079
080 public java.util.List<com.liferay.portal.model.Role> findBySubtype(
081 java.lang.String subtype, int start, int end)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084 public java.util.List<com.liferay.portal.model.Role> findBySubtype(
085 java.lang.String subtype, int start, int end,
086 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
087 throws com.liferay.portal.kernel.exception.SystemException;
088
089 public com.liferay.portal.model.Role findBySubtype_First(
090 java.lang.String subtype,
091 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
092 throws com.liferay.portal.NoSuchRoleException,
093 com.liferay.portal.kernel.exception.SystemException;
094
095 public com.liferay.portal.model.Role findBySubtype_Last(
096 java.lang.String subtype,
097 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098 throws com.liferay.portal.NoSuchRoleException,
099 com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portal.model.Role[] findBySubtype_PrevAndNext(
102 long roleId, java.lang.String subtype,
103 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104 throws com.liferay.portal.NoSuchRoleException,
105 com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portal.model.Role findByC_N(long companyId,
108 java.lang.String name)
109 throws com.liferay.portal.NoSuchRoleException,
110 com.liferay.portal.kernel.exception.SystemException;
111
112 public com.liferay.portal.model.Role fetchByC_N(long companyId,
113 java.lang.String name)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public com.liferay.portal.model.Role fetchByC_N(long companyId,
117 java.lang.String name, boolean retrieveFromCache)
118 throws com.liferay.portal.kernel.exception.SystemException;
119
120 public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
121 java.lang.String subtype)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
125 java.lang.String subtype, int start, int end)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 public java.util.List<com.liferay.portal.model.Role> findByT_S(int type,
129 java.lang.String subtype, int start, int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133 public com.liferay.portal.model.Role findByT_S_First(int type,
134 java.lang.String subtype,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.NoSuchRoleException,
137 com.liferay.portal.kernel.exception.SystemException;
138
139 public com.liferay.portal.model.Role findByT_S_Last(int type,
140 java.lang.String subtype,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.NoSuchRoleException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public com.liferay.portal.model.Role[] findByT_S_PrevAndNext(long roleId,
146 int type, java.lang.String subtype,
147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148 throws com.liferay.portal.NoSuchRoleException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 public com.liferay.portal.model.Role findByC_C_C(long companyId,
152 long classNameId, long classPK)
153 throws com.liferay.portal.NoSuchRoleException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
157 long classNameId, long classPK)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160 public com.liferay.portal.model.Role fetchByC_C_C(long companyId,
161 long classNameId, long classPK, boolean retrieveFromCache)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 public java.util.List<com.liferay.portal.model.Role> findAll()
165 throws com.liferay.portal.kernel.exception.SystemException;
166
167 public java.util.List<com.liferay.portal.model.Role> findAll(int start,
168 int end) throws com.liferay.portal.kernel.exception.SystemException;
169
170 public java.util.List<com.liferay.portal.model.Role> findAll(int start,
171 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 removeBySubtype(java.lang.String subtype)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181 public void removeByC_N(long companyId, java.lang.String name)
182 throws com.liferay.portal.NoSuchRoleException,
183 com.liferay.portal.kernel.exception.SystemException;
184
185 public void removeByT_S(int type, java.lang.String subtype)
186 throws com.liferay.portal.kernel.exception.SystemException;
187
188 public void removeByC_C_C(long companyId, long classNameId, long classPK)
189 throws com.liferay.portal.NoSuchRoleException,
190 com.liferay.portal.kernel.exception.SystemException;
191
192 public void removeAll()
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 public int countByCompanyId(long companyId)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 public int countBySubtype(java.lang.String subtype)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201 public int countByC_N(long companyId, java.lang.String name)
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204 public int countByT_S(int type, java.lang.String subtype)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 public int countByC_C_C(long companyId, long classNameId, long classPK)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210 public int countAll()
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
217 int start, int end)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
221 int start, int end,
222 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 public int getGroupsSize(long pk)
226 throws com.liferay.portal.kernel.exception.SystemException;
227
228 public boolean containsGroup(long pk, long groupPK)
229 throws com.liferay.portal.kernel.exception.SystemException;
230
231 public boolean containsGroups(long pk)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234 public void addGroup(long pk, long groupPK)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 public void addGroup(long pk, com.liferay.portal.model.Group group)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240 public void addGroups(long pk, long[] groupPKs)
241 throws com.liferay.portal.kernel.exception.SystemException;
242
243 public void addGroups(long pk,
244 java.util.List<com.liferay.portal.model.Group> groups)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247 public void clearGroups(long pk)
248 throws com.liferay.portal.kernel.exception.SystemException;
249
250 public void removeGroup(long pk, long groupPK)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 public void removeGroup(long pk, com.liferay.portal.model.Group group)
254 throws com.liferay.portal.kernel.exception.SystemException;
255
256 public void removeGroups(long pk, long[] groupPKs)
257 throws com.liferay.portal.kernel.exception.SystemException;
258
259 public void removeGroups(long pk,
260 java.util.List<com.liferay.portal.model.Group> groups)
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263 public void setGroups(long pk, long[] groupPKs)
264 throws com.liferay.portal.kernel.exception.SystemException;
265
266 public void setGroups(long pk,
267 java.util.List<com.liferay.portal.model.Group> groups)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270 public java.util.List<com.liferay.portal.model.Permission> getPermissions(
271 long pk) throws com.liferay.portal.kernel.exception.SystemException;
272
273 public java.util.List<com.liferay.portal.model.Permission> getPermissions(
274 long pk, int start, int end)
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277 public java.util.List<com.liferay.portal.model.Permission> getPermissions(
278 long pk, int start, int end,
279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 public int getPermissionsSize(long pk)
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285 public boolean containsPermission(long pk, long permissionPK)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 public boolean containsPermissions(long pk)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291 public void addPermission(long pk, long permissionPK)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294 public void addPermission(long pk,
295 com.liferay.portal.model.Permission permission)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 public void addPermissions(long pk, long[] permissionPKs)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301 public void addPermissions(long pk,
302 java.util.List<com.liferay.portal.model.Permission> permissions)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 public void clearPermissions(long pk)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308 public void removePermission(long pk, long permissionPK)
309 throws com.liferay.portal.kernel.exception.SystemException;
310
311 public void removePermission(long pk,
312 com.liferay.portal.model.Permission permission)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 public void removePermissions(long pk, long[] permissionPKs)
316 throws com.liferay.portal.kernel.exception.SystemException;
317
318 public void removePermissions(long pk,
319 java.util.List<com.liferay.portal.model.Permission> permissions)
320 throws com.liferay.portal.kernel.exception.SystemException;
321
322 public void setPermissions(long pk, long[] permissionPKs)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325 public void setPermissions(long pk,
326 java.util.List<com.liferay.portal.model.Permission> permissions)
327 throws com.liferay.portal.kernel.exception.SystemException;
328
329 public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
333 int start, int end)
334 throws com.liferay.portal.kernel.exception.SystemException;
335
336 public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
337 int start, int end,
338 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339 throws com.liferay.portal.kernel.exception.SystemException;
340
341 public int getUsersSize(long pk)
342 throws com.liferay.portal.kernel.exception.SystemException;
343
344 public boolean containsUser(long pk, long userPK)
345 throws com.liferay.portal.kernel.exception.SystemException;
346
347 public boolean containsUsers(long pk)
348 throws com.liferay.portal.kernel.exception.SystemException;
349
350 public void addUser(long pk, long userPK)
351 throws com.liferay.portal.kernel.exception.SystemException;
352
353 public void addUser(long pk, com.liferay.portal.model.User user)
354 throws com.liferay.portal.kernel.exception.SystemException;
355
356 public void addUsers(long pk, long[] userPKs)
357 throws com.liferay.portal.kernel.exception.SystemException;
358
359 public void addUsers(long pk,
360 java.util.List<com.liferay.portal.model.User> users)
361 throws com.liferay.portal.kernel.exception.SystemException;
362
363 public void clearUsers(long pk)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366 public void removeUser(long pk, long userPK)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369 public void removeUser(long pk, com.liferay.portal.model.User user)
370 throws com.liferay.portal.kernel.exception.SystemException;
371
372 public void removeUsers(long pk, long[] userPKs)
373 throws com.liferay.portal.kernel.exception.SystemException;
374
375 public void removeUsers(long pk,
376 java.util.List<com.liferay.portal.model.User> users)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 public void setUsers(long pk, long[] userPKs)
380 throws com.liferay.portal.kernel.exception.SystemException;
381
382 public void setUsers(long pk,
383 java.util.List<com.liferay.portal.model.User> users)
384 throws com.liferay.portal.kernel.exception.SystemException;
385 }