Interface AccessRightsService
- All Known Implementing Classes:
DefaultAccessRightsService
public interface AccessRightsService
This Service provides convenience methods to check for the basic CRUD permissions on item types.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCreatePermission(String type) Checks if the current user can create an instance of the type.voidcheckDeletePermission(String type) Checks if the current user can delete an instance of the type.voidcheckReadPermission(String type) Checks if the current user can read the type.voidcheckUpdatePermission(String type) Checks if the current user can update an instance of the type.
-
Method Details
-
checkCreatePermission
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
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
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
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
-