Files
dspace-angular/src/app/core/integration/integration-object-factory.ts
2018-10-17 09:17:02 +02:00

18 lines
562 B
TypeScript

import { GenericConstructor } from '../shared/generic-constructor';
import { IntegrationType } from './intergration-type';
import { IntegrationModel } from './models/integration.model';
import { NormalizedAuthorityValue } from './models/normalized-authority-value.model';
export class IntegrationObjectFactory {
public static getConstructor(type): GenericConstructor<IntegrationModel> {
switch (type) {
case IntegrationType.Authority: {
return NormalizedAuthorityValue;
}
default: {
return undefined;
}
}
}
}