1
0

Added distinct ids and uuids to the mock data

This commit is contained in:
Art Lowel
2017-02-16 15:52:50 +01:00
parent a952557616
commit de23b1aaeb
7 changed files with 51 additions and 57 deletions

View File

@@ -9,11 +9,17 @@ import { CacheableObject } from "../data-services/cache/cache.reducer";
export abstract class DSpaceObject implements CacheableObject {
/**
* The identifier of this DSpaceObject
* The human-readable identifier of this DSpaceObject
*/
@autoserialize
id: string;
/**
* The universally unique identifier of this DSpaceObject
*/
@autoserialize
uuid: string;
/**
* A string representing the kind of DSpaceObject, e.g. community, item, …
*/
@@ -65,12 +71,4 @@ export abstract class DSpaceObject implements CacheableObject {
return undefined;
}
}
get uuid(): string {
return this.id;
}
set uuid(val: string) {
this.id = val;
}
}