Table of Contents

Class ElementService

Namespace
JJMasterData.Core.DataDictionary.Services
Assembly
JJMasterData.Core.dll
public class ElementService : BaseService
Inheritance
ElementService
Inherited Members

Constructors

ElementService(IFormElementComponentFactory<JJFormView>, IValidationDictionary, IStringLocalizer<MasterDataResources>, IEntityRepository, IDataDictionaryRepository, DataDictionaryFormElementFactory, IMasterDataUrlHelper)

public ElementService(IFormElementComponentFactory<JJFormView> formViewFactory, IValidationDictionary validationDictionary, IStringLocalizer<MasterDataResources> stringLocalizer, IEntityRepository entityRepository, IDataDictionaryRepository dataDictionaryRepository, DataDictionaryFormElementFactory dataDictionaryFormElementFactory, IMasterDataUrlHelper urlHelper)

Parameters

formViewFactory IFormElementComponentFactory<JJFormView>
validationDictionary IValidationDictionary
stringLocalizer IStringLocalizer<MasterDataResources>
entityRepository IEntityRepository
dataDictionaryRepository IDataDictionaryRepository
dataDictionaryFormElementFactory DataDictionaryFormElementFactory
urlHelper IMasterDataUrlHelper

Methods

CreateEntityAsync(ElementBean)

public Task<FormElement?> CreateEntityAsync(ElementBean elementBean)

Parameters

elementBean ElementBean

Returns

Task<FormElement>

CreateStructureIfNotExistsAsync()

public Task CreateStructureIfNotExistsAsync()

Returns

Task

DuplicateEntityAsync(string, string)

public Task<bool> DuplicateEntityAsync(string originalElementName, string newName)

Parameters

originalElementName string
newName string

Returns

Task<bool>

ExportMultipleRowsAsync(List<Dictionary<string, object>>)

public Task<byte[]> ExportMultipleRowsAsync(List<Dictionary<string, object>> selectedRows)

Parameters

selectedRows List<Dictionary<string, object>>

Returns

Task<byte[]>

ExportSingleRowAsync(Dictionary<string, object>)

public Task<byte[]> ExportSingleRowAsync(Dictionary<string, object> row)

Parameters

row Dictionary<string, object>

Returns

Task<byte[]>

GetFormView()

public JJFormView GetFormView()

Returns

JJFormView

Import(Stream)

public Task<bool> Import(Stream file)

Parameters

file Stream

Returns

Task<bool>

ValidateEntityAsync(ElementBean)

public Task<bool> ValidateEntityAsync(ElementBean elementBean)

Parameters

elementBean ElementBean

Returns

Task<bool>