01: /**
02: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
03: *
04: * Permission is hereby granted, free of charge, to any person obtaining a copy
05: * of this software and associated documentation files (the "Software"), to deal
06: * in the Software without restriction, including without limitation the rights
07: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
08: * copies of the Software, and to permit persons to whom the Software is
09: * furnished to do so, subject to the following conditions:
10: *
11: * The above copyright notice and this permission notice shall be included in
12: * all copies or substantial portions 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: */package com.liferay.portal.service.persistence;
22:
23: /**
24: * <a href="PermissionFinder.java.html"><b><i>View Source</i></b></a>
25: *
26: * @author Brian Wing Shun Chan
27: *
28: */
29: public interface PermissionFinder {
30: public boolean containsPermissions_2(java.util.List permissions,
31: long userId, java.util.List groups, long groupId)
32: throws com.liferay.portal.SystemException;
33:
34: public boolean containsPermissions_4(java.util.List permissions,
35: long userId, java.util.List groups, java.util.List roles)
36: throws com.liferay.portal.SystemException;
37:
38: public int countByGroupsPermissions(java.util.List permissions,
39: java.util.List groups)
40: throws com.liferay.portal.SystemException;
41:
42: public int countByGroupsRoles(java.util.List permissions,
43: java.util.List groups)
44: throws com.liferay.portal.SystemException;
45:
46: public int countByRolesPermissions(java.util.List permissions,
47: java.util.List roles)
48: throws com.liferay.portal.SystemException;
49:
50: public int countByUserGroupRole(java.util.List permissions,
51: long userId, long groupId)
52: throws com.liferay.portal.SystemException;
53:
54: public int countByUsersPermissions(java.util.List permissions,
55: long userId) throws com.liferay.portal.SystemException;
56:
57: public int countByUsersRoles(java.util.List permissions, long userId)
58: throws com.liferay.portal.SystemException;
59:
60: public java.util.List findByA_R(java.lang.String actionId,
61: long[] resourceIds)
62: throws com.liferay.portal.SystemException;
63:
64: public java.util.List findByG_R(long groupId, long resourceId)
65: throws com.liferay.portal.SystemException;
66:
67: public java.util.List findByR_R(long roleId, long resourceId)
68: throws com.liferay.portal.SystemException;
69:
70: public java.util.List findByU_R(long userId, long resourceId)
71: throws com.liferay.portal.SystemException;
72:
73: public java.util.List findByO_G_R(long organizationId,
74: long groupId, long resourceId)
75: throws com.liferay.portal.SystemException;
76:
77: public java.util.List findByU_A_R(long userId,
78: java.lang.String[] actionIds, long resourceId)
79: throws com.liferay.portal.SystemException;
80:
81: public java.util.List findByG_C_N_S_P(long groupId, long companyId,
82: java.lang.String name, int scope, java.lang.String primKey)
83: throws com.liferay.portal.SystemException;
84:
85: public java.util.List findByU_C_N_S_P(long userId, long companyId,
86: java.lang.String name, int scope, java.lang.String primKey)
87: throws com.liferay.portal.SystemException;
88: }
|