Exemplo n.º 1
0
        public Operation(string name, Operation other)
        {
            if (name == DEFAULT_OPERATION)
                throw new ArgumentException("Operation name 'Default' is reserved.");

            operation = name;
            list = other.list.Clone() as AccessControlList;
        }
Exemplo n.º 2
0
 public object Clone()
 {
     AccessControlList list = new AccessControlList();
     foreach (string user in entries.Keys)
     {
         list.AddPermission(user);
     }
     return list;
 }
Exemplo n.º 3
0
 public Operation(OperationSettings settings)
 {
     operation = settings.Name;
     list      = new AccessControlList(settings.ACL);
 }
Exemplo n.º 4
0
 public Operation(Operation other)
 {
     operation = DEFAULT_OPERATION;
     list      = other.list.Clone() as AccessControlList;
 }
Exemplo n.º 5
0
 public Operation(OperationSettings settings)
 {
     operation = settings.Name;
     list = new AccessControlList(settings.ACL);
 }
Exemplo n.º 6
0
 public Operation(Operation other)
 {
     operation = DEFAULT_OPERATION;
     list = other.list.Clone() as AccessControlList;
 }