Service for InterfaceSpecifications. Provides functions to create, update and delete
Parameters
the associated repository used for CRUD functionality
used to get Components
used to create InterfaceSpecificationVersions
used to create InterfaceParts
used to update templatedFields
used to get InterfaceSpecificationTemplates
used to save/delete any node
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 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
Creates a new InterfaceSpecification based on the provided input Checks the authorization status
Creates a new InterfaceSpecification based on the provided input on component Does not check the authorization status, does not save the created nodes Validates the input
Deletes a InterfaceSpecification 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
Updates a InterfaceSpecification based on the provided input Checks the authorization status
Updates the template of an interfaceSpecification, if provided via the input Does not check the authorization status
Updates the InterfaceSpecificationVersions of the interfaceSpecification after a template update Does not check the authorization status