69111: Groups admin page, WIP

This commit is contained in:
Marie Verdonck
2020-03-02 19:03:27 +01:00
parent e0dc90ddd3
commit c7963e5126
19 changed files with 1413 additions and 151 deletions

View File

@@ -6,6 +6,8 @@ import { RemoteData } from '../../data/remote-data';
import { DSpaceObject } from '../../shared/dspace-object.model';
import { HALLink } from '../../shared/hal-link.model';
import { EPerson } from './eperson.model';
import { EPERSON } from './eperson.resource-type';
import { GROUP } from './group.resource-type';
@typedObject
@@ -13,6 +15,12 @@ import { GROUP } from './group.resource-type';
export class Group extends DSpaceObject {
static type = GROUP;
/**
* A string representing the unique name of this Group
*/
@autoserialize
public name: string;
/**
* A string representing the unique handle of this Group
*/
@@ -32,6 +40,7 @@ export class Group extends DSpaceObject {
_links: {
self: HALLink;
groups: HALLink;
epersons: HALLink;
};
/**
@@ -41,4 +50,11 @@ export class Group extends DSpaceObject {
@link(GROUP, true)
public groups?: Observable<RemoteData<PaginatedList<Group>>>;
/**
* The list of EPeople in this group
* Will be undefined unless the epersons {@link HALLink} has been resolved.
*/
@link(EPERSON, true)
public epersons?: Observable<RemoteData<PaginatedList<EPerson>>>;
}