forked from hazza/dspace-angular
Added distinct ids and uuids to the mock data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user