removed remaining normalized models and related services

This commit is contained in:
Art Lowel
2020-02-14 18:06:17 +01:00
parent 884e94a08b
commit bc7c92f44c
104 changed files with 397 additions and 1343 deletions

View File

@@ -1,3 +1,4 @@
import { autoserialize, deserialize, inheritSerialization } from 'cerialize';
import { Observable } from 'rxjs';
import { link, resourceType } from '../../cache/builders/build-decorators';
@@ -16,24 +17,39 @@ import { TASK_OBJECT } from './task-object.resource-type';
* An abstract model class for a TaskObject.
*/
@resourceType(TaskObject.type)
@inheritSerialization(DSpaceObject)
export class TaskObject extends DSpaceObject implements CacheableObject {
static type = TASK_OBJECT;
/**
* The task identifier
*/
@autoserialize
id: string;
/**
* The workflow step
*/
@autoserialize
step: string;
/**
* The task action type
*/
@autoserialize
action: string;
/**
* The HALLinks for this TaskObject
*/
@deserialize
_links: {
self: HALLink;
eperson: HALLink;
group: HALLink;
workflowitem: HALLink;
};
/**
* The EPerson for this task
* Will be undefined unless the eperson HALLink has been resolved.
@@ -55,11 +71,4 @@ export class TaskObject extends DSpaceObject implements CacheableObject {
@link(WorkflowItem.type)
workflowitem?: Observable<RemoteData<WorkflowItem>> | WorkflowItem;
_links: {
self: HALLink,
eperson: HALLink,
group: HALLink,
workflowitem: HALLink,
}
}