mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
Refactored IntegrationService
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { GenericConstructor } from '../shared/generic-constructor';
|
||||
import { IntegrationType } from './intergration-type';
|
||||
import { AuthorityValueModel } from './models/authority-value.model';
|
||||
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 AuthorityValueModel;
|
||||
return NormalizedAuthorityValue;
|
||||
}
|
||||
default: {
|
||||
return undefined;
|
||||
|
Reference in New Issue
Block a user