public override void DeniedBy(SystemAdmin admin, SystemPermission permission)
        {
            if (!permission.Admin.Equals(admin))
            {
                return;
            }

            permission.Granted = false;
            permission.UnixPermissionGranted = false;
            permission.State = PermissionState.DENIED;
            NotifyUserOfPermissionRequestResult();
        }
Esempio n. 2
0
        public override void GrantedBy(SystemAdmin admin, SystemPermission permission)
        {
            if (!permission.Admin.Equals(admin))
            {
                return;
            }

            if (permission.Profile.IsUnixPermissionRequired() &&
                !permission.IsUnixPermissionGranted())
            {
                permission.State = PermissionState.UNIX_REQUESTED;
                NotifyUnixAdminsOfPermissionRequest();
                return;
            }
            permission.State   = PermissionState.GRANTED;
            permission.Granted = true;
            NotifyUserOfPermissionRequestResult();
        }
        public override void ClaimedBy(SystemAdmin admin, SystemPermission permission)
        {
            WillBeHandledBy(admin);

            permission.State = PermissionState.UNIX_CLAIMED;
        }
Esempio n. 4
0
 public virtual void DeniedBy(SystemAdmin admin, SystemPermission permission)
 {
     // do nothing.
 }
Esempio n. 5
0
 protected void WillBeHandledBy(SystemAdmin systemAdmin)
 {
     // handle code goes here.
 }