コード例 #1
0
        public virtual PermissionCheckBuilder AtomicCheck(Resources resource, string queryParam, Permissions permission)
        {
            var permCheck = new PermissionCheck();

            permCheck.Resource             = resource;
            permCheck.ResourceIdQueryParam = queryParam;
            permCheck.Permission           = permission;
            atomicChecks.Add(permCheck);

            return(this);
        }
コード例 #2
0
        public virtual PermissionCheckBuilder AtomicCheckForResourceId(Resources resource, string resourceId,
                                                                       Permissions permission)
        {
            var permCheck = new PermissionCheck();

            permCheck.Resource   = resource;
            permCheck.ResourceId = resourceId;
            permCheck.Permission = permission;
            atomicChecks.Add(permCheck);

            return(this);
        }
コード例 #3
0
 public virtual void AddAtomicCheck(PermissionCheck permissionCheck)
 {
     atomicChecks.Add(permissionCheck);
 }