Implements MetadataValue and MetadataMap interfaces

This commit is contained in:
Giuseppe Digilio
2019-02-22 12:22:30 +01:00
parent 32a9b7fd2f
commit 6911d6f6ad
3 changed files with 7 additions and 4 deletions

View File

@@ -2,11 +2,12 @@ import { IntegrationModel } from './integration.model';
import { isNotEmpty } from '../../../shared/empty.util';
import { PLACEHOLDER_PARENT_METADATA } from '../../../shared/form/builder/ds-dynamic-form-ui/models/relation-group/dynamic-relation-group.model';
import { OtherInformation } from '../../../shared/form/builder/models/form-field-metadata-value.model';
import { MetadataValue } from '../../shared/metadata.interfaces';
/**
* Class representing an authority object
*/
export class AuthorityValue extends IntegrationModel {
export class AuthorityValue extends IntegrationModel implements MetadataValue {
/**
* The identifier of this authority

View File

@@ -1,5 +1,6 @@
import { FormFieldMetadataValueObject } from '../../../shared/form/builder/models/form-field-metadata-value.model';
import { MetadataMap } from '../../shared/metadata.interfaces';
export interface WorkspaceitemSectionFormObject {
[metadata: string]: FormFieldMetadataValueObject;
export interface WorkspaceitemSectionFormObject extends MetadataMap {
[metadata: string]: FormFieldMetadataValueObject[];
}

View File

@@ -1,12 +1,13 @@
import { isEmpty, isNotEmpty, isNotNull } from '../../../empty.util';
import { ConfidenceType } from '../../../../core/integration/models/confidence-type';
import { PLACEHOLDER_PARENT_METADATA } from '../ds-dynamic-form-ui/models/relation-group/dynamic-relation-group.model';
import { MetadataValue } from '../../../../core/shared/metadata.interfaces';
export interface OtherInformation {
[name: string]: string
}
export class FormFieldMetadataValueObject {
export class FormFieldMetadataValueObject implements MetadataValue {
metadata?: string;
value: any;
display: string;