remove normalized models part 1

This commit is contained in:
Art Lowel
2020-02-13 09:53:52 +01:00
parent bffae34fcc
commit 07998a8c08
137 changed files with 1323 additions and 1444 deletions

View File

@@ -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;