mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 21:13:07 +00:00
Moved all objects to a single data store: the cache.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user