private static IList <string> SourceSystemList(IMappingService mappingService) { var sourceSystemList = mappingService.GetSourceSystemNames(); sourceSystemList.Insert(0, string.Empty); sourceSystemList.Add(NexusSourceSystem); sourceSystemList = sourceSystemList.OrderBy(x => x).ToList(); return(sourceSystemList); }
private bool CanAddMappings() { foreach (var system in mappingService.GetSourceSystemNames()) { if (AuthorisationHelpers.HasMappingRights("PartyAccountability", system)) { return(true); } } return(false); }
public MappingAddViewModel( IEventAggregator eventAggregator, IMappingService mappingService, INavigationService navigationService) { this.eventAggregator = eventAggregator; this.mappingService = mappingService; this.navigationService = navigationService; this.confirmationFromViewModelInteractionRequest = new InteractionRequest <Confirmation>(); this.SourceSystems = mappingService.GetSourceSystemNames().OrderBy(x => x).ToList(); this.SourceSystems.Insert(0, string.Empty); }
public MappingAddViewModel( IEventAggregator eventAggregator, IMappingService mappingService, INavigationService navigationService) { this.eventAggregator = eventAggregator; this.mappingService = mappingService; this.navigationService = navigationService; this.confirmationFromViewModelInteractionRequest = new InteractionRequest<Confirmation>(); this.SourceSystems = mappingService.GetSourceSystemNames().OrderBy(x => x).ToList(); this.SourceSystems.Insert(0, string.Empty); }
public void OnNavigatedTo(NavigationContext navigationContext) { this.Mapping = new MappingViewModel(this.eventAggregator); this.entityId = navigationContext.Parameters[NavigationParameters.EntityId]; this.entityName = navigationContext.Parameters[NavigationParameters.EntityName]; this.entityInstanceName = navigationContext.Parameters[NavigationParameters.EntityInstanceName]; this.eventAggregator.Subscribe <SaveEvent>(this.Save); this.SourceSystems = mappingService.GetSourceSystemNames() .Where(x => AuthorisationHelpers.HasMappingRights(this.entityName, x)) .OrderBy(x => x) .ToList(); this.SourceSystems.Insert(0, string.Empty); RaisePropertyChanged("Context"); }
private static IList<string> SourceSystemList(IMappingService mappingService) { var sourceSystemList = mappingService.GetSourceSystemNames(); sourceSystemList.Insert(0, string.Empty); sourceSystemList.Add(NexusSourceSystem); sourceSystemList = sourceSystemList.OrderBy(x => x).ToList(); return sourceSystemList; }