Пример #1
0
 public ACL(string groupName, string fullName, bool enabled, imNOS nos, imAccessRight right)
 {
     GroupName = groupName;
     FullName  = fullName;
     Enabled   = enabled;
     Nos       = nos;
     Right     = right;
 }
Пример #2
0
        private static WsAccessRight GetWsAccessRight(imAccessRight imAccessRight)
        {
            switch (imAccessRight)
            {
            case imAccessRight.imRightAll:
                return(WsAccessRight.ALL);

            case imAccessRight.imRightNone:
                return(WsAccessRight.NONE);

            case imAccessRight.imRightRead:
                return(WsAccessRight.READ);

            case imAccessRight.imRightReadWrite:
                return(WsAccessRight.READWRITE);

            default:
                return(WsAccessRight.NONE);
            }
        }