Service for Projects. Provides functions to create, update and delete
Parameters
the associated repository used for CRUD functionality
used to create the initial permission for a created Project
used to get ComponentVersions by id
used to update the layout of a Project
used to save the Project
Constructors
Properties
Injected ArtefactRepository
Injected, used for the checkPermission function
Injected, used to get a user based on a GropiusAuthorizationContext
Injected IMSProjectService
Injected IssueService
Injected LabelRepository
Injected NodeRepository
Functions
Adds a ComponentVersion to a Project Checks the authorization status
Must be called before node is deleted via the repository Deletes all Artefacts Deletes Labels and Issues, if only present on this Trackable
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
Deletes a Project 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
Removes a ComponentVersion from a Project Checks the authorization status
Updates node based on input Calls updateNamedAffectedByIssue Updates repositoryURL