/// <summary>
 /// Gets ChangedInRevisionEvent.
 /// </summary>
 public ITaxonRevisionEvent GetReplacedInRevisionEvent(IUserContext userContext)
 {
     if (_replacedInRevisionEvent.IsNull() &&
         ReplacedInTaxonRevisionEventId.HasValue)
     {
         _replacedInRevisionEvent = CoreData.TaxonManager.GetTaxonRevisionEvent(userContext,
                                                                                ReplacedInTaxonRevisionEventId.Value);
     }
     return(_replacedInRevisionEvent);
 }
 /// <summary>
 /// Gets RevisionEvent.
 /// </summary>
 public ITaxonRevisionEvent GetChangedInRevisionEvent(IUserContext userContext)
 {
     if (_changedInRevisionEvent.IsNull() &&
         ChangedInTaxonRevisionEventId.HasValue)
     {
         _changedInRevisionEvent = CoreData.TaxonManager.GetTaxonRevisionEvent(userContext,
                                                                               ChangedInTaxonRevisionEventId.Value);
     }
     return(_changedInRevisionEvent);
 }
 /// <summary>
 /// Sets ChangedInRevisionEvent.
 /// </summary>
 public void SetReplacedInRevisionEvent(ITaxonRevisionEvent replacedInRevisionEvent)
 {
     _replacedInRevisionEvent = replacedInRevisionEvent;
     if (_replacedInRevisionEvent.IsNull())
     {
         ReplacedInTaxonRevisionEventId = null;
     }
     else
     {
         ReplacedInTaxonRevisionEventId = _replacedInRevisionEvent.Id;
     }
 }
 /// <summary>
 /// Sets RevisionEvent.
 /// </summary>
 public void SetChangedInRevisionEvent(ITaxonRevisionEvent changedInRevisionEvent)
 {
     _changedInRevisionEvent = changedInRevisionEvent;
     if (_changedInRevisionEvent.IsNull())
     {
         ChangedInTaxonRevisionEventId = null;
     }
     else
     {
         ChangedInTaxonRevisionEventId = _changedInRevisionEvent.Id;
     }
 }
 /// <summary>
 /// Copies data from webobject to domainobject.
 /// </summary>
 /// <param name="userContext">
 /// The user context.
 /// </param>
 /// <param name="taxonRevisionEvent">
 /// The revision event.
 /// </param>
 /// <param name="webRevisionEvent">
 /// The web revision event.
 /// </param>
 private void UpdateTaxonRevisionEvent(
     IUserContext userContext,
     ITaxonRevisionEvent taxonRevisionEvent,
     WebTaxonRevisionEvent webRevisionEvent)
 {
     taxonRevisionEvent.AffectedTaxa = webRevisionEvent.AffectedTaxa;
     taxonRevisionEvent.CreatedBy    = webRevisionEvent.CreatedBy;
     taxonRevisionEvent.CreatedDate  = webRevisionEvent.CreatedDate;
     taxonRevisionEvent.DataContext  = GetDataContext(userContext);
     taxonRevisionEvent.Id           = webRevisionEvent.Id;
     taxonRevisionEvent.NewValue     = webRevisionEvent.NewValue;
     taxonRevisionEvent.OldValue     = webRevisionEvent.OldValue;
     taxonRevisionEvent.RevisionId   = webRevisionEvent.RevisionId;
     taxonRevisionEvent.Type         = CoreData.TaxonManager.GetTaxonRevisionEventType(userContext, webRevisionEvent.TypeId);
 }
        /// <summary>
        /// Convert a ITaxonRevisionEvent instance
        /// to a WebTaxonRevisionEvent instance.
        /// </summary>
        /// <param name="taxonRevisionEvent">A ITaxonRevisionEvent object.</param>
        /// <returns>A WebTaxonRevisionEvent instance.</returns>
        private WebTaxonRevisionEvent GetTaxonRevisionEvent(ITaxonRevisionEvent taxonRevisionEvent)
        {
            WebTaxonRevisionEvent webTaxonRevisionEvent;

            webTaxonRevisionEvent = null;
            if (taxonRevisionEvent.IsNotNull())
            {
                webTaxonRevisionEvent = new WebTaxonRevisionEvent();
                webTaxonRevisionEvent.AffectedTaxa = taxonRevisionEvent.AffectedTaxa;
                webTaxonRevisionEvent.CreatedBy    = taxonRevisionEvent.CreatedBy;
                webTaxonRevisionEvent.CreatedDate  = taxonRevisionEvent.CreatedDate;
                webTaxonRevisionEvent.Id           = taxonRevisionEvent.Id;
                webTaxonRevisionEvent.NewValue     = taxonRevisionEvent.NewValue;
                webTaxonRevisionEvent.OldValue     = taxonRevisionEvent.OldValue;
                webTaxonRevisionEvent.RevisionId   = taxonRevisionEvent.RevisionId;
                webTaxonRevisionEvent.TypeId       = taxonRevisionEvent.Type.Id;
            }

            return(webTaxonRevisionEvent);
        }
Exemplo n.º 7
0
 public void UpdateTaxonTreeSortOrder(IUserContext userContext, int taxonIdParent, List <int> taxonIdChildren, ITaxonRevisionEvent taxonRevisionEvent)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 8
0
 public void UpdateTaxonRevisionEvent(IUserContext userContext, ITaxonRevisionEvent taxonRevisionEvent)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 9
0
 public void SaveTaxonNames(IUserContext userContext, TaxonNameList taxonNames, ITaxonRevisionEvent taxonRevisionEvent)
 {
     return;
 }