mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
69111: Groups admin page, WIP
This commit is contained in:
@@ -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>>>;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user