1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.model.Permission;
18
19
32 public interface PermissionPersistence extends BasePersistence<Permission> {
33 public void cacheResult(com.liferay.portal.model.Permission permission);
34
35 public void cacheResult(
36 java.util.List<com.liferay.portal.model.Permission> permissions);
37
38 public com.liferay.portal.model.Permission create(long permissionId);
39
40 public com.liferay.portal.model.Permission remove(long permissionId)
41 throws com.liferay.portal.NoSuchPermissionException,
42 com.liferay.portal.kernel.exception.SystemException;
43
44 public com.liferay.portal.model.Permission updateImpl(
45 com.liferay.portal.model.Permission permission, boolean merge)
46 throws com.liferay.portal.kernel.exception.SystemException;
47
48 public com.liferay.portal.model.Permission findByPrimaryKey(
49 long permissionId)
50 throws com.liferay.portal.NoSuchPermissionException,
51 com.liferay.portal.kernel.exception.SystemException;
52
53 public com.liferay.portal.model.Permission fetchByPrimaryKey(
54 long permissionId)
55 throws com.liferay.portal.kernel.exception.SystemException;
56
57 public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
58 long resourceId)
59 throws com.liferay.portal.kernel.exception.SystemException;
60
61 public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
62 long resourceId, int start, int end)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
66 long resourceId, 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.Permission findByResourceId_First(
71 long resourceId,
72 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
73 throws com.liferay.portal.NoSuchPermissionException,
74 com.liferay.portal.kernel.exception.SystemException;
75
76 public com.liferay.portal.model.Permission findByResourceId_Last(
77 long resourceId,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.NoSuchPermissionException,
80 com.liferay.portal.kernel.exception.SystemException;
81
82 public com.liferay.portal.model.Permission[] findByResourceId_PrevAndNext(
83 long permissionId, long resourceId,
84 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85 throws com.liferay.portal.NoSuchPermissionException,
86 com.liferay.portal.kernel.exception.SystemException;
87
88 public com.liferay.portal.model.Permission findByA_R(
89 java.lang.String actionId, long resourceId)
90 throws com.liferay.portal.NoSuchPermissionException,
91 com.liferay.portal.kernel.exception.SystemException;
92
93 public com.liferay.portal.model.Permission fetchByA_R(
94 java.lang.String actionId, long resourceId)
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portal.model.Permission fetchByA_R(
98 java.lang.String actionId, long resourceId, boolean retrieveFromCache)
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public java.util.List<com.liferay.portal.model.Permission> findAll()
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public java.util.List<com.liferay.portal.model.Permission> findAll(
105 int start, int end)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108 public java.util.List<com.liferay.portal.model.Permission> findAll(
109 int start, int end,
110 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public void removeByResourceId(long resourceId)
114 throws com.liferay.portal.kernel.exception.SystemException;
115
116 public void removeByA_R(java.lang.String actionId, long resourceId)
117 throws com.liferay.portal.NoSuchPermissionException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void removeAll()
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 public int countByResourceId(long resourceId)
124 throws com.liferay.portal.kernel.exception.SystemException;
125
126 public int countByA_R(java.lang.String actionId, long resourceId)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 public int countAll()
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
136 int start, int end)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
140 int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144 public int getGroupsSize(long pk)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147 public boolean containsGroup(long pk, long groupPK)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 public boolean containsGroups(long pk)
151 throws com.liferay.portal.kernel.exception.SystemException;
152
153 public void addGroup(long pk, long groupPK)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public void addGroup(long pk, com.liferay.portal.model.Group group)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public void addGroups(long pk, long[] groupPKs)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public void addGroups(long pk,
163 java.util.List<com.liferay.portal.model.Group> groups)
164 throws com.liferay.portal.kernel.exception.SystemException;
165
166 public void clearGroups(long pk)
167 throws com.liferay.portal.kernel.exception.SystemException;
168
169 public void removeGroup(long pk, long groupPK)
170 throws com.liferay.portal.kernel.exception.SystemException;
171
172 public void removeGroup(long pk, com.liferay.portal.model.Group group)
173 throws com.liferay.portal.kernel.exception.SystemException;
174
175 public void removeGroups(long pk, long[] groupPKs)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 public void removeGroups(long pk,
179 java.util.List<com.liferay.portal.model.Group> groups)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 public void setGroups(long pk, long[] groupPKs)
183 throws com.liferay.portal.kernel.exception.SystemException;
184
185 public void setGroups(long pk,
186 java.util.List<com.liferay.portal.model.Group> groups)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
193 int start, int end)
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196 public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
197 int start, int end,
198 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201 public int getRolesSize(long pk)
202 throws com.liferay.portal.kernel.exception.SystemException;
203
204 public boolean containsRole(long pk, long rolePK)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 public boolean containsRoles(long pk)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210 public void addRole(long pk, long rolePK)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213 public void addRole(long pk, com.liferay.portal.model.Role role)
214 throws com.liferay.portal.kernel.exception.SystemException;
215
216 public void addRoles(long pk, long[] rolePKs)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219 public void addRoles(long pk,
220 java.util.List<com.liferay.portal.model.Role> roles)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223 public void clearRoles(long pk)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226 public void removeRole(long pk, long rolePK)
227 throws com.liferay.portal.kernel.exception.SystemException;
228
229 public void removeRole(long pk, com.liferay.portal.model.Role role)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232 public void removeRoles(long pk, long[] rolePKs)
233 throws com.liferay.portal.kernel.exception.SystemException;
234
235 public void removeRoles(long pk,
236 java.util.List<com.liferay.portal.model.Role> roles)
237 throws com.liferay.portal.kernel.exception.SystemException;
238
239 public void setRoles(long pk, long[] rolePKs)
240 throws com.liferay.portal.kernel.exception.SystemException;
241
242 public void setRoles(long pk,
243 java.util.List<com.liferay.portal.model.Role> roles)
244 throws com.liferay.portal.kernel.exception.SystemException;
245
246 public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
247 throws com.liferay.portal.kernel.exception.SystemException;
248
249 public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
250 int start, int end)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
254 int start, int end,
255 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256 throws com.liferay.portal.kernel.exception.SystemException;
257
258 public int getUsersSize(long pk)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261 public boolean containsUser(long pk, long userPK)
262 throws com.liferay.portal.kernel.exception.SystemException;
263
264 public boolean containsUsers(long pk)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267 public void addUser(long pk, long userPK)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270 public void addUser(long pk, com.liferay.portal.model.User user)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273 public void addUsers(long pk, long[] userPKs)
274 throws com.liferay.portal.kernel.exception.SystemException;
275
276 public void addUsers(long pk,
277 java.util.List<com.liferay.portal.model.User> users)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280 public void clearUsers(long pk)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283 public void removeUser(long pk, long userPK)
284 throws com.liferay.portal.kernel.exception.SystemException;
285
286 public void removeUser(long pk, com.liferay.portal.model.User user)
287 throws com.liferay.portal.kernel.exception.SystemException;
288
289 public void removeUsers(long pk, long[] userPKs)
290 throws com.liferay.portal.kernel.exception.SystemException;
291
292 public void removeUsers(long pk,
293 java.util.List<com.liferay.portal.model.User> users)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296 public void setUsers(long pk, long[] userPKs)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 public void setUsers(long pk,
300 java.util.List<com.liferay.portal.model.User> users)
301 throws com.liferay.portal.kernel.exception.SystemException;
302 }