Inheritance: GlymaPermission
Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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;
 }