コード例 #1
0
        private static RowEntry ConvertToRowEntry(AclTableEntry.ModifyOperation aclModifyOperation)
        {
            switch (aclModifyOperation.Operation)
            {
            case ModifyTableOperationType.Add:
                return(RowEntry.Add(new PropValue[]
                {
                    new PropValue(PropTag.EntryId, aclModifyOperation.Entry.MemberEntryId),
                    new PropValue(PropTag.MemberRights, aclModifyOperation.Entry.MemberRights)
                }));

            case ModifyTableOperationType.Modify:
                return(RowEntry.Modify(new PropValue[]
                {
                    new PropValue(PropTag.MemberId, aclModifyOperation.Entry.MemberId),
                    new PropValue(PropTag.MemberRights, aclModifyOperation.Entry.MemberRights)
                }));

            case ModifyTableOperationType.Remove:
                return(RowEntry.Remove(new PropValue[]
                {
                    new PropValue(PropTag.MemberId, aclModifyOperation.Entry.MemberId)
                }));

            default:
                return(RowEntry.Empty());
            }
        }