mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 02:54:13 +00:00
50 lines
1.0 KiB
TypeScript
50 lines
1.0 KiB
TypeScript
import { autoserialize, deserialize } from 'cerialize';
|
|
import { typedObject } from '../cache/builders/build-decorators';
|
|
import { CacheableObject } from '../cache/object-cache.reducer';
|
|
import { excludeFromEquals } from '../utilities/equals.decorators';
|
|
import { EXTERNAL_SOURCE } from './external-source.resource-type';
|
|
import { HALLink } from './hal-link.model';
|
|
import { ResourceType } from './resource-type';
|
|
|
|
/**
|
|
* Model class for an external source
|
|
*/
|
|
@typedObject
|
|
export class ExternalSource extends CacheableObject {
|
|
static type = EXTERNAL_SOURCE;
|
|
|
|
/**
|
|
* The object type
|
|
*/
|
|
@excludeFromEquals
|
|
@autoserialize
|
|
type: ResourceType;
|
|
|
|
/**
|
|
* Unique identifier
|
|
*/
|
|
@autoserialize
|
|
id: string;
|
|
|
|
/**
|
|
* The name of this external source
|
|
*/
|
|
@autoserialize
|
|
name: string;
|
|
|
|
/**
|
|
* Is the source hierarchical?
|
|
*/
|
|
@autoserialize
|
|
hierarchical: boolean;
|
|
|
|
/**
|
|
* The {@link HALLink}s for this ExternalSource
|
|
*/
|
|
@deserialize
|
|
_links: {
|
|
self: HALLink;
|
|
entries: HALLink;
|
|
};
|
|
}
|