Table of Contents

Class ActionsService

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

Constructors

ActionsService(IValidationDictionary, IStringLocalizer<MasterDataResources>, IDataDictionaryRepository, IEnumerable<IExpressionProvider>, IEnumerable<IPluginHandler>)

public ActionsService(IValidationDictionary validationDictionary, IStringLocalizer<MasterDataResources> stringLocalizer, IDataDictionaryRepository dataDictionaryRepository, IEnumerable<IExpressionProvider> expressionProviders, IEnumerable<IPluginHandler> pluginHandlers)

Parameters

validationDictionary IValidationDictionary
stringLocalizer IStringLocalizer<MasterDataResources>
dataDictionaryRepository IDataDictionaryRepository
expressionProviders IEnumerable<IExpressionProvider>
pluginHandlers IEnumerable<IPluginHandler>

Methods

DeleteActionAsync(string, string, ActionSource, string)

public Task<bool> DeleteActionAsync(string elementName, string actionName, ActionSource context, string fieldName = null)

Parameters

elementName string
actionName string
context ActionSource
fieldName string

Returns

Task<bool>

EnableDisable(string, string, ActionSource, bool)

public Task<bool> EnableDisable(string elementName, string actionName, ActionSource actionContext, bool visibility)

Parameters

elementName string
actionName string
actionContext ActionSource
visibility bool

Returns

Task<bool>

GetFieldList(string)

public Task<Dictionary<string, string>> GetFieldList(string elementName)

Parameters

elementName string

Returns

Task<Dictionary<string, string>>

SaveAction(string, BasicAction, ActionSource, string, string)

public Task<bool> SaveAction(string elementName, BasicAction action, ActionSource context, string originalName, string fieldName = null)

Parameters

elementName string
action BasicAction
context ActionSource
originalName string
fieldName string

Returns

Task<bool>

SortActionsAsync(string, string[], ActionSource, string)

public Task<bool> SortActionsAsync(string elementName, string[] listAction, ActionSource actionContext, string fieldName)

Parameters

elementName string
listAction string[]
actionContext ActionSource
fieldName string

Returns

Task<bool>