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