Inheritance: GlymaPermission
コード例 #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);
        }
コード例 #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;
 }