mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 05:23:06 +00:00
18 lines
562 B
TypeScript
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;
|
|
}
|
|
}
|
|
}
|
|
}
|