using System;
using System.Collections.Generic;
using System.Text;
namespace Csla.Security
{
  /// 
  /// Defines the authorization interface through which an
  /// object can indicate which properties the current
  /// user can read and write.
  /// 
  public interface IAuthorizeReadWrite
  {
    /// 
    /// Returns  if the user is allowed to write the
    /// to the specified property.
    /// 
    ///  if write is allowed.
    /// Name of the property to read.
    bool CanWriteProperty(string propertyName);
    /// 
    /// Returns  if the user is allowed to read the
    /// specified property.
    /// 
    ///  if read is allowed.
    /// Name of the property to read.
    bool CanReadProperty(string propertyName);
  }
}