1
19
20 package com.liferay.portal.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Transactional;
25
26
50 @Transactional(rollbackFor = {
51 PortalException.class, SystemException.class})
52 public interface PermissionService {
53 public void checkPermission(long groupId, java.lang.String name,
54 java.lang.String primKey)
55 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
56 com.liferay.portal.SystemException;
57
58 public boolean hasGroupPermission(long groupId, java.lang.String actionId,
59 long resourceId)
60 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
61
62 public boolean hasUserPermission(long userId, java.lang.String actionId,
63 long resourceId)
64 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
65
66 public boolean hasUserPermissions(long userId, long groupId,
67 java.lang.String actionId, long[] resourceIds,
68 com.liferay.portal.security.permission.PermissionCheckerBag permissionCheckerBag)
69 throws java.rmi.RemoteException, com.liferay.portal.SystemException;
70
71 public void setGroupPermissions(long groupId, java.lang.String[] actionIds,
72 long resourceId)
73 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
74 com.liferay.portal.SystemException;
75
76 public void setGroupPermissions(java.lang.String className,
77 java.lang.String classPK, long groupId, java.lang.String[] actionIds,
78 long resourceId)
79 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException;
81
82 public void setOrgGroupPermissions(long organizationId, long groupId,
83 java.lang.String[] actionIds, long resourceId)
84 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86
87 public void setRolePermission(long roleId, long groupId,
88 java.lang.String name, int scope, java.lang.String primKey,
89 java.lang.String actionId)
90 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException;
92
93 public void setRolePermissions(long roleId, long groupId,
94 java.lang.String[] actionIds, long resourceId)
95 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 public void setUserPermissions(long userId, long groupId,
99 java.lang.String[] actionIds, long resourceId)
100 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException;
102
103 public void unsetRolePermission(long roleId, long groupId, long permissionId)
104 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106
107 public void unsetRolePermission(long roleId, long groupId,
108 java.lang.String name, int scope, java.lang.String primKey,
109 java.lang.String actionId)
110 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException;
112
113 public void unsetRolePermissions(long roleId, long groupId,
114 java.lang.String name, int scope, java.lang.String actionId)
115 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException;
117
118 public void unsetUserPermissions(long userId, long groupId,
119 java.lang.String[] actionIds, long resourceId)
120 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException;
122 }