Пример #1
0
 public WorkFlowHandlerFinder(IAppContext appContext
                              , IDataFinder dataFinder)
 {
     _appContext  = appContext;
     _currentUser = _appContext.GetFeature <ICurrentUser>();
     _dataFinder  = dataFinder;
 }
Пример #2
0
        public AggFinder(
            IAppContext appContext
            , IDataFinder dataFinder
            , ISystemFormFinder systemFormFinder
            , IEntityFinder entityFinder
            , IRelationShipFinder relationShipFinder
            , IQueryViewFinder queryViewFinder
            , IFetchDataService fetchDataService

            , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
            , IPrincipalObjectAccessService principalObjectAccessService
            , IEventPublisher eventPublisher
            , IBusinessUnitService businessUnitService
            , IOrganizationDataRetriever organizationDataRetriever
            )
            : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
        {
            _organizationDataRetriever = organizationDataRetriever;
            _systemFormFinder          = systemFormFinder;
            _relationShipFinder        = relationShipFinder;
            _queryViewFinder           = queryViewFinder;
            _fetchService = fetchDataService;

            _dataFinder = dataFinder;
            User        = _appContext.GetFeature <ICurrentUser>();

            _aggregateRoot = new AggregateRoot();
        }
Пример #3
0
 public DataMapper(
     IAppContext appContext
     , IEntityFinder entityFinder
     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
     , IPrincipalObjectAccessService principalObjectAccessService
     , IEventPublisher eventPublisher
     , IBusinessUnitService businessUnitService
     , IOrganizationDataProvider organizationDataProvider
     , IEntityMapFinder entityMapFinder
     , IAttributeMapFinder attributeMapFinder
     , IRelationShipFinder relationShipFinder
     , IEntityPluginExecutor entityPluginExecutor
     , IAttributeFinder attributeFinder
     , IDataFinder dataFinder
     , IDataCreater dataCreater)
     : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
 {
     _organizationDataProvider = organizationDataProvider;
     _entityMapFinder          = entityMapFinder;
     _attributeMapFinder       = attributeMapFinder;
     _relationShipFinder       = relationShipFinder;
     _entityPluginExecutor     = entityPluginExecutor;
     _attributeFinder          = attributeFinder;
     _dataFinder  = dataFinder;
     _dataCreater = dataCreater;
 }
Пример #4
0
 //private readonly IDataUpdater _dataUpdater;
 public DataMerger(
     IAppContext appContext
     , IEntityFinder entityFinder
     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
     , IPrincipalObjectAccessService principalObjectAccessService
     , IEventPublisher eventPublisher
     , IBusinessUnitService businessUnitService
     , IOrganizationDataProvider organizationDataProvider
     , IEntityPluginExecutor entityPluginExecutor
     , IAttributeFinder attributeFinder
     , IRelationShipFinder relationShipFinder
     , IDataFinder dataFinder
     //, IDataUpdater dataUpdater
     , IQueryResolverFactory queryResolverFactory
     )
     : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
 {
     _organizationDataProvider = organizationDataProvider;
     _entityPluginExecutor     = entityPluginExecutor;
     _attributeFinder          = attributeFinder;
     _relationShipFinder       = relationShipFinder;
     _dataFinder = dataFinder;
     //_dataUpdater = dataUpdater;
     _queryResolverFactory = queryResolverFactory;
 }
Пример #5
0
 public FormController(IWebAppContext appContext
                       , IEntityFinder entityFinder
                       , IAttributeFinder attributeFinder
                       , ISystemFormFinder systemFormFinder
                       , IRibbonButtonFinder ribbonbuttonFinder
                       , IRibbonButtonStatusSetter ribbonButtonStatusSetter
                       , IWorkFlowProcessFinder workFlowProcessFinder
                       , IWorkFlowInstanceService workFlowInstanceService
                       , ISystemFormStatusSetter systemFormStatusSetter
                       , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
                       , ISystemUserPermissionService systemUserPermissionService
                       , ISerialNumberRuleFinder serialNumberRuleFinder
                       , IFormService formService
                       , IDataFinder dataFinder
                       )
     : base(appContext)
 {
     _entityFinder             = entityFinder;
     _attributeFinder          = attributeFinder;
     _systemFormFinder         = systemFormFinder;
     _ribbonbuttonFinder       = ribbonbuttonFinder;
     _ribbonButtonStatusSetter = ribbonButtonStatusSetter;
     _workFlowProcessFinder    = workFlowProcessFinder;
     _workFlowInstanceService  = workFlowInstanceService;
     _systemFormStatusSetter   = systemFormStatusSetter;
     _roleObjectAccessEntityPermissionService = roleObjectAccessEntityPermissionService;
     _systemUserPermissionService             = systemUserPermissionService;
     _serialNumberRuleFinder = serialNumberRuleFinder;
     _formService            = formService;
     _dataFinder             = dataFinder;
 }
