001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.Permission;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       PermissionPersistenceImpl
022     * @see       PermissionUtil
023     * @generated
024     */
025    public interface PermissionPersistence extends BasePersistence<Permission> {
026            public void cacheResult(com.liferay.portal.model.Permission permission);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.Permission> permissions);
030    
031            public com.liferay.portal.model.Permission create(long permissionId);
032    
033            public com.liferay.portal.model.Permission remove(long permissionId)
034                    throws com.liferay.portal.NoSuchPermissionException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.Permission updateImpl(
038                    com.liferay.portal.model.Permission permission, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.Permission findByPrimaryKey(
042                    long permissionId)
043                    throws com.liferay.portal.NoSuchPermissionException,
044                            com.liferay.portal.kernel.exception.SystemException;
045    
046            public com.liferay.portal.model.Permission fetchByPrimaryKey(
047                    long permissionId)
048                    throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
051                    long resourceId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
055                    long resourceId, int start, int end)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
059                    long resourceId, int start, int end,
060                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
061                    throws com.liferay.portal.kernel.exception.SystemException;
062    
063            public com.liferay.portal.model.Permission findByResourceId_First(
064                    long resourceId,
065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
066                    throws com.liferay.portal.NoSuchPermissionException,
067                            com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portal.model.Permission findByResourceId_Last(
070                    long resourceId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.NoSuchPermissionException,
073                            com.liferay.portal.kernel.exception.SystemException;
074    
075            public com.liferay.portal.model.Permission[] findByResourceId_PrevAndNext(
076                    long permissionId, long resourceId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.NoSuchPermissionException,
079                            com.liferay.portal.kernel.exception.SystemException;
080    
081            public com.liferay.portal.model.Permission findByA_R(
082                    java.lang.String actionId, long resourceId)
083                    throws com.liferay.portal.NoSuchPermissionException,
084                            com.liferay.portal.kernel.exception.SystemException;
085    
086            public com.liferay.portal.model.Permission fetchByA_R(
087                    java.lang.String actionId, long resourceId)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public com.liferay.portal.model.Permission fetchByA_R(
091                    java.lang.String actionId, long resourceId, boolean retrieveFromCache)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public java.util.List<com.liferay.portal.model.Permission> findAll()
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public java.util.List<com.liferay.portal.model.Permission> findAll(
098                    int start, int end)
099                    throws com.liferay.portal.kernel.exception.SystemException;
100    
101            public java.util.List<com.liferay.portal.model.Permission> findAll(
102                    int start, int end,
103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            public void removeByResourceId(long resourceId)
107                    throws com.liferay.portal.kernel.exception.SystemException;
108    
109            public void removeByA_R(java.lang.String actionId, long resourceId)
110                    throws com.liferay.portal.NoSuchPermissionException,
111                            com.liferay.portal.kernel.exception.SystemException;
112    
113            public void removeAll()
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            public int countByResourceId(long resourceId)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            public int countByA_R(java.lang.String actionId, long resourceId)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public int countAll()
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
129                    int start, int end)
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                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            public int getGroupsSize(long pk)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public boolean containsGroup(long pk, long groupPK)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public boolean containsGroups(long pk)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            public void addGroup(long pk, long groupPK)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            public void addGroup(long pk, com.liferay.portal.model.Group group)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public void addGroups(long pk, long[] groupPKs)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            public void addGroups(long pk,
156                    java.util.List<com.liferay.portal.model.Group> groups)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public void clearGroups(long pk)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public void removeGroup(long pk, long groupPK)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            public void removeGroup(long pk, com.liferay.portal.model.Group group)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public void removeGroups(long pk, long[] groupPKs)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            public void removeGroups(long pk,
172                    java.util.List<com.liferay.portal.model.Group> groups)
173                    throws com.liferay.portal.kernel.exception.SystemException;
174    
175            public void setGroups(long pk, long[] groupPKs)
176                    throws com.liferay.portal.kernel.exception.SystemException;
177    
178            public void setGroups(long pk,
179                    java.util.List<com.liferay.portal.model.Group> groups)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
186                    int start, int end)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
190                    int start, int end,
191                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192                    throws com.liferay.portal.kernel.exception.SystemException;
193    
194            public int getRolesSize(long pk)
195                    throws com.liferay.portal.kernel.exception.SystemException;
196    
197            public boolean containsRole(long pk, long rolePK)
198                    throws com.liferay.portal.kernel.exception.SystemException;
199    
200            public boolean containsRoles(long pk)
201                    throws com.liferay.portal.kernel.exception.SystemException;
202    
203            public void addRole(long pk, long rolePK)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            public void addRole(long pk, com.liferay.portal.model.Role role)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            public void addRoles(long pk, long[] rolePKs)
210                    throws com.liferay.portal.kernel.exception.SystemException;
211    
212            public void addRoles(long pk,
213                    java.util.List<com.liferay.portal.model.Role> roles)
214                    throws com.liferay.portal.kernel.exception.SystemException;
215    
216            public void clearRoles(long pk)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            public void removeRole(long pk, long rolePK)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            public void removeRole(long pk, com.liferay.portal.model.Role role)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            public void removeRoles(long pk, long[] rolePKs)
226                    throws com.liferay.portal.kernel.exception.SystemException;
227    
228            public void removeRoles(long pk,
229                    java.util.List<com.liferay.portal.model.Role> roles)
230                    throws com.liferay.portal.kernel.exception.SystemException;
231    
232            public void setRoles(long pk, long[] rolePKs)
233                    throws com.liferay.portal.kernel.exception.SystemException;
234    
235            public void setRoles(long pk,
236                    java.util.List<com.liferay.portal.model.Role> roles)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
243                    int start, int end)
244                    throws com.liferay.portal.kernel.exception.SystemException;
245    
246            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
247                    int start, int end,
248                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            public int getUsersSize(long pk)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            public boolean containsUser(long pk, long userPK)
255                    throws com.liferay.portal.kernel.exception.SystemException;
256    
257            public boolean containsUsers(long pk)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            public void addUser(long pk, long userPK)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            public void addUser(long pk, com.liferay.portal.model.User user)
264                    throws com.liferay.portal.kernel.exception.SystemException;
265    
266            public void addUsers(long pk, long[] userPKs)
267                    throws com.liferay.portal.kernel.exception.SystemException;
268    
269            public void addUsers(long pk,
270                    java.util.List<com.liferay.portal.model.User> users)
271                    throws com.liferay.portal.kernel.exception.SystemException;
272    
273            public void clearUsers(long pk)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            public void removeUser(long pk, long userPK)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            public void removeUser(long pk, com.liferay.portal.model.User user)
280                    throws com.liferay.portal.kernel.exception.SystemException;
281    
282            public void removeUsers(long pk, long[] userPKs)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            public void removeUsers(long pk,
286                    java.util.List<com.liferay.portal.model.User> users)
287                    throws com.liferay.portal.kernel.exception.SystemException;
288    
289            public void setUsers(long pk, long[] userPKs)
290                    throws com.liferay.portal.kernel.exception.SystemException;
291    
292            public void setUsers(long pk,
293                    java.util.List<com.liferay.portal.model.User> users)
294                    throws com.liferay.portal.kernel.exception.SystemException;
295    }