public PagePermission(PermissionCore owner)
        {
            this.Owner = owner;

            this.ButtonPermissions     = new ButtonPermissionCollection();
            this.ControlPermissions    = new ControlPermissionCollection();
            this.GridColumnPermissions = new GridColumnPermissionCollection(this.Owner);
        }
Beispiel #2
0
        public Permission(XmlNode xmlNode, PermissionCore owner)
            : this(owner)
        {
            this.Name = xmlNode.Attributes["Name"].Value;
            this.Id   = int.Parse(xmlNode.Attributes["Id"].Value);

            if (xmlNode.Attributes["Section"] != null)
            {
                this.IdSection = int.Parse(xmlNode.Attributes["Section"].Value);
            }
            else
            {
                this.IdSection = null;
            }
        }
Beispiel #3
0
        public GridColumnPermissionCollection(PermissionCore owner, XmlNode xmlNode)
            : this(owner)
        {
            // Get all GridColumnPermission xml nodes.
            XmlNodeList xmlNodesGridColumnPermissions = xmlNode.SelectNodes("GridColumn");

            // Run through all GridColumnPermission xml nodes.
            foreach (XmlNode xmlNodeGridColumnPermission in xmlNodesGridColumnPermissions)
            {
                // Create a new GridColumnPermission using the xml node.
                GridColumnPermission GridColumnPermission = new GridColumnPermission(this, xmlNodeGridColumnPermission);

                // Add the new GridColumnPermission to the collection's items.
                this.Items.Add(GridColumnPermission);
            }
        }
Beispiel #4
0
 public Permission(int id, PermissionCore owner)
     : this(owner)
 {
     ReadFromXml("Id", id);
 }
Beispiel #5
0
 public Permission(string name, PermissionCore owner)
     : this(owner)
 {
     ReadFromXml("Name", name);
 }
Beispiel #6
0
 public Permission(PermissionCore owner)
 {
     this.Owner = owner;
 }
 public SectionCollection(PermissionCore owner)
 {
     this.Items = new List <Section>();
     this.Owner = owner;
 }
Beispiel #8
0
 public GridColumnPermissionCollection(PermissionCore owner)
 {
     this.Items = new List <GridColumnPermission>();
     this.Owner = owner;
 }
 public PagePermission(PermissionCore owner, string pageName, Permission permission)
     : this(owner)
 {
     this.PageName   = pageName;
     this.Permission = permission;
 }