Allow patching of EducationClass properties.
As described in #5410: add support for updating educationClass properties. This adds the `UpdateEducationClass` to the `EducationBackend` interface, and implements it on the `ErrEducationBackend` and `LDAP` backends. It also alters `PatchEducationClass` to call the `UpdateEducationClass` method. Closes #5410
This commit is contained in:
committed by
Ralf Haferkamp
parent
32cc9beb0b
commit
2ca35f0a2b
@@ -70,6 +70,8 @@ type EducationBackend interface {
|
||||
DeleteEducationClass(ctx context.Context, nameOrID string) error
|
||||
// GetEducationClassMembers returns the EducationUser members for an EducationClass
|
||||
GetEducationClassMembers(ctx context.Context, nameOrID string) ([]*libregraph.EducationUser, error)
|
||||
// UpdateEducationClass updates properties of the supplied class in the identity backend.
|
||||
UpdateEducationClass(ctx context.Context, id string, class libregraph.EducationClass) (*libregraph.EducationClass, error)
|
||||
|
||||
// CreateEducationUser creates a given education user in the identity backend.
|
||||
CreateEducationUser(ctx context.Context, user libregraph.EducationUser) (*libregraph.EducationUser, error)
|
||||
|
||||
Reference in New Issue
Block a user