Interface ISetItemInfo
Generalizes the methods for importing an ISetItemInfo
Namespace: LemonEdge.Core
Assembly: 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 |
---|---|
System.Collections.Generic.IEnumerable<ISetItemInfo> |
Methods
Import(IEntityUpdater, UserInfo, IReadOnlyCache, Boolean)
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 |
System.Boolean | forceNewItem | Indicates regardless of any current matching item, this will force the creation of a new item when importing this definition |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task indicating when this operation is complete |