68405: separate resource types, missing @link paras/followLinks, start test fix

This commit is contained in:
Marie Verdonck
2020-01-27 17:03:05 +01:00
committed by Art Lowel
parent b2f966eb83
commit f17e204712
86 changed files with 831 additions and 484 deletions

View File

@@ -2,14 +2,14 @@ import { Observable } from 'rxjs';
import { link } from '../cache/builders/build-decorators';
import { RemoteData } from '../data/remote-data';
import { BitstreamFormat } from './bitstream-format.model';
import { Bundle } from './bundle.model';
import { BITSTREAM_FORMAT } from './bitstream-format.resource-type';
import { BITSTREAM } from './bitstream.resource-type';
import { DSpaceObject } from './dspace-object.model';
import { HALResource } from './hal-resource.model';
import { HALLink } from './hal-link.model';
import { ResourceType } from './resource-type';
import { HALResource } from './hal-resource.model';
export class Bitstream extends DSpaceObject implements HALResource {
static type = new ResourceType('bitstream');
static type = BITSTREAM;
/**
* The size of this bitstream in bytes
@@ -34,19 +34,13 @@ export class Bitstream extends DSpaceObject implements HALResource {
/**
* The Bitstream Format for this Bitstream
*/
@link(BitstreamFormat.type)
@link(BITSTREAM_FORMAT)
format?: Observable<RemoteData<BitstreamFormat>>;
_links: {
// @link(Bitstream.type)
self: HALLink;
// @link(Bundle.type)
bundle: HALLink;
// @link(BitstreamFormat.type)
format: HALLink;
content: HALLink;
}
}