Interface ISetItemInfo
Generalizes the methods for importing an ISetItemInfo
Namespace: LemonEdge.API.Core.DataIntegration
Assembly: LemonEdge.API.dll
Syntax
public interface ISetItemInfo
Properties
CopiedEntity
During importing, this holds a new item that has been created as a copy of the original item stored by thie ISetItemInfo with all the relevant relationships/etc updated accordingly
Declaration
IBaseEntity CopiedEntity { get; set; }
Property Value
Type | Description |
---|---|
IBaseEntity |
Remarks
For instance if this original item references child items then the CopiedEntity would have those references updated to point to the new CopiedEntity for those child items rather than the original
GetAllItems
Returns all items, including this one itself, in the tree through all child items
Declaration
IEnumerable<ISetItemInfo> GetAllItems { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ISetItemInfo> |
Parent
Declaration
ISetItemInfo Parent { get; }
Property Value
Type | Description |
---|---|
ISetItemInfo |
SourceEntity
The original entity being copied/imported
Declaration
IBaseEntity SourceEntity { get; set; }
Property Value
Type | Description |
---|---|
IBaseEntity |
Methods
Import(IEntityUpdater, UserInfo, IReadOnlyCache, bool)
Imports all items defined in this SetItemInfo into the specified host
context
Declaration
Task Import(IEntityUpdater host, UserInfo user, IReadOnlyCache cache, bool forceNewItem)
Parameters
Type | Name | Description |
---|---|---|
IEntityUpdater | host | The host context to import all items defined in this SetItemInfo into |
UserInfo | user | The user performing this import routine, and thus the permissions they have will be used |
IReadOnlyCache | cache | A local cache |
bool | forceNewItem | Indicates regardless of any current matching item, this will force the creation of a new item when importing this definition |
Returns
Type | Description |
---|---|
Task | The task indicating when this operation is complete |