refactor all remaining self links in mocks

This commit is contained in:
Art Lowel
2020-02-17 14:45:28 +01:00
parent 8551d730d8
commit 025948e3a0
13 changed files with 143 additions and 40 deletions

View File

@@ -52,12 +52,22 @@ export class DSpaceObject extends ListableObject implements CacheableObject {
type: ResourceType;
/**
* A shorthand for this DSpaceObject's self link
* A shorthand to get this DSpaceObject's self link
*/
get self(): string {
return this._links.self.href;
}
/**
* A shorthand to set this DSpaceObject's self link
*/
set self(v: string) {
debugger;
this._links.self = {
href: v
};
}
/**
* The name for this DSpaceObject
*/