Ejemplo n.º 1
0
 private bool CompareName(DefaultPermissionInfo permission)
 {
     if (this.Name == null)
         return permission.Name == null;
     else
         return this.Name.Equals(permission.Name);
 }
Ejemplo n.º 2
0
 private bool CompareAction(DefaultPermissionInfo permission)
 {
     if (this.Action == null)
         return permission.Action == null;
     else
         return this.Action.Equals(permission.Action);
 }
Ejemplo n.º 3
0
 private bool CompareAction(DefaultPermissionInfo permission)
 {
     if (this.Action == null)
     {
         return(permission.Action == null);
     }
     else
     {
         return(this.Action.Equals(permission.Action));
     }
 }
Ejemplo n.º 4
0
 private bool CompareName(DefaultPermissionInfo permission)
 {
     if (this.Name == null)
     {
         return(permission.Name == null);
     }
     else
     {
         return(this.Name.Equals(permission.Name));
     }
 }
Ejemplo n.º 5
0
        public override bool Contains(PermissionInfo permission)
        {
            DefaultPermissionInfo tp = permission as DefaultPermissionInfo;

            if (tp == null)
            {
                return(false);
            }
            if (!CompareName(tp))
            {
                return(false);
            }
            else
            {
                return(CompareAction(tp));
            }
        }
        public PermissionInfo Resolve(PermissionPoint permissionPoint)
        {
            DefaultPermissionInfo info = new DefaultPermissionInfo(permissionPoint.Name, permissionPoint.Action);

            return(info);
        }
 public PermissionInfo Resolve(PermissionPoint permissionPoint)
 {
     DefaultPermissionInfo info = new DefaultPermissionInfo(permissionPoint.Name, permissionPoint.Action);
     return info;
 }