Interface AccessRightsService
-
- All Known Implementing Classes:
DefaultAccessRightsService
public interface AccessRightsServiceThis Service provides convenience methods to check for the basic CRUD permissions on item types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckCreatePermission(java.lang.String type)Checks if the current user can create an instance of the type.voidcheckDeletePermission(java.lang.String type)Checks if the current user can delete an instance of the type.voidcheckReadPermission(java.lang.String type)Checks if the current user can read the type.voidcheckUpdatePermission(java.lang.String type)Checks if the current user can update an instance of the type.
-
-
-
Method Detail
-
checkCreatePermission
void checkCreatePermission(java.lang.String type)
Checks if the current user can create an instance of the type. The implementation may throw aRuntimeExceptionif the user does not have the create permission for the type.- Parameters:
type- type code to check permissions for
-
checkReadPermission
void checkReadPermission(java.lang.String type)
Checks if the current user can read the type. The implementation may throw aRuntimeExceptionif the user does not have the read permission for the type.- Parameters:
type- type code to check permissions for
-
checkUpdatePermission
void checkUpdatePermission(java.lang.String type)
Checks if the current user can update an instance of the type. The implementation may throw aRuntimeExceptionif the user does not have the update permission for the type.- Parameters:
type- type code to check permissions for
-
checkDeletePermission
void checkDeletePermission(java.lang.String type)
Checks if the current user can delete an instance of the type. The implementation may throw aRuntimeExceptionif the user does not have the delete permission for the type.- Parameters:
type- type code to check permissions for
-
-