Пример #6
0
 public DataImporter(IEntityFinder entityFinder
                     , IAttributeFinder attributeFinder
                     , IOptionSetDetailFinder optionSetDetailFinder
                     , IStringMapFinder stringMapFinder
                     , IWebHelper webHelper
                     , IDataCreater dataCreater
                     , IDataUpdater dataUpdater
                     , IDataFinder dataFinder
                     , IAggregateService aggregateService
                     , IImportFileService importFileService
                     , IImportDataService importDataService
                     , IImportMapService importMapService)
 {
     _entityFinder    = entityFinder;
     _attributeFinder = attributeFinder;
     _optionSetDetailServiceFinder = optionSetDetailFinder;
     _stringMapFinder   = stringMapFinder;
     _webHelper         = webHelper;
     _dataCreater       = dataCreater;
     _dataUpdater       = dataUpdater;
     _dataFinder        = dataFinder;
     _aggregateService  = aggregateService;
     _importFileService = importFileService;
     _importDataService = importDataService;
     _importMapService  = importMapService;
 }
Пример #7
0
 public EntityTreeController(IWebAppContext appContext
                             , IEntityFinder entityService
                             , IDataFinder dataFinder)
     : base(appContext)
 {
     _entityFinder = entityService;
     _dataFinder   = dataFinder;
 }
Пример #8
0
 public NoticeController(IWebAppContext appContext
                         , IDataFinder dataFinder
                         , IDataUpdater dataUpdater)
     : base(appContext)
 {
     _dataFinder  = dataFinder;
     _dataUpdater = dataUpdater;
 }
Пример #9
0
        public static Entity RetrieveById(this IDataFinder finder, string entityName, Guid id, string primarykey = "", bool ignorePermissions = false)
        {
            var q = new QueryExpression(entityName, LanguageCode.CHS);

            q.ColumnSet.AllColumns = true;
            q.Criteria.AddCondition(primarykey.IfEmpty(entityName + "ID"), ConditionOperator.Equal, id);

            return(finder.Retrieve(q, ignorePermissions));
        }
Пример #10
0
 public WorkflowExecutedNotify(IAppContext appContext
                               , IDataFinder dataFinder
                               , IEnumerable <INotify> notifies)
 {
     _appContext = appContext;
     _loc        = _appContext.GetFeature <ILocalizedTextProvider>();
     _dataFinder = dataFinder;
     _notifies   = notifies;
 }
Пример #11
0
 public DataFinderController(IWebAppContext appContext
                             , IEntityFinder entityFinder
                             , IAttributeFinder attributeFinder
                             , IDataFinder dataFinder)
     : base(appContext)
 {
     _entityFinder    = entityFinder;
     _attributeFinder = attributeFinder;
     _dataFinder      = dataFinder;
 }
Пример #12
0
 public WorkflowStarterController(IWebAppContext appContext
                                  , IEntityFinder entityFinder
                                  , IWorkFlowFinder workFlowFinder
                                  , IDataFinder dataFinder)
     : base(appContext)
 {
     _entityFinder   = entityFinder;
     _workFlowFinder = workFlowFinder;
     _dataFinder     = dataFinder;
 }
Пример #13
0
 public TeamController(IWebAppContext appContext
                       , IDataFinder dataFinder
                       , IDataCreater dataCreater
                       , IDataDeleter dataDeleter)
     : base(appContext)
 {
     _dataFinder  = dataFinder;
     _dataCreater = dataCreater;
     _dataDeleter = dataDeleter;
 }
Пример #14
0
 public AttachmentDeleter(IAppContext appContext
                          , IDataFinder dataFinder
                          , IDataDeleter dataDeleter
                          , IWebHelper webHelper)
     : base(appContext)
 {
     _appContext  = appContext;
     _dataFinder  = dataFinder;
     _dataDeleter = dataDeleter;
     _webHelper   = webHelper;
 }
