Represents a change to an object in a resource.
Exemplo n.º 1
0
 /// <summary>
 /// Creates a new <code>SyncDeltaBuilder</code> whose
 /// values are initialized to those of the delta.
 /// </summary>
 /// <param name="delta">The original delta.</param>
 public SyncDeltaBuilder(SyncDelta delta)
 {
     _token = delta.Token;
     _deltaType = delta.DeltaType;
     _previousUid = delta.PreviousUid;
     _uid = delta.Uid;
     _object = delta.Object;
 }
Exemplo n.º 2
0
 private bool Equals(SyncDelta other)
 {
     return Equals(_token, other._token) && _deltaType == other._deltaType && Equals(_previousUid, other._previousUid) && Equals(_objectClass, other._objectClass) && Equals(_uid, other._uid) && Equals(_object, other._object);
 }
 /// <summary>
 /// Process/handle the SyncDelta result
 /// </summary>
 /// <param name="result"></param>
 /// <returns></returns>
 public Object Process(SyncDelta result)
 {
     return _handler.Handle(result);
 }
Exemplo n.º 4
0
 public bool Handle(SyncDelta obj)
 {
     return _target.Handle(obj);
 }
 public bool SyncHandler_Mixed(SyncDelta delta)
 {
     return true;
 }
 public bool SyncHandler_Initial(SyncDelta delta)
 {
     // do nothing .. just establishing the baseline
     _token = delta.Token;
     return true;
 }
            public bool SyncHandler_ModifiedAccounts(SyncDelta delta)
            {
                _token = delta.Token;
                if(delta.DeltaType.Equals(SyncDeltaType.CREATE_OR_UPDATE)) {
                    // just ignore extra ones.  they might have come in by other means
                    if (_mods.ContainsKey(delta.Uid))
                    {
                        ICollection<ConnectorAttribute> requestedAttrs = _mods[delta.Uid];

                        ActiveDirectoryConnectorTest.VerifyObject(requestedAttrs,
                            delta.Object);
                        _mods.Remove(delta.Uid);
                    }
                }
                return true;
            }
            public bool SyncHandler_DeletedAccounts(SyncDelta delta)
            {
                _token = delta.Token;

                _dels.Remove(delta.Uid);
                return true;
            }