Moved all objects to a single data store: the cache.

This commit is contained in:
Art Lowel
2017-02-15 15:57:38 +01:00
parent c8fb98760d
commit 2e5441d6f7
18 changed files with 240 additions and 55 deletions

View File

@@ -1,11 +1,12 @@
import { autoserialize, autoserializeAs } from "cerialize";
import { Metadatum } from "./metadatum.model"
import { isEmpty, isNotEmpty } from "../../shared/empty.util";
import { CacheableObject } from "../data-services/cache/cache.reducer";
/**
* An abstract model class for a DSpaceObject.
*/
export abstract class DSpaceObject {
export abstract class DSpaceObject implements CacheableObject {
/**
* The identifier of this DSpaceObject
@@ -64,4 +65,12 @@ export abstract class DSpaceObject {
return undefined;
}
}
get uuid(): string {
return this.id;
}
set uuid(val: string) {
this.id = val;
}
}