1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.model.Permission;
26  
27  /**
28   * <a href="PermissionPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       PermissionPersistenceImpl
37   * @see       PermissionUtil
38   * @generated
39   */
40  public interface PermissionPersistence extends BasePersistence<Permission> {
41      public void cacheResult(com.liferay.portal.model.Permission permission);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.Permission> permissions);
45  
46      public com.liferay.portal.model.Permission create(long permissionId);
47  
48      public com.liferay.portal.model.Permission remove(long permissionId)
49          throws com.liferay.portal.NoSuchPermissionException,
50              com.liferay.portal.SystemException;
51  
52      /**
53       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
54       */
55      public com.liferay.portal.model.Permission update(
56          com.liferay.portal.model.Permission permission)
57          throws com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Permission updateImpl(
60          com.liferay.portal.model.Permission permission, boolean merge)
61          throws com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.Permission findByPrimaryKey(
64          long permissionId)
65          throws com.liferay.portal.NoSuchPermissionException,
66              com.liferay.portal.SystemException;
67  
68      public com.liferay.portal.model.Permission fetchByPrimaryKey(
69          long permissionId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
72          long resourceId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
75          long resourceId, int start, int end)
76          throws com.liferay.portal.SystemException;
77  
78      public java.util.List<com.liferay.portal.model.Permission> findByResourceId(
79          long resourceId, int start, int end,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException;
82  
83      public com.liferay.portal.model.Permission findByResourceId_First(
84          long resourceId, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.NoSuchPermissionException,
86              com.liferay.portal.SystemException;
87  
88      public com.liferay.portal.model.Permission findByResourceId_Last(
89          long resourceId, com.liferay.portal.kernel.util.OrderByComparator obc)
90          throws com.liferay.portal.NoSuchPermissionException,
91              com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.Permission[] findByResourceId_PrevAndNext(
94          long permissionId, long resourceId,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.NoSuchPermissionException,
97              com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.Permission findByA_R(
100         java.lang.String actionId, long resourceId)
101         throws com.liferay.portal.NoSuchPermissionException,
102             com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.Permission fetchByA_R(
105         java.lang.String actionId, long resourceId)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.Permission fetchByA_R(
109         java.lang.String actionId, long resourceId, boolean retrieveFromCache)
110         throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portal.model.Permission> findAll()
113         throws com.liferay.portal.SystemException;
114 
115     public java.util.List<com.liferay.portal.model.Permission> findAll(
116         int start, int end) throws com.liferay.portal.SystemException;
117 
118     public java.util.List<com.liferay.portal.model.Permission> findAll(
119         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException;
121 
122     public void removeByResourceId(long resourceId)
123         throws com.liferay.portal.SystemException;
124 
125     public void removeByA_R(java.lang.String actionId, long resourceId)
126         throws com.liferay.portal.NoSuchPermissionException,
127             com.liferay.portal.SystemException;
128 
129     public void removeAll() throws com.liferay.portal.SystemException;
130 
131     public int countByResourceId(long resourceId)
132         throws com.liferay.portal.SystemException;
133 
134     public int countByA_R(java.lang.String actionId, long resourceId)
135         throws com.liferay.portal.SystemException;
136 
137     public int countAll() throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
140         throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
143         int start, int end) throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
146         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException;
148 
149     public int getGroupsSize(long pk) throws com.liferay.portal.SystemException;
150 
151     public boolean containsGroup(long pk, long groupPK)
152         throws com.liferay.portal.SystemException;
153 
154     public boolean containsGroups(long pk)
155         throws com.liferay.portal.SystemException;
156 
157     public void addGroup(long pk, long groupPK)
158         throws com.liferay.portal.SystemException;
159 
160     public void addGroup(long pk, com.liferay.portal.model.Group group)
161         throws com.liferay.portal.SystemException;
162 
163     public void addGroups(long pk, long[] groupPKs)
164         throws com.liferay.portal.SystemException;
165 
166     public void addGroups(long pk,
167         java.util.List<com.liferay.portal.model.Group> groups)
168         throws com.liferay.portal.SystemException;
169 
170     public void clearGroups(long pk) throws com.liferay.portal.SystemException;
171 
172     public void removeGroup(long pk, long groupPK)
173         throws com.liferay.portal.SystemException;
174 
175     public void removeGroup(long pk, com.liferay.portal.model.Group group)
176         throws com.liferay.portal.SystemException;
177 
178     public void removeGroups(long pk, long[] groupPKs)
179         throws com.liferay.portal.SystemException;
180 
181     public void removeGroups(long pk,
182         java.util.List<com.liferay.portal.model.Group> groups)
183         throws com.liferay.portal.SystemException;
184 
185     public void setGroups(long pk, long[] groupPKs)
186         throws com.liferay.portal.SystemException;
187 
188     public void setGroups(long pk,
189         java.util.List<com.liferay.portal.model.Group> groups)
190         throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk)
193         throws com.liferay.portal.SystemException;
194 
195     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
196         int start, int end) throws com.liferay.portal.SystemException;
197 
198     public java.util.List<com.liferay.portal.model.Role> getRoles(long pk,
199         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.SystemException;
201 
202     public int getRolesSize(long pk) throws com.liferay.portal.SystemException;
203 
204     public boolean containsRole(long pk, long rolePK)
205         throws com.liferay.portal.SystemException;
206 
207     public boolean containsRoles(long pk)
208         throws com.liferay.portal.SystemException;
209 
210     public void addRole(long pk, long rolePK)
211         throws com.liferay.portal.SystemException;
212 
213     public void addRole(long pk, com.liferay.portal.model.Role role)
214         throws com.liferay.portal.SystemException;
215 
216     public void addRoles(long pk, long[] rolePKs)
217         throws com.liferay.portal.SystemException;
218 
219     public void addRoles(long pk,
220         java.util.List<com.liferay.portal.model.Role> roles)
221         throws com.liferay.portal.SystemException;
222 
223     public void clearRoles(long pk) throws com.liferay.portal.SystemException;
224 
225     public void removeRole(long pk, long rolePK)
226         throws com.liferay.portal.SystemException;
227 
228     public void removeRole(long pk, com.liferay.portal.model.Role role)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeRoles(long pk, long[] rolePKs)
232         throws com.liferay.portal.SystemException;
233 
234     public void removeRoles(long pk,
235         java.util.List<com.liferay.portal.model.Role> roles)
236         throws com.liferay.portal.SystemException;
237 
238     public void setRoles(long pk, long[] rolePKs)
239         throws com.liferay.portal.SystemException;
240 
241     public void setRoles(long pk,
242         java.util.List<com.liferay.portal.model.Role> roles)
243         throws com.liferay.portal.SystemException;
244 
245     public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
246         throws com.liferay.portal.SystemException;
247 
248     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
249         int start, int end) throws com.liferay.portal.SystemException;
250 
251     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
252         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.SystemException;
254 
255     public int getUsersSize(long pk) throws com.liferay.portal.SystemException;
256 
257     public boolean containsUser(long pk, long userPK)
258         throws com.liferay.portal.SystemException;
259 
260     public boolean containsUsers(long pk)
261         throws com.liferay.portal.SystemException;
262 
263     public void addUser(long pk, long userPK)
264         throws com.liferay.portal.SystemException;
265 
266     public void addUser(long pk, com.liferay.portal.model.User user)
267         throws com.liferay.portal.SystemException;
268 
269     public void addUsers(long pk, long[] userPKs)
270         throws com.liferay.portal.SystemException;
271 
272     public void addUsers(long pk,
273         java.util.List<com.liferay.portal.model.User> users)
274         throws com.liferay.portal.SystemException;
275 
276     public void clearUsers(long pk) throws com.liferay.portal.SystemException;
277 
278     public void removeUser(long pk, long userPK)
279         throws com.liferay.portal.SystemException;
280 
281     public void removeUser(long pk, com.liferay.portal.model.User user)
282         throws com.liferay.portal.SystemException;
283 
284     public void removeUsers(long pk, long[] userPKs)
285         throws com.liferay.portal.SystemException;
286 
287     public void removeUsers(long pk,
288         java.util.List<com.liferay.portal.model.User> users)
289         throws com.liferay.portal.SystemException;
290 
291     public void setUsers(long pk, long[] userPKs)
292         throws com.liferay.portal.SystemException;
293 
294     public void setUsers(long pk,
295         java.util.List<com.liferay.portal.model.User> users)
296         throws com.liferay.portal.SystemException;
297 }