Exemplo n.º 1
0
 public void ReloadRestrictions()
 {
     ClearRestrictions();
     if (BusinessDomain.DataAccessProvider != null)
     {
         SetRestrictions(UserRestriction.GetAll());
     }
 }
Exemplo n.º 2
0
        public override object Clone()
        {
            RestrictionNode clone = (RestrictionNode)base.Clone();

            clone.restrictions = new Dictionary <long, UserRestriction> ();
            foreach (KeyValuePair <long, UserRestriction> restriction in restrictions)
            {
                UserRestriction userRestriction = new UserRestriction(restriction.Value.UserId, restriction.Value.Name, restriction.Value.State);
                clone.restrictions.Add(restriction.Key, userRestriction);
            }
            return(clone);
        }
Exemplo n.º 3
0
 public void SaveRestrictions()
 {
     UserRestriction.CommitChanges(GetAllRestrictions(this));
 }