Пример #15
0
 public DuplicateRuleExecutor(IAppContext appContext
                              , IDuplicateRuleFinder duplicateRuleFinder
                              , IDuplicateRuleConditionService duplicateRuleConditionService
                              , IDataFinder dataFinder)
 {
     _appContext                    = appContext;
     _loc                           = _appContext.GetFeature <ILocalizedTextProvider>();
     _duplicateRuleFinder           = duplicateRuleFinder;
     _duplicateRuleConditionService = duplicateRuleConditionService;
     _dataFinder                    = dataFinder;
 }
 public BusinessProcessFlowInstanceUpdater(IBusinessProcessFlowInstanceRepository businessProcessFlowInstanceRepository
                                           , IEntityFinder entityFinder
                                           , IProcessStageService processStageService
                                           , IDataFinder dataFinder
                                           , IDataUpdater dataUpdater)
 {
     _businessProcessFlowInstanceRepository = businessProcessFlowInstanceRepository;
     _entityFinder        = entityFinder;
     _processStageService = processStageService;
     _dataFinder          = dataFinder;
     _dataUpdater         = dataUpdater;
 }
Пример #17
0
 public UserSettingsController(IWebAppContext appContext
                               , ILanguageService languageService
                               , IEntityFinder entityFinder
                               , IAttributeFinder attributeFinder
                               , IDataFinder dataFinder
                               , IDataUpdater dataUpdater)
     : base(appContext)
 {
     _languageService = languageService;
     _entityFinder    = entityFinder;
     _attributeFinder = attributeFinder;
     _dataFinder      = dataFinder;
     _dataUpdater     = dataUpdater;
 }
Пример #18
0
 public OrgController(IWebAppContext appContext
                      , IEntityFinder entityFinder
                      , IAttributeFinder attributeFinder
                      , IOrganizationService organizationService
                      , ILanguageService languageService
                      , IDataFinder dataFinder)
     : base(appContext)
 {
     _entityFinder        = entityFinder;
     _attributeFinder     = attributeFinder;
     _organizationService = organizationService;
     _languageService     = languageService;
     _dataFinder          = dataFinder;
 }
Пример #19
0
 public WorkFlowExecuterController(IWebAppContext appContext
                                   , IEntityFinder entityFinder
                                   , IWorkFlowProcessService workFlowProcessService
                                   , IWorkFlowProcessFinder workFlowProcessFinder
                                   , IWorkFlowInstanceService workFlowInstanceService
                                   , IWorkFlowExecuter workFlowExecuter
                                   , IDataFinder dataFinder)
     : base(appContext)
 {
     _entityFinder            = entityFinder;
     _workFlowProcessService  = workFlowProcessService;
     _workFlowProcessFinder   = workFlowProcessFinder;
     _workFlowInstanceService = workFlowInstanceService;
     _workFlowExecuter        = workFlowExecuter;
     _dataFinder = dataFinder;
 }
Пример #20
0
 public BusinessProcessController(IWebAppContext appContext
                                  , IEntityFinder entityFinder
                                  , IAttributeFinder attributeFinder
                                  , IRelationShipFinder relationShipFinder
                                  , IWorkFlowFinder workFlowFinder
                                  , IBusinessProcessFlowInstanceService businessProcessFlowInstanceService
                                  , IProcessStageService processStageService
                                  , IDataFinder dataFinder)
     : base(appContext)
 {
     _entityFinder       = entityFinder;
     _attributeFinder    = attributeFinder;
     _relationShipFinder = relationShipFinder;
     _workFlowFinder     = workFlowFinder;
     _businessProcessFlowInstanceService = businessProcessFlowInstanceService;
     _processStageService = processStageService;
     _dataFinder          = dataFinder;
 }
Пример #21
0
 public FlowController(IWebAppContext appContext
                       , IEntityFinder entityFinder
                       , IWorkFlowFinder workFlowFinder
                       , IWorkFlowProcessFinder workFlowProcessFinder
                       , IWorkFlowInstanceService workFlowInstanceService
                       , IWorkFlowProcessLogService workFlowProcessLogService
                       , IDataFinder dataFinder
                       , IWorkFlowStepService workFlowStepService)
     : base(appContext)
 {
     _entityFinder              = entityFinder;
     _workFlowFinder            = workFlowFinder;
     _workFlowInstanceService   = workFlowInstanceService;
     _workFlowProcessFinder     = workFlowProcessFinder;
     _workFlowProcessLogService = workFlowProcessLogService;
     _dataFinder          = dataFinder;
     _workFlowStepService = workFlowStepService;
 }
