Service for RelationTemplates. Provides functions to create, update and delete
Parameters
the associated repository used for CRUD functionality
used to find extending InterfaceSpecificationTemplates
used to find extending RelationPartnerTemplates
Constructors
Properties
Injected, used for the checkPermission function
Injected, used to get a user based on a GropiusAuthorizationContext
Injected JsonNodeMapper
Functions
Checks for CAN_CREATE_TEMPLATE permission on the user provided via authorizationContext
Checks if the user defined by authorizationContext is a global admin
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
Updates template based on input Sets templateFieldSpecifications based on input, and the templateFieldSpecification of extendedTemplates
Creates a new RelationCondition based on input Does not check permission or save the created RelationCondition
Creates a new RelationTemplate based on the provided input 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
Updates a RelationTemplate based on the provided input Checks the authorization status