using System;
using System.Collections.Generic;
using System.Text;
namespace ScrewTurn.Wiki.AclEngine {
///
/// Contains arguments for the event.
///
public class AclChangedEventArgs : EventArgs {
private AclEntry[] entries;
private Change change;
///
/// Initializes a new instance of the class.
///
/// The entries that changed.
/// The change.
/// If is null.
/// If is empty.
public AclChangedEventArgs(AclEntry[] entries, Change change) {
if(entries == null) throw new ArgumentNullException("entry");
if(entries.Length == 0) throw new ArgumentException("Entries cannot be empty", "entries");
this.entries = entries;
this.change = change;
}
///
/// Gets the entries that changed.
///
public AclEntry[] Entries {
get { return entries; }
}
///
/// Gets the change.
///
public Change Change {
get { return change; }
}
}
///
/// Lists legal changes for ACL entries.
///
public enum Change {
///
/// An entry is stored.
///
EntryStored,
///
/// An entry is deleted.
///
EntryDeleted
}
}