public ExecuteCommandCreateNewFilter(IBasicActivateItems activator, IRootFilterContainerHost host) : base(activator) { _factory = host.GetFilterFactory(); _container = host.RootFilterContainer; _host = host; if (_container == null && _host is AggregateConfiguration ac && ac.OverrideFiltersByUsingParentAggregateConfigurationInstead_ID != null) { SetImpossible("Aggregate is set to use another's filter container tree"); } }
public ExecuteCommandImportFilterContainerTree(IBasicActivateItems activator, IRootFilterContainerHost into) : this(activator) { _into = into; if (into.RootFilterContainer_ID != null) { SetImpossible("Dataset already has a root container"); } _catalogue = _into.GetCatalogue(); }
public ExecuteCommandAddNewFilterContainer(IBasicActivateItems activator, IRootFilterContainerHost host) : base(activator) { if (host.RootFilterContainer_ID != null) { SetImpossible("There is already a root filter container on this object"); } if (host is AggregateConfiguration ac && ac.OverrideFiltersByUsingParentAggregateConfigurationInstead_ID != null) { SetImpossible("Aggregate is set to use another's filter container tree"); } _host = host; }
/// <summary> /// Constructor for explicitly specifying the container to import /// </summary> /// <param name="activator"></param> /// <param name="into"></param> /// <param name="explicitChoice"></param> public ExecuteCommandImportFilterContainerTree(IBasicActivateItems activator, IRootFilterContainerHost into, IContainer explicitChoice) : this(activator, into) { _explicitChoice = explicitChoice; }
public ExecuteCommandImportFilterContainerTree(IBasicActivateItems activator, IRootFilterContainerHost into, IRootFilterContainerHost from) : this(activator, into) { if (from.RootFilterContainer_ID == null) { SetImpossible("AggregateConfiguration has no root container"); } else { _explicitChoice = from.RootFilterContainer; } }
public ExecuteCommandCreateNewFilterFromCatalogue(IBasicActivateItems itemActivator, IRootFilterContainerHost host) : this(itemActivator, host.GetCatalogue()) { _host = host; }