public IGlymaPermission CreateGlymaPermission(GlymaPermissionLevel permissionLevel) { IGlymaPermission permissionObject = null; switch (permissionLevel) { case GlymaPermissionLevel.GlymaSecurityManager: permissionObject = new GlymaSecurityManager(Context); break; case GlymaPermissionLevel.GlymaProjectManager: permissionObject = new GlymaProjectManager(Context); break; case GlymaPermissionLevel.GlymaMapManager: permissionObject = new GlymaMapManager(Context); break; case GlymaPermissionLevel.GlymaMapAuthor: permissionObject = new GlymaMapAuthor(Context); break; case GlymaPermissionLevel.GlymaMapReader: permissionObject = new GlymaMapReader(Context); break; } return(permissionObject); }
public IGlymaPermission CreateGlymaPermission(GlymaPermissionLevel permissionLevel) { IGlymaPermission permissionObject = null; switch (permissionLevel) { case GlymaPermissionLevel.GlymaSecurityManager: permissionObject = new GlymaSecurityManager(Context); break; case GlymaPermissionLevel.GlymaProjectManager: permissionObject = new GlymaProjectManager(Context); break; case GlymaPermissionLevel.GlymaMapManager: permissionObject = new GlymaMapManager(Context); break; case GlymaPermissionLevel.GlymaMapAuthor: permissionObject = new GlymaMapAuthor(Context); break; case GlymaPermissionLevel.GlymaMapReader: permissionObject = new GlymaMapReader(Context); break; } return permissionObject; }