mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Merged dynamic form module
This commit is contained in:
17
src/app/core/integration/integration-object-factory.ts
Normal file
17
src/app/core/integration/integration-object-factory.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { GenericConstructor } from '../shared/generic-constructor';
|
||||
import { IntegrationType } from './intergration-type';
|
||||
import { AuthorityValueModel } from './models/authority-value.model';
|
||||
import { IntegrationModel } from './models/integration.model';
|
||||
|
||||
export class IntegrationObjectFactory {
|
||||
public static getConstructor(type): GenericConstructor<IntegrationModel> {
|
||||
switch (type) {
|
||||
case IntegrationType.Authority: {
|
||||
return AuthorityValueModel;
|
||||
}
|
||||
default: {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user