public void RemoveAccessPredicate(string principalId,
                                   string operationId,
                                   ResourceHandle resource,
                                   ResourceAccessPredicateType type)
 {
     DBHelper.ExecuteNonQuery("RemoveAccessPredicate", principalId, operationId, resource.AfcasKey, ( int )type);
 }
 public ResourceAccessPredicate(string principalId,
                                string operationId,
                                ResourceHandle resource,
                                ResourceAccessPredicateType accessPredicateType)
 {
     _AccessPredicateType = accessPredicateType;
     _PrincipalId         = principalId;
     _Resource            = resource;
     _OperationId         = operationId;
 }
 public void AddAccessPredicate(string principalId,
                                string operationId,
                                ResourceHandle resource,
                                ResourceAccessPredicateType type)
 {
     if (type != ResourceAccessPredicateType.Grant)
     {
         throw new ArgumentException("Explicit denials are not supported!");
     }
     DBHelper.ExecuteNonQuery("AddAccessPredicate", principalId, operationId, resource.AfcasKey, ( int )type);
 }