Edit Community - Assign Roles/Groups (Angular)

This commit is contained in:
Samuel
2020-03-25 15:21:05 +01:00
parent 9adafac6c7
commit 6a828f9286
16 changed files with 523 additions and 11 deletions

View File

@@ -3,6 +3,8 @@ import { Observable } from 'rxjs';
import { link, typedObject } from '../cache/builders/build-decorators';
import { PaginatedList } from '../data/paginated-list';
import { RemoteData } from '../data/remote-data';
import { Group } from '../eperson/models/group.model';
import { GROUP } from '../eperson/models/group.resource-type';
import { Bitstream } from './bitstream.model';
import { BITSTREAM } from './bitstream.resource-type';
import { Collection } from './collection.model';
@@ -32,6 +34,7 @@ export class Community extends DSpaceObject implements ChildHALResource {
logo: HALLink;
subcommunities: HALLink;
parentCommunity: HALLink;
adminGroup: HALLink;
self: HALLink;
};
@@ -63,6 +66,12 @@ export class Community extends DSpaceObject implements ChildHALResource {
@link(COMMUNITY, false)
parentCommunity?: Observable<RemoteData<Community>>;
/**
* The administrators group of this community.
*/
@link(GROUP)
adminGroup?: Observable<RemoteData<Group>>;
/**
* The introductory text of this Community
* Corresponds to the metadata field dc.description