Service for GropiusUsers. Provides functions to create and update
Parameters
the associated repository used for CRUD functionality
the configuration properties
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 GropiusUser based on the provided input Does not check the authorization status Checks that no GropiusUser with the same username exists This MUST NOT be exposed via the public API
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
Finds a GropiusUser by username No authorization status check necessary
Find the ids of all GropiusUsers
Gets a GropiusUser based on the userId from the authorizationContext
Updates a GropiusUser based on the provided input Checks the authorization status
Validates that a URI can be used as avatar for a GropiusUser