mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
remove normalized models part 1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Observable } from 'rxjs';
|
||||
import { link } from '../../cache/builders/build-decorators';
|
||||
import { link, resourceType } from '../../cache/builders/build-decorators';
|
||||
|
||||
import { CacheableObject } from '../../cache/object-cache.reducer';
|
||||
import { RemoteData } from '../../data/remote-data';
|
||||
@@ -15,6 +15,7 @@ import { TASK_OBJECT } from './task-object.resource-type';
|
||||
/**
|
||||
* An abstract model class for a TaskObject.
|
||||
*/
|
||||
@resourceType(TaskObject.type)
|
||||
export class TaskObject extends DSpaceObject implements CacheableObject {
|
||||
static type = TASK_OBJECT;
|
||||
|
||||
@@ -34,19 +35,22 @@ export class TaskObject extends DSpaceObject implements CacheableObject {
|
||||
action: string;
|
||||
|
||||
/**
|
||||
* The group of this task
|
||||
* The EPerson for this task
|
||||
* Will be undefined unless the eperson HALLink has been resolved.
|
||||
*/
|
||||
@link(EPERSON)
|
||||
eperson?: Observable<RemoteData<EPerson>>;
|
||||
|
||||
/**
|
||||
* The group of this task
|
||||
* The Group for this task
|
||||
* Will be undefined unless the group HALLink has been resolved.
|
||||
*/
|
||||
@link(GROUP)
|
||||
group?: Observable<RemoteData<Group>>;
|
||||
|
||||
/**
|
||||
* The workflowitem object whom this task is related
|
||||
* The WorkflowItem for this task
|
||||
* Will be undefined unless the workflowitem HALLink has been resolved.
|
||||
*/
|
||||
@link(WorkflowItem.type)
|
||||
workflowitem?: Observable<RemoteData<WorkflowItem>> | WorkflowItem;
|
||||
|
Reference in New Issue
Block a user