Added first release of the authentication module

This commit is contained in:
Giuseppe Digilio
2018-02-06 15:48:05 +01:00
parent 8f28429fe6
commit 19c9482009
49 changed files with 1532 additions and 110 deletions

View File

@@ -0,0 +1,19 @@
import { AuthType } from './auth-type';
import { AuthStatus } from './models/auth-status.model';
import { GenericConstructor } from '../shared/generic-constructor';
import { DSpaceObject } from '../shared/dspace-object.model';
export class AuthObjectFactory {
public static getConstructor(type): GenericConstructor<DSpaceObject> {
switch (type) {
case AuthType.Status: {
return AuthStatus
}
default: {
return undefined;
}
}
}
}