Table of Contents

Class ElementService

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

Constructors

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

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

Parameters

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

Methods

CreateEntityAsync(ElementBean)

public Task<FormElement?> CreateEntityAsync(ElementBean elementBean)

Parameters

elementBean ElementBean

Returns

Task<FormElement>

CreateStructureIfNotExistsAsync()

public Task CreateStructureIfNotExistsAsync()

Returns

Task

DeleteAsync(string?)

public Task DeleteAsync(string? elementName)

Parameters

elementName string

Returns

Task

DuplicateEntityAsync(string, string)

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

Parameters

originalElementName string
newName string

Returns

Task<bool>

GetFormView()

public JJFormView GetFormView()

Returns

JJFormView

ValidateEntityAsync(ElementBean)

public Task<bool> ValidateEntityAsync(ElementBean elementBean)

Parameters

elementBean ElementBean

Returns

Task<bool>