Пример #22
0
 public RoleController(IWebAppContext appContext
                       , IRoleService roleService
                       , IEntityPermissionService entityPermissionService
                       , IRoleObjectAccessService roleObjectAccessService
                       , ISystemUserRolesService systemUserRolesService
                       , IEntityFinder entityFinder
                       , IResourceOwnerService resourceOwnerService
                       , IDataFinder dataFinder)
     : base(appContext)
 {
     _roleService             = roleService;
     _entityPermissionService = entityPermissionService;
     _roleObjectAccessService = roleObjectAccessService;
     _systemUserRolesService  = systemUserRolesService;
     _entityFinder            = entityFinder;
     _resourceOwnerService    = resourceOwnerService;
     _dataFinder = dataFinder;
 }
Пример #23
0
        public static Entity RetrieveByAttribute(this IDataFinder finder, string entityName, Dictionary <string, object> key_value, List <string> columns = null, bool ignorePermissions = false)
        {
            var q = new QueryExpression(entityName, LanguageCode.CHS);

            if (columns.IsEmpty())
            {
                q.ColumnSet.AllColumns = true;
            }
            else
            {
                q.ColumnSet.AddColumns(columns.ToArray());
            }
            foreach (var item in key_value)
            {
                q.Criteria.AddCondition(item.Key, ConditionOperator.Equal, item.Value);
            }

            return(finder.Retrieve(q, ignorePermissions));
        }
Пример #24
0
        public static List <Entity> RetrieveAll(this IDataFinder finder, string entityName, List <string> columns = null, OrderExpression order = null, bool ignorePermissions = false)
        {
            var q = new QueryExpression(entityName, LanguageCode.CHS);

            if (columns.NotEmpty())
            {
                q.ColumnSet.AddColumns(columns.ToArray());
            }
            else
            {
                q.ColumnSet.AllColumns = true;
            }
            if (order != null)
            {
                q.AddOrder(order.AttributeName, order.OrderType);
            }

            return(finder.RetrieveAll(q, ignorePermissions));
        }
Пример #25
0
 public SecurityController(IWebAppContext appContext
                           , ISystemUserService userService
                           , ISystemUserRolesService systemUserRolesService
                           , IRoleService roleService
                           , IRoleObjectAccessService roleObjectAccessService
                           , IDataCreater dataCreater
                           , IDataFinder dataFinder
                           , IDataDeleter dataDeleter
                           , IResourceOwnerService resourceOwnerService)
     : base(appContext)
 {
     _roleService             = roleService;
     _userService             = userService;
     _systemUserRolesService  = systemUserRolesService;
     _roleObjectAccessService = roleObjectAccessService;
     _dataCreater             = dataCreater;
     _dataFinder           = dataFinder;
     _dataDeleter          = dataDeleter;
     _resourceOwnerService = resourceOwnerService;
 }
Пример #26
0
 public BusinessFlowController(IWebAppContext appContext
                               , IEntityFinder entityFinder
                               , IEntityMapFinder entityMapFinder
                               , IWorkFlowFinder workFlowFinder
                               , IBusinessProcessFlowInstanceService businessProcessFlowInstanceService
                               , IBusinessProcessFlowInstanceUpdater businessProcessFlowInstanceUpdater
                               , IProcessStageService processStageService
                               , IDataFinder dataFinder
                               , IDataUpdater dataUpdater
                               , IDataMapper dataMapper)
     : base(appContext)
 {
     _entityFinder    = entityFinder;
     _entityMapFinder = entityMapFinder;
     _workFlowFinder  = workFlowFinder;
     _businessProcessFlowInstanceService = businessProcessFlowInstanceService;
     _businessProcessFlowInstanceUpdater = businessProcessFlowInstanceUpdater;
     _processStageService = processStageService;
     _dataFinder          = dataFinder;
     _dataUpdater         = dataUpdater;
     _dataMapper          = dataMapper;
 }
Пример #27
0
 public AttachmentFinder(IAppContext appContext
                         , IDataFinder dataFinder) : base(appContext)
 {
     _appContext = appContext;
     _dataFinder = dataFinder;
 }
Пример #28
0
 /// <summary>
 /// Computes the expression and returns a result.
 /// </summary>
 /// <param name="dataFinder">The data finder for the arguments with which to invoke execution of the expression.</param>
 /// <returns>The computed result, or, if the expression is not recognized correctly, the expression as a <see cref="string"/>.</returns>
 public object Compute(IDataFinder dataFinder) =>
 Compute(
     null,
     dataFinder);
Пример #29
0
 public WorkflowAttachmentController(IWebAppContext appContext
                                     , IDataFinder dataFinder)
     : base(appContext)
 {
     _dataFinder = dataFinder;
 }