mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
followlinks
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { Observable } from 'rxjs';
|
||||
import { link } from '../../cache/builders/build-decorators';
|
||||
|
||||
import { CacheableObject } from '../../cache/object-cache.reducer';
|
||||
import { DSpaceObject } from '../../shared/dspace-object.model';
|
||||
import { RemoteData } from '../../data/remote-data';
|
||||
import { HALLink } from '../../shared/hal-link.model';
|
||||
import { WorkflowItem } from '../../submission/models/workflowitem.model';
|
||||
import { ResourceType } from '../../shared/resource-type';
|
||||
import { EPerson } from '../../eperson/models/eperson.model';
|
||||
@@ -32,15 +34,26 @@ export class TaskObject extends DSpaceObject implements CacheableObject {
|
||||
/**
|
||||
* The group of this task
|
||||
*/
|
||||
eperson: Observable<RemoteData<EPerson>>;
|
||||
@link(EPerson)
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
|
||||
/**
|
||||
* The group of this task
|
||||
*/
|
||||
group: Observable<RemoteData<Group>>;
|
||||
@link(Group)
|
||||
group?: Observable<RemoteData<Group>>;
|
||||
|
||||
/**
|
||||
* The workflowitem object whom this task is related
|
||||
*/
|
||||
workflowitem: Observable<RemoteData<WorkflowItem>> | WorkflowItem;
|
||||
@link(WorkflowItem)
|
||||
workflowitem?: Observable<RemoteData<WorkflowItem>> | WorkflowItem;
|
||||
|
||||
_links: {
|
||||
self: HALLink,
|
||||
eperson: HALLink,
|
||||
group: HALLink,
|
||||
workflowitem: HALLink,
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user