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, IMasterDataUrlHelper)
public ElementService(IFormElementComponentFactory<JJFormView> formViewFactory, IValidationDictionary validationDictionary, IStringLocalizer<MasterDataResources> stringLocalizer, IEntityRepository entityRepository, IDataDictionaryRepository dataDictionaryRepository, DataDictionaryFormElementFactory dataDictionaryFormElementFactory, IMasterDataUrlHelper urlHelper)
Parameters
formViewFactory
IFormElementComponentFactory<JJFormView>validationDictionary
IValidationDictionarystringLocalizer
IStringLocalizer<MasterDataResources>entityRepository
IEntityRepositorydataDictionaryRepository
IDataDictionaryRepositorydataDictionaryFormElementFactory
DataDictionaryFormElementFactoryurlHelper
IMasterDataUrlHelper
Methods
CreateEntityAsync(ElementBean)
public Task<FormElement?> CreateEntityAsync(ElementBean elementBean)
Parameters
elementBean
ElementBean
Returns
CreateStructureIfNotExistsAsync()
public Task CreateStructureIfNotExistsAsync()
Returns
DeleteAsync(string?)
public Task DeleteAsync(string? elementName)
Parameters
elementName
string
Returns
DuplicateEntityAsync(string, string)
public Task<bool> DuplicateEntityAsync(string originalElementName, string newName)
Parameters
Returns
ExportMultipleRowsAsync(List<Dictionary<string, object>>)
public Task<byte[]> ExportMultipleRowsAsync(List<Dictionary<string, object>> selectedRows)
Parameters
selectedRows
List<Dictionary<string, object>>
Returns
ExportSingleRowAsync(Dictionary<string, object>)
public Task<byte[]> ExportSingleRowAsync(Dictionary<string, object> row)
Parameters
row
Dictionary<string, object>
Returns
GetFormView()
public JJFormView GetFormView()
Returns
Import(Stream)
public Task<bool> Import(Stream file)
Parameters
file
Stream
Returns
ValidateEntityAsync(ElementBean)
public Task<bool> ValidateEntityAsync(ElementBean elementBean)
Parameters
elementBean
ElementBean