mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
Added first release of the authentication module
This commit is contained in:
19
src/app/core/auth/auth-object-factory.ts
Normal file
19
src/app/core/auth/auth-object-factory.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user