Service for Views. Provides functions to create, update and delete
Parameters
the associated repository used for CRUD functionality
used to get Projects by id
used to update the layout of a View
used to save the View
used to get ComponentTemplates by id
Constructors
Properties
Injected, used for the checkPermission function
Injected, used to get a user based on a GropiusAuthorizationContext
Functions
Checks if the user defined by authorizationContext is a global admin
Checks that the user has ProjectPermission.MANAGE_VIEWS on the provided project
Checks if the permission is granted on node If checkPermission on the permission.context is false, no permission is evaluated Does not handle the case that the user is an admin
Deletes a View by id Checks the authorization status
Evaluates if the permission is granted on node If checkPermission on the permission.context is false, no permission is evaluated Does not handle the case that the user is an admin
Gets a GropiusUser based on the userId from the authorizationContext