com.liferay.portal.service
Interface PermissionService
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface PermissionService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portal.service.impl.PermissionServiceImpl
.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
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.
- Author:
- Brian Wing Shun Chan
- See Also:
PermissionServiceUtil
Method Summary |
void |
checkPermission(long groupId,
java.lang.String name,
java.lang.String primKey)
|
boolean |
hasGroupPermission(long groupId,
java.lang.String actionId,
long resourceId)
|
boolean |
hasUserPermission(long userId,
java.lang.String actionId,
long resourceId)
|
boolean |
hasUserPermissions(long userId,
long groupId,
java.lang.String actionId,
long[] resourceIds,
PermissionCheckerBag permissionCheckerBag)
|
void |
setGroupPermissions(long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setGroupPermissions(java.lang.String className,
java.lang.String classPK,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setOrgGroupPermissions(long organizationId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setRolePermission(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
void |
setRolePermissions(long roleId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
setUserPermissions(long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
void |
unsetRolePermission(long roleId,
long groupId,
long permissionId)
|
void |
unsetRolePermission(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
|
void |
unsetRolePermissions(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String actionId)
|
void |
unsetUserPermissions(long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
|
checkPermission
void checkPermission(long groupId,
java.lang.String name,
java.lang.String primKey)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasGroupPermission
boolean hasGroupPermission(long groupId,
java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserPermission
boolean hasUserPermission(long userId,
java.lang.String actionId,
long resourceId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserPermissions
boolean hasUserPermissions(long userId,
long groupId,
java.lang.String actionId,
long[] resourceIds,
PermissionCheckerBag permissionCheckerBag)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setGroupPermissions
void setGroupPermissions(long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setGroupPermissions
void setGroupPermissions(java.lang.String className,
java.lang.String classPK,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setOrgGroupPermissions
void setOrgGroupPermissions(long organizationId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setRolePermission
void setRolePermission(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setRolePermissions
void setRolePermissions(long roleId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setUserPermissions
void setUserPermissions(long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetRolePermission
void unsetRolePermission(long roleId,
long groupId,
long permissionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetRolePermission
void unsetRolePermission(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String primKey,
java.lang.String actionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetRolePermissions
void unsetRolePermissions(long roleId,
long groupId,
java.lang.String name,
int scope,
java.lang.String actionId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetUserPermissions
void unsetUserPermissions(long userId,
long groupId,
java.lang.String[] actionIds,
long resourceId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException