org.eclipse.hawkbit.ui.utils.VaadinMessageSource Java Examples
The following examples show how to use
org.eclipse.hawkbit.ui.utils.VaadinMessageSource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ActionHistoryGrid.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
/** * Initializes a map with all available status label metadata. * * @param i18n * @param statusLabelId * @return the configured map */ public Map<Action.Status, StatusFontIcon> createStatusLabelConfig(final VaadinMessageSource i18n, final String statusLabelId) { final HashMap<Action.Status, StatusFontIcon> stateMap = Maps.newHashMapWithExpectedSize(9); stateMap.put(Action.Status.FINISHED, new StatusFontIcon(FontAwesome.CHECK_CIRCLE, STATUS_ICON_GREEN, i18n.getMessage("label.finished"), statusLabelId)); stateMap.put(Action.Status.ERROR, new StatusFontIcon(FontAwesome.EXCLAMATION_CIRCLE, STATUS_ICON_RED, i18n.getMessage("label.error"), statusLabelId)); stateMap.put(Action.Status.WARNING, new StatusFontIcon(FontAwesome.EXCLAMATION_CIRCLE, STATUS_ICON_ORANGE, i18n.getMessage("label.warning"), statusLabelId)); stateMap.put(Action.Status.RUNNING, new StatusFontIcon(FontAwesome.ADJUST, STATUS_ICON_PENDING, i18n.getMessage("label.running"), statusLabelId)); stateMap.put(Action.Status.CANCELING, new StatusFontIcon(FontAwesome.TIMES_CIRCLE, STATUS_ICON_PENDING, i18n.getMessage("label.cancelling"), statusLabelId)); stateMap.put(Action.Status.CANCELED, new StatusFontIcon(FontAwesome.TIMES_CIRCLE, STATUS_ICON_GREEN, i18n.getMessage("label.cancelled"), statusLabelId)); stateMap.put(Action.Status.RETRIEVED, new StatusFontIcon(FontAwesome.CIRCLE_O, STATUS_ICON_PENDING, i18n.getMessage("label.retrieved"), statusLabelId)); stateMap.put(Action.Status.DOWNLOADED, new StatusFontIcon(FontAwesome.CLOUD_DOWNLOAD, STATUS_ICON_GREEN, i18n.getMessage("label.downloaded"), statusLabelId)); stateMap.put(Action.Status.DOWNLOAD, new StatusFontIcon(FontAwesome.CLOUD_DOWNLOAD, STATUS_ICON_PENDING, i18n.getMessage("label.download"), statusLabelId)); stateMap.put(Action.Status.SCHEDULED, new StatusFontIcon(FontAwesome.HOURGLASS_1, STATUS_ICON_PENDING, i18n.getMessage("label.scheduled"), statusLabelId)); return stateMap; }
Example #2
Source File: MultipleTargetFilter.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
MultipleTargetFilter(final SpPermissionChecker permChecker, final ManagementUIState managementUIState, final VaadinMessageSource i18n, final UIEventBus eventBus, final ManagementViewClientCriterion managementViewClientCriterion, final UINotification notification, final EntityFactory entityFactory, final TargetFilterQueryManagement targetFilterQueryManagement, final TargetTagManagement targetTagManagement) { this.filterByButtons = new TargetTagFilterButtons(eventBus, managementUIState, managementViewClientCriterion, i18n, notification, permChecker, entityFactory, targetTagManagement); this.targetFilterQueryButtonsTab = new TargetFilterQueryButtons(managementUIState, eventBus); this.filterByStatusFooter = new FilterByStatusLayout(i18n, eventBus, managementUIState); this.customTargetTagFilterButtonClick = new CustomTargetTagFilterButtonClick(eventBus, managementUIState, targetFilterQueryManagement); this.permChecker = permChecker; this.managementUIState = managementUIState; this.i18n = i18n; this.eventBus = eventBus; this.uiNotification = notification; this.entityFactory = entityFactory; this.targetTagManagement = targetTagManagement; buildComponents(); eventBus.subscribe(this); }
Example #3
Source File: RolloutListGrid.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
RolloutListGrid(final VaadinMessageSource i18n, final UIEventBus eventBus, final RolloutManagement rolloutManagement, final UINotification uiNotification, final RolloutUIState rolloutUIState, final SpPermissionChecker permissionChecker, final TargetManagement targetManagement, final EntityFactory entityFactory, final UiProperties uiProperties, final TargetFilterQueryManagement targetFilterQueryManagement, final RolloutGroupManagement rolloutGroupManagement, final QuotaManagement quotaManagement, final TenantConfigurationManagement tenantConfigManagement, final SystemSecurityContext systemSecurityContext) { super(i18n, eventBus, permissionChecker); this.rolloutManagement = rolloutManagement; this.rolloutGroupManagement = rolloutGroupManagement; this.tenantConfigManagement = tenantConfigManagement; this.addUpdateRolloutWindow = new AddUpdateRolloutWindowLayout(rolloutManagement, targetManagement, uiNotification, uiProperties, entityFactory, i18n, eventBus, targetFilterQueryManagement, rolloutGroupManagement, quotaManagement); this.uiNotification = uiNotification; this.rolloutUIState = rolloutUIState; this.systemSecurityContext = systemSecurityContext; alignGenerator = new AlignCellStyleGenerator(null, centerAlignedColumns, null); setGeneratedPropertySupport(new RolloutGeneratedPropertySupport()); init(); hideColumnsDueToInsufficientPermissions(); }
Example #4
Source File: TenantConfigurationDashboardView.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
@Autowired TenantConfigurationDashboardView(final VaadinMessageSource i18n, final UiProperties uiProperties, final UINotification uINotification, final SystemManagement systemManagement, final DistributionSetTypeManagement distributionSetTypeManagement, final TenantConfigurationManagement tenantConfigurationManagement, final SecurityTokenGenerator securityTokenGenerator, final ControllerPollProperties controllerPollProperties, final SpPermissionChecker permChecker) { this.defaultDistributionSetTypeLayout = new DefaultDistributionSetTypeLayout(systemManagement, distributionSetTypeManagement, i18n, permChecker); this.authenticationConfigurationView = new AuthenticationConfigurationView(i18n, tenantConfigurationManagement, securityTokenGenerator, uiProperties); this.pollingConfigurationView = new PollingConfigurationView(i18n, controllerPollProperties, tenantConfigurationManagement); this.repositoryConfigurationView = new RepositoryConfigurationView(i18n, tenantConfigurationManagement, uiProperties); this.rolloutConfigurationView = new RolloutConfigurationView(i18n, tenantConfigurationManagement, uiProperties); this.i18n = i18n; this.uiProperties = uiProperties; this.uINotification = uINotification; }
Example #5
Source File: DefineGroupsLayout.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
DefineGroupsLayout(final VaadinMessageSource i18n, final EntityFactory entityFactory, final RolloutManagement rolloutManagement, final TargetFilterQueryManagement targetFilterQueryManagement, final RolloutGroupManagement rolloutGroupManagement, final QuotaManagement quotaManagement) { this.i18n = i18n; this.entityFactory = entityFactory; this.rolloutManagement = rolloutManagement; this.rolloutGroupManagement = rolloutGroupManagement; this.quotaManagement = quotaManagement; this.targetFilterQueryManagement = targetFilterQueryManagement; runningValidationsCounter = new AtomicInteger(0); groupRows = new ArrayList<>(10); setSizeUndefined(); buildLayout(); }
Example #6
Source File: CreateOrUpdateFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
CreateOrUpdateFilterHeader(final VaadinMessageSource i18n, final UIEventBus eventBus, final FilterManagementUIState filterManagementUIState, final TargetFilterQueryManagement targetFilterQueryManagement, final SpPermissionChecker permissionChecker, final UINotification notification, final UiProperties uiProperties, final EntityFactory entityFactory, final AutoCompleteTextFieldComponent queryTextField) { this.i18n = i18n; this.eventBus = eventBus; this.filterManagementUIState = filterManagementUIState; this.targetFilterQueryManagement = targetFilterQueryManagement; this.permissionChecker = permissionChecker; this.notification = notification; this.uiProperties = uiProperties; this.entityFactory = entityFactory; this.queryTextField = queryTextField; createComponents(); createListeners(); buildLayout(); restoreOnLoad(); setUpCaptionLayout(filterManagementUIState.isCreateFilterViewDisplayed()); eventBus.subscribe(this); }
Example #7
Source File: TargetTableHeader.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
TargetTableHeader(final VaadinMessageSource i18n, final SpPermissionChecker permChecker, final UIEventBus eventBus, final UINotification notification, final ManagementUIState managementUIState, final ManagementViewClientCriterion managementViewClientCriterion, final TargetManagement targetManagement, final DeploymentManagement deploymentManagement, final UiProperties uiproperties, final EntityFactory entityFactory, final UINotification uiNotification, final TargetTagManagement tagManagement, final DistributionSetManagement distributionSetManagement, final Executor uiExecutor, final TargetTable targetTable) { super(i18n, permChecker, eventBus, managementUIState, null, null); this.notification = notification; this.managementViewClientCriterion = managementViewClientCriterion; this.targetAddUpdateWindow = new TargetAddUpdateWindowLayout(i18n, targetManagement, eventBus, uiNotification, entityFactory, targetTable); this.targetBulkUpdateWindow = new TargetBulkUpdateWindowLayout(i18n, targetManagement, eventBus, managementUIState, deploymentManagement, uiproperties, permChecker, uiNotification, tagManagement, distributionSetManagement, entityFactory, uiExecutor); this.distributionSetManagement = distributionSetManagement; onLoadRestoreState(); }
Example #8
Source File: TargetBulkUpdateWindowLayout.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
TargetBulkUpdateWindowLayout(final VaadinMessageSource i18n, final TargetManagement targetManagement, final UIEventBus eventBus, final ManagementUIState managementUIState, final DeploymentManagement deploymentManagement, final UiProperties uiproperties, final SpPermissionChecker checker, final UINotification uinotification, final TargetTagManagement tagManagement, final DistributionSetManagement distributionSetManagement, final EntityFactory entityFactory, final Executor uiExecutor) { this.i18n = i18n; this.targetManagement = targetManagement; this.eventBus = eventBus; this.targetBulkTokenTags = new TargetBulkTokenTags(checker, i18n, uinotification, eventBus, managementUIState, tagManagement); this.managementUIState = managementUIState; this.deploymentManagement = deploymentManagement; this.uiproperties = uiproperties; this.tagManagement = tagManagement; this.distributionSetManagement = distributionSetManagement; this.entityFactory = entityFactory; this.uiExecutor = uiExecutor; createRequiredComponents(); buildLayout(); setImmediate(true); setCompositionRoot(mainLayout); }
Example #9
Source File: DistributionSetInfoPanel.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
/** * Decorate. * * @param distributionSet * as DistributionSet * @param caption * as String * @param style1 * as String * @param style2 * as String */ private void decorate(final DistributionSet distributionSet, final String caption, final String style1, final String style2) { final VaadinMessageSource i18n = SpringContextHelper.getBean(VaadinMessageSource.class); final VerticalLayout layout = new VerticalLayout(); // Display distribution set name layout.addComponent(SPUIComponentProvider.createNameValueLabel(i18n.getMessage("label.dist.details.name"), distributionSet.getName(), distributionSet.getVersion())); /* Module info */ distributionSet.getModules() .forEach(module -> layout.addComponent(getSWModlabel(module.getType().getName(), module))); layout.setSizeFull(); layout.setMargin(false); layout.setSpacing(false); setContent(layout); // Decorate specific setCaption(caption); addStyleName(style1); addStyleName(style2); addStyleName("small"); setImmediate(false); }
Example #10
Source File: TargetTableLayout.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
public TargetTableLayout(final UIEventBus eventBus, final TargetTable targetTable, final TargetManagement targetManagement, final EntityFactory entityFactory, final VaadinMessageSource i18n, final UINotification uiNotification, final ManagementUIState managementUIState, final ManagementViewClientCriterion managementViewClientCriterion, final DeploymentManagement deploymentManagement, final UiProperties uiProperties, final SpPermissionChecker permissionChecker, final TargetTagManagement tagManagement, final DistributionSetManagement distributionSetManagement, final Executor uiExecutor) { final TargetMetadataPopupLayout targetMetadataPopupLayout = new TargetMetadataPopupLayout(i18n, uiNotification, eventBus, targetManagement, entityFactory, permissionChecker); this.eventBus = eventBus; TargetDetails targetDetails = new TargetDetails(i18n, eventBus, permissionChecker, managementUIState, uiNotification, tagManagement, targetManagement, targetMetadataPopupLayout, deploymentManagement, entityFactory, targetTable); TargetTableHeader targetTableHeader = new TargetTableHeader(i18n, permissionChecker, eventBus, uiNotification, managementUIState, managementViewClientCriterion, targetManagement, deploymentManagement, uiProperties, entityFactory, uiNotification, tagManagement, distributionSetManagement, uiExecutor, targetTable); super.init(i18n, targetTableHeader, targetTable, targetDetails); }
Example #11
Source File: AddUpdateRolloutWindowLayout.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@SuppressWarnings("squid:S00107") AddUpdateRolloutWindowLayout(final RolloutManagement rolloutManagement, final TargetManagement targetManagement, final UINotification uiNotification, final UiProperties uiProperties, final EntityFactory entityFactory, final VaadinMessageSource i18n, final UIEventBus eventBus, final TargetFilterQueryManagement targetFilterQueryManagement, final RolloutGroupManagement rolloutGroupManagement, final QuotaManagement quotaManagement) { actionTypeOptionGroupLayout = new ActionTypeOptionGroupAssignmentLayout(i18n); autoStartOptionGroupLayout = new AutoStartOptionGroupLayout(i18n); this.rolloutManagement = rolloutManagement; this.rolloutGroupManagement = rolloutGroupManagement; this.quotaManagement = quotaManagement; this.targetManagement = targetManagement; this.uiNotification = uiNotification; this.uiProperties = uiProperties; this.entityFactory = entityFactory; this.i18n = i18n; this.eventBus = eventBus; this.targetFilterQueryManagement = targetFilterQueryManagement; defineGroupsLayout = new DefineGroupsLayout(i18n, entityFactory, rolloutManagement, targetFilterQueryManagement, rolloutGroupManagement, quotaManagement); defaultRolloutGroupConditions = new RolloutGroupConditionBuilder().withDefaults().build(); setSizeUndefined(); createRequiredComponents(); buildLayout(); defineGroupsLayout.setValidationListener(this::displayValidationStatus); defineGroupsLayout.setDefaultErrorThreshold(defaultRolloutGroupConditions.getErrorConditionExp()); defineGroupsLayout.setDefaultTriggerThreshold(defaultRolloutGroupConditions.getSuccessConditionExp()); }
Example #12
Source File: SwMetadataPopupLayout.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
public SwMetadataPopupLayout(final VaadinMessageSource i18n, final UINotification uiNotification, final UIEventBus eventBus, final SoftwareModuleManagement softwareManagement, final EntityFactory entityFactory, final SpPermissionChecker permChecker) { super(i18n, uiNotification, eventBus, permChecker); this.softwareModuleManagement = softwareManagement; this.entityFactory = entityFactory; }
Example #13
Source File: ActionStatusGrid.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
/** * Constructor. * * @param i18n * @param eventBus */ protected ActionStatusGrid(final VaadinMessageSource i18n, final UIEventBus eventBus) { super(i18n, eventBus, null); setSingleSelectionSupport(new SingleSelectionSupport()); setDetailsSupport(new DetailsSupport()); final LabelConfig conf = new ActionHistoryGrid.LabelConfig(); states = conf.createStatusLabelConfig(i18n, UIComponentIdProvider.ACTION_STATUS_GRID_STATUS_LABEL_ID); alignGenerator = new AlignCellStyleGenerator(leftAlignedColumns, centerAlignedColumns, null); tooltipGenerator = new TooltipGenerator(i18n); init(); }
Example #14
Source File: DistSMTypeFilterHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
DistSMTypeFilterHeader(final VaadinMessageSource i18n, final SpPermissionChecker permChecker, final UIEventBus eventBus, final ManageDistUIState manageDistUIState, final EntityFactory entityFactory, final UINotification uiNotification, final SoftwareModuleTypeManagement softwareModuleTypeManagement, final DistSMTypeFilterButtons filterButtons) { super(permChecker, eventBus, i18n); this.manageDistUIState = manageDistUIState; this.entityFactory = entityFactory; this.uiNotification = uiNotification; this.softwareModuleTypeManagement = softwareModuleTypeManagement; this.filterButtons = filterButtons; }
Example #15
Source File: RolloutListHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
RolloutListHeader(final SpPermissionChecker permissionChecker, final RolloutUIState rolloutUIState, final UIEventBus eventBus, final RolloutManagement rolloutManagement, final TargetManagement targetManagement, final UINotification uiNotification, final UiProperties uiProperties, final EntityFactory entityFactory, final VaadinMessageSource i18n, final TargetFilterQueryManagement targetFilterQueryManagement, final RolloutGroupManagement rolloutGroupManagement, final QuotaManagement quotaManagement) { super(permissionChecker, rolloutUIState, i18n); this.eventBus = eventBus; this.addUpdateRolloutWindow = new AddUpdateRolloutWindowLayout(rolloutManagement, targetManagement, uiNotification, uiProperties, entityFactory, i18n, eventBus, targetFilterQueryManagement, rolloutGroupManagement, quotaManagement); }
Example #16
Source File: RolloutGroupTargetsListView.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
public RolloutGroupTargetsListView(final UIEventBus eventBus, final VaadinMessageSource i18n, final RolloutUIState rolloutUIState) { super(i18n, eventBus); this.rolloutUIState = rolloutUIState; this.setFooterSupport(new RolloutTargetsCountFooterSupport()); init(); }
Example #17
Source File: DistributionBarHelper.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
private static String getLabel(final Status status, final VaadinMessageSource i18n) { String label; switch (status) { case SCHEDULED : label = "label.scheduled"; break; case RUNNING : label = "label.running"; break; case ERROR : label = "label.error"; break; case FINISHED : label = "label.finished"; break; case CANCELLED : label = "label.cancelled"; break; case NOTSTARTED : label = "label.notStarted"; break; default : throw new IllegalStateException("The status " + status + " is not supported."); } return i18n.getMessage(label); }
Example #18
Source File: CertificateAuthenticationConfigurationItem.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
public CertificateAuthenticationConfigurationItem(final TenantConfigurationManagement tenantConfigurationManagement, final VaadinMessageSource i18n) { super(TenantConfigurationKey.AUTHENTICATION_MODE_HEADER_ENABLED, tenantConfigurationManagement, i18n); super.init("label.configuration.auth.header"); configurationEnabled = isConfigEnabled(); detailLayout = new VerticalLayout(); detailLayout.setImmediate(true); final HorizontalLayout caRootAuthorityLayout = new HorizontalLayout(); caRootAuthorityLayout.setSpacing(true); final Label caRootAuthorityLabel = new LabelBuilder().name(i18n.getMessage("label.configuration.auth.hashField")).buildLabel(); caRootAuthorityLabel.setDescription( i18n.getMessage("label.configuration.auth.hashField.tooltip")); caRootAuthorityLabel.setWidthUndefined(); caRootAuthorityTextField = new TextFieldBuilder(TenantConfiguration.VALUE_MAX_SIZE).buildTextComponent(); caRootAuthorityTextField.setWidth("100%"); caRootAuthorityTextField.addTextChangeListener(event -> caRootAuthorityChanged()); caRootAuthorityLayout.addComponent(caRootAuthorityLabel); caRootAuthorityLayout.setExpandRatio(caRootAuthorityLabel, 0); caRootAuthorityLayout.addComponent(caRootAuthorityTextField); caRootAuthorityLayout.setExpandRatio(caRootAuthorityTextField, 1); caRootAuthorityLayout.setWidth("100%"); detailLayout.addComponent(caRootAuthorityLayout); if (isConfigEnabled()) { caRootAuthorityTextField.setValue(getCaRootAuthorityValue()); setDetailVisible(true); } }
Example #19
Source File: TargetTagFilterButtons.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
TargetTagFilterButtons(final UIEventBus eventBus, final ManagementUIState managementUIState, final ManagementViewClientCriterion managementViewClientCriterion, final VaadinMessageSource i18n, final UINotification notification, final SpPermissionChecker permChecker, final EntityFactory entityFactory, final TargetTagManagement targetTagManagement) { super(eventBus, new TargetTagFilterButtonClick(eventBus, managementUIState), i18n); this.managementUIState = managementUIState; this.managementViewClientCriterion = managementViewClientCriterion; this.uiNotification = notification; this.permChecker = permChecker; this.entityFactory = entityFactory; this.targetTagManagement = targetTagManagement; addNewTargetTag(entityFactory.tag().create().name(getNoTagLabel()).build()); }
Example #20
Source File: DistributionsView.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Autowired DistributionsView(final SpPermissionChecker permChecker, final UIEventBus eventBus, final VaadinMessageSource i18n, final UINotification uiNotification, final ManagementUIState managementUIState, final ManageDistUIState manageDistUIState, final SoftwareModuleManagement softwareModuleManagement, final SoftwareModuleTypeManagement softwareModuleTypeManagement, final DistributionSetManagement distributionSetManagement, final DistributionSetTypeManagement distributionSetTypeManagement, final TargetManagement targetManagement, final EntityFactory entityFactory, final DistributionSetTagManagement distributionSetTagManagement, final DistributionsViewClientCriterion distributionsViewClientCriterion, final ArtifactUploadState artifactUploadState, final SystemManagement systemManagement, final ArtifactManagement artifactManagement, final NotificationUnreadButton notificationUnreadButton, final DistributionsViewMenuItem distributionsViewMenuItem, final TenantConfigurationManagement configManagement, final SystemSecurityContext systemSecurityContext) { super(eventBus, notificationUnreadButton); this.permChecker = permChecker; this.i18n = i18n; this.uiNotification = uiNotification; this.manageDistUIState = manageDistUIState; final DSTypeFilterButtons dsTypeFilterButtons = new DSTypeFilterButtons(eventBus, manageDistUIState, distributionsViewClientCriterion, distributionSetTypeManagement, i18n, entityFactory, permChecker, uiNotification, softwareModuleTypeManagement, distributionSetManagement, systemManagement); this.filterByDSTypeLayout = new DSTypeFilterLayout(manageDistUIState, i18n, permChecker, eventBus, entityFactory, uiNotification, softwareModuleTypeManagement, distributionSetTypeManagement, dsTypeFilterButtons); this.distributionTableLayout = new DistributionSetTableLayout(i18n, eventBus, permChecker, managementUIState, manageDistUIState, softwareModuleManagement, distributionSetManagement, distributionSetTypeManagement, targetManagement, entityFactory, uiNotification, distributionSetTagManagement, distributionsViewClientCriterion, systemManagement, configManagement, systemSecurityContext); this.softwareModuleTableLayout = new SwModuleTableLayout(i18n, uiNotification, eventBus, softwareModuleManagement, softwareModuleTypeManagement, entityFactory, manageDistUIState, permChecker, distributionsViewClientCriterion, artifactUploadState, artifactManagement); final DistSMTypeFilterButtons distSmTypeFilterButtons = new DistSMTypeFilterButtons(eventBus, manageDistUIState, distributionsViewClientCriterion, softwareModuleTypeManagement, i18n, entityFactory, permChecker, uiNotification); this.filterBySMTypeLayout = new DistSMTypeFilterLayout(eventBus, i18n, permChecker, manageDistUIState, entityFactory, uiNotification, softwareModuleTypeManagement, distSmTypeFilterButtons); this.distributionsViewMenuItem = distributionsViewMenuItem; }
Example #21
Source File: ArtifactDetailsLayout.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
/** * Constructor for ArtifactDetailsLayout * * @param i18n * VaadinMessageSource * @param eventBus * UIEventBus * @param artifactUploadState * ArtifactUploadState * @param uINotification * UINotification * @param artifactManagement * ArtifactManagement * @param softwareManagement * SoftwareManagement */ public ArtifactDetailsLayout(final VaadinMessageSource i18n, final UIEventBus eventBus, final ArtifactUploadState artifactUploadState, final UINotification uINotification, final ArtifactManagement artifactManagement, final SoftwareModuleManagement softwareManagement) { this.i18n = i18n; this.eventBus = eventBus; this.artifactUploadState = artifactUploadState; this.uINotification = uINotification; this.artifactManagement = artifactManagement; this.softwareModuleManagement = softwareManagement; final Optional<SoftwareModule> selectedSoftwareModule = findSelectedSoftwareModule(); String labelSoftwareModule = ""; if (selectedSoftwareModule.isPresent()) { labelSoftwareModule = HawkbitCommonUtil.getFormattedNameVersion(selectedSoftwareModule.get().getName(), selectedSoftwareModule.get().getVersion()); } createComponents(); buildLayout(); eventBus.subscribe(this); if (selectedSoftwareModule.isPresent()) { populateArtifactDetails(selectedSoftwareModule.get().getId(), labelSoftwareModule); } if (isMaximized()) { maximizedArtifactDetailsView(); } }
Example #22
Source File: DistributionTableLayout.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
public DistributionTableLayout(final VaadinMessageSource i18n, final UIEventBus eventBus, final SpPermissionChecker permissionChecker, final ManagementUIState managementUIState, final DistributionSetManagement distributionSetManagement, final DistributionSetTypeManagement distributionSetTypeManagement, final ManagementViewClientCriterion managementViewClientCriterion, final EntityFactory entityFactory, final UINotification notification, final DistributionSetTagManagement distributionSetTagManagement, final TargetTagManagement targetTagManagement, final SystemManagement systemManagement, final TargetManagement targetManagement, final DeploymentManagement deploymentManagement, final TenantConfigurationManagement configManagement, final SystemSecurityContext systemSecurityContext, final UiProperties uiProperties) { final DistributionAddUpdateWindowLayout distributionAddUpdateWindowLayout = new DistributionAddUpdateWindowLayout( i18n, notification, eventBus, distributionSetManagement, distributionSetTypeManagement, systemManagement, entityFactory, null, configManagement, systemSecurityContext); final DsMetadataPopupLayout dsMetadataPopupLayout = new DsMetadataPopupLayout(i18n, notification, eventBus, distributionSetManagement, entityFactory, permissionChecker); this.distributionTable = new DistributionTable(eventBus, i18n, permissionChecker, notification, managementUIState, managementViewClientCriterion, targetManagement, distributionSetManagement, deploymentManagement, targetTagManagement, uiProperties); super.init(i18n, new DistributionTableHeader(i18n, permissionChecker, eventBus, managementUIState), distributionTable, new DistributionDetails(i18n, eventBus, permissionChecker, managementUIState, distributionSetManagement, dsMetadataPopupLayout, notification, distributionSetTagManagement, distributionAddUpdateWindowLayout, configManagement, systemSecurityContext)); }
Example #23
Source File: DistributionSetSelectWindow.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
DistributionSetSelectWindow(final VaadinMessageSource i18n, final UIEventBus eventBus, final UINotification notification, final TargetManagement targetManagement, final TargetFilterQueryManagement targetFilterQueryManagement, final EntityFactory entityFactory) { this.i18n = i18n; this.notification = notification; this.eventBus = eventBus; this.targetManagement = targetManagement; this.targetFilterQueryManagement = targetFilterQueryManagement; this.entityFactory = entityFactory; }
Example #24
Source File: TargetAssignmentOperations.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
private static CheckBox maintenanceWindowControl(final VaadinMessageSource i18n, final MaintenanceWindowLayout maintenanceWindowLayout, final Consumer<Boolean> saveButtonToggle) { final CheckBox enableMaintenanceWindow = new CheckBox(i18n.getMessage("caption.maintenancewindow.enabled")); enableMaintenanceWindow.setId(UIComponentIdProvider.MAINTENANCE_WINDOW_ENABLED_ID); enableMaintenanceWindow.addStyleName(ValoTheme.CHECKBOX_SMALL); enableMaintenanceWindow.addStyleName("dist-window-maintenance-window-enable"); enableMaintenanceWindow.addValueChangeListener(event -> { final Boolean isMaintenanceWindowEnabled = enableMaintenanceWindow.getValue(); maintenanceWindowLayout.setVisible(isMaintenanceWindowEnabled); maintenanceWindowLayout.setEnabled(isMaintenanceWindowEnabled); saveButtonToggle.accept(!isMaintenanceWindowEnabled); maintenanceWindowLayout.clearAllControls(); }); return enableMaintenanceWindow; }
Example #25
Source File: AbstractFileTransferHandler.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
AbstractFileTransferHandler(final ArtifactManagement artifactManagement, final VaadinMessageSource i18n, final Lock uploadLock) { this.artifactManagement = artifactManagement; this.i18n = i18n; this.eventBus = SpringContextHelper.getBean(EventBus.UIEventBus.class); this.artifactUploadState = SpringContextHelper.getBean(ArtifactUploadState.class); this.uiNotification = SpringContextHelper.getBean(UINotification.class); this.uploadLock = uploadLock; }
Example #26
Source File: ErrorView.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Autowired ErrorView(final VaadinMessageSource i18n, final DashboardMenu dashboardMenu) { this.i18n = i18n; this.dashboardMenu = dashboardMenu; setMargin(true); message = new Label(); addComponent(message); }
Example #27
Source File: AbstractSoftwareModuleTableHeader.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
protected AbstractSoftwareModuleTableHeader(final VaadinMessageSource i18n, final SpPermissionChecker permChecker, final UIEventBus eventbus, final ManagementUIState managementUIState, final ManageDistUIState manageDistUIstate, final ArtifactUploadState artifactUploadState, final SoftwareModuleAddUpdateWindow softwareModuleAddUpdateWindow) { super(i18n, permChecker, eventbus, managementUIState, manageDistUIstate, artifactUploadState); this.softwareModuleAddUpdateWindow = softwareModuleAddUpdateWindow; }
Example #28
Source File: SoftwareModuleDetails.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
SoftwareModuleDetails(final VaadinMessageSource i18n, final UIEventBus eventBus, final SpPermissionChecker permissionChecker, final SoftwareModuleAddUpdateWindow softwareModuleAddUpdateWindow, final ArtifactUploadState artifactUploadState, final SoftwareModuleManagement softwareManagement, final SwMetadataPopupLayout swMetadataPopupLayout) { super(i18n, eventBus, permissionChecker, null, softwareManagement, swMetadataPopupLayout, softwareModuleAddUpdateWindow); this.artifactUploadState = artifactUploadState; restoreState(); }
Example #29
Source File: AbstractTagToken.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
protected AbstractTagToken(final SpPermissionChecker checker, final VaadinMessageSource i18n, final UINotification uinotification, final UIEventBus eventBus, final ManagementUIState managementUIState) { this.checker = checker; this.i18n = i18n; this.uinotification = uinotification; this.eventBus = eventBus; this.managementUIState = managementUIState; createTagPanel(); if (doSubscribeToEventBus()) { eventBus.subscribe(this); } }
Example #30
Source File: ActionHistoryLayout.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
/** * Constructor. * * @param i18n * @param deploymentManagement * @param eventBus * @param notification * @param managementUIState * @param permChecker */ public ActionHistoryLayout(final VaadinMessageSource i18n, final DeploymentManagement deploymentManagement, final UIEventBus eventBus, final UINotification notification, final ManagementUIState managementUIState, final SpPermissionChecker permChecker) { super(i18n, eventBus); this.deploymentManagement = deploymentManagement; this.notification = notification; this.managementUIState = managementUIState; this.permChecker = permChecker; actionHistoryCaption = getActionHistoryCaption(); init(); }