com.liferay.portal.service
Interface PermissionService
- All Known Implementing Classes:
- PermissionServiceBaseImpl, PermissionServiceImpl, PermissionServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface PermissionService
The interface for the permission remote service.
Never modify or reference this interface directly. Always use PermissionServiceUtil
to access the permission remote service. Add custom service methods to PermissionServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.
This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
- See Also:
PermissionServiceUtil
,
PermissionServiceBaseImpl
,
PermissionServiceImpl
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.
Method Summary |
void |
checkPermission(long groupId,
long resourceId)
|
void |
checkPermission(long groupId,
String name,
long primKey)
|
void |
checkPermission(long groupId,
String name,
String primKey)
|
boolean |
hasGroupPermission(long groupId,
String actionId,
long resourceId)
|
boolean |
hasUserPermission(long userId,
String actionId,
long resourceId)
|
boolean |
hasUserPermissions(long userId,
long groupId,
List<Resource> resources,
String actionId,
PermissionCheckerBag permissionCheckerBag)
|
void |
setGroupPermissions(long groupId,
String[] actionIds,
long resourceId)
|
void |
setGroupPermissions(String className,
String classPK,
long groupId,
String[] actionIds,
long resourceId)
|
void |
setOrgGroupPermissions(long organizationId,
long groupId,
String[] actionIds,
long resourceId)
|
void |
setRolePermission(long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
|
void |
setRolePermissions(long roleId,
long groupId,
String[] actionIds,
long resourceId)
|
void |
setUserPermissions(long userId,
long groupId,
String[] actionIds,
long resourceId)
|
void |
unsetRolePermission(long roleId,
long groupId,
long permissionId)
|
void |
unsetRolePermission(long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
|
void |
unsetRolePermissions(long roleId,
long groupId,
String name,
int scope,
String actionId)
|
void |
unsetUserPermissions(long userId,
long groupId,
String[] actionIds,
long resourceId)
|
checkPermission
void checkPermission(long groupId,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkPermission
void checkPermission(long groupId,
String name,
long primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
checkPermission
void checkPermission(long groupId,
String name,
String primKey)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasGroupPermission
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasGroupPermission(long groupId,
String actionId,
long resourceId)
throws SystemException
- Throws:
SystemException
hasUserPermission
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasUserPermission(long userId,
String actionId,
long resourceId)
throws SystemException
- Throws:
SystemException
hasUserPermissions
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasUserPermissions(long userId,
long groupId,
List<Resource> resources,
String actionId,
PermissionCheckerBag permissionCheckerBag)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setGroupPermissions
void setGroupPermissions(long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setGroupPermissions
void setGroupPermissions(String className,
String classPK,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setOrgGroupPermissions
void setOrgGroupPermissions(long organizationId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setRolePermission
void setRolePermission(long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setRolePermissions
void setRolePermissions(long roleId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
setUserPermissions
void setUserPermissions(long userId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermission
void unsetRolePermission(long roleId,
long groupId,
long permissionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermission
void unsetRolePermission(long roleId,
long groupId,
String name,
int scope,
String primKey,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRolePermissions
void unsetRolePermissions(long roleId,
long groupId,
String name,
int scope,
String actionId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetUserPermissions
void unsetUserPermissions(long userId,
long groupId,
String[] actionIds,
long resourceId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException