org.eclipse.hawkbit.ui.UiProperties Java Examples
The following examples show how to use
org.eclipse.hawkbit.ui.UiProperties.
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: 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 #2
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 #3
Source File: FilterManagementView.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
@Autowired FilterManagementView(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, final TargetManagement targetManagement) { this.targetFilterHeader = new TargetFilterHeader(eventBus, filterManagementUIState, permissionChecker, i18n); this.targetFilterTable = new TargetFilterTable(i18n, notification, eventBus, filterManagementUIState, targetFilterQueryManagement, targetManagement, permissionChecker, entityFactory); this.createNewFilterHeader = new CreateOrUpdateFilterHeader(i18n, eventBus, filterManagementUIState, targetFilterQueryManagement, permissionChecker, notification, uiProperties, entityFactory, queryTextField); this.createNewFilterTable = new CreateOrUpdateFilterTable(i18n, eventBus, filterManagementUIState); this.filterManagementUIState = filterManagementUIState; this.targetFilterCountMessageLabel = new TargetFilterCountMessageLabel(filterManagementUIState, i18n, eventBus); this.eventBus = eventBus; }
Example #4
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 #5
Source File: RolloutListView.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
public RolloutListView(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, final TenantConfigurationManagement tenantConfigManagement, final SystemSecurityContext systemSecurityContext) { super(i18n, eventBus); this.permissionChecker = permissionChecker; this.rolloutUIState = rolloutUIState; this.rolloutManagement = rolloutManagement; this.rolloutGroupManagement = rolloutGroupManagement; this.quotaManagement = quotaManagement; this.targetManagement = targetManagement; this.uiNotification = uiNotification; this.uiProperties = uiProperties; this.entityFactory = entityFactory; this.targetFilterQueryManagement = targetFilterQueryManagement; this.tenantConfigManagement = tenantConfigManagement; this.systemSecurityContext = systemSecurityContext; init(); }
Example #6
Source File: RolloutView.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
@Autowired RolloutView(final SpPermissionChecker permissionChecker, final RolloutUIState rolloutUIState, final UIEventBus eventBus, final RolloutManagement rolloutManagement, final RolloutGroupManagement rolloutGroupManagement, final TargetManagement targetManagement, final UINotification uiNotification, final UiProperties uiProperties, final EntityFactory entityFactory, final VaadinMessageSource i18n, final TargetFilterQueryManagement targetFilterQueryManagement, final QuotaManagement quotaManagement, final TenantConfigurationManagement tenantConfigManagement, final SystemSecurityContext systemSecurityContext) { this.permChecker = permissionChecker; this.rolloutManagement = rolloutManagement; this.rolloutListView = new RolloutListView(permissionChecker, rolloutUIState, eventBus, rolloutManagement, targetManagement, uiNotification, uiProperties, entityFactory, i18n, targetFilterQueryManagement, rolloutGroupManagement, quotaManagement, tenantConfigManagement, systemSecurityContext); this.rolloutGroupsListView = new RolloutGroupsListView(i18n, eventBus, rolloutGroupManagement, rolloutUIState, permissionChecker); this.rolloutGroupTargetsListView = new RolloutGroupTargetsListView(eventBus, i18n, rolloutUIState); this.rolloutUIState = rolloutUIState; this.eventBus = eventBus; }
Example #7
Source File: DistributionTable.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
DistributionTable(final UIEventBus eventBus, final VaadinMessageSource i18n, final SpPermissionChecker permissionChecker, final UINotification notification, final ManagementUIState managementUIState, final ManagementViewClientCriterion managementViewClientCriterion, final TargetManagement targetManagement, final DistributionSetManagement distributionSetManagement, final DeploymentManagement deploymentManagement, final TargetTagManagement targetTagManagement, final UiProperties uiProperties) { super(eventBus, i18n, notification, permissionChecker); this.permissionChecker = permissionChecker; this.managementUIState = managementUIState; this.managementViewClientCriterion = managementViewClientCriterion; this.targetManagement = targetManagement; this.targetTagManagement = targetTagManagement; this.distributionSetManagement = distributionSetManagement; this.deploymentManagement = deploymentManagement; this.actionTypeOptionGroupLayout = new ActionTypeOptionGroupAssignmentLayout(i18n); this.maintenanceWindowLayout = new MaintenanceWindowLayout(i18n); this.uiProperties = uiProperties; notAllowedMsg = i18n.getMessage(UIMessageIdProvider.MESSAGE_ACTION_NOT_ALLOWED); addNewContainerDS(); setColumnProperties(); setDataAvailable(getContainerDataSource().size() != 0); }
Example #8
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 #9
Source File: AuthenticationConfigurationView.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
AuthenticationConfigurationView(final VaadinMessageSource i18n, final TenantConfigurationManagement tenantConfigurationManagement, final SecurityTokenGenerator securityTokenGenerator, final UiProperties uiProperties) { this.i18n = i18n; this.uiProperties = uiProperties; this.certificateAuthenticationConfigurationItem = new CertificateAuthenticationConfigurationItem( tenantConfigurationManagement, i18n); this.targetSecurityTokenAuthenticationConfigurationItem = new TargetSecurityTokenAuthenticationConfigurationItem( tenantConfigurationManagement, i18n); this.gatewaySecurityTokenAuthenticationConfigurationItem = new GatewaySecurityTokenAuthenticationConfigurationItem( tenantConfigurationManagement, i18n, securityTokenGenerator); this.anonymousDownloadAuthenticationConfigurationItem = new AnonymousDownloadAuthenticationConfigurationItem( tenantConfigurationManagement, i18n); init(); }
Example #10
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 #11
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 #12
Source File: TargetTable.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
public TargetTable(final UIEventBus eventBus, final VaadinMessageSource i18n, final UINotification notification, final TargetManagement targetManagement, final ManagementUIState managementUIState, final SpPermissionChecker permChecker, final ManagementViewClientCriterion managementViewClientCriterion, final DistributionSetManagement distributionSetManagement, final TargetTagManagement tagManagement, final DeploymentManagement deploymentManagement, final TenantConfigurationManagement configManagement, final SystemSecurityContext systemSecurityContext, final UiProperties uiProperties) { super(eventBus, i18n, notification, permChecker); this.targetManagement = targetManagement; this.managementViewClientCriterion = managementViewClientCriterion; this.managementUIState = managementUIState; this.distributionSetManagement = distributionSetManagement; this.tagManagement = tagManagement; this.deploymentManagement = deploymentManagement; this.configManagement = configManagement; this.uiProperties = uiProperties; this.actionTypeOptionGroupLayout = new ActionTypeOptionGroupAssignmentLayout(i18n); this.maintenanceWindowLayout = new MaintenanceWindowLayout(i18n); this.systemSecurityContext = systemSecurityContext; setItemDescriptionGenerator(new AssignInstalledDSTooltipGenerator()); addNewContainerDS(); setColumnProperties(); setDataAvailable(getContainerDataSource().size() != 0); }
Example #13
Source File: DashboardMenu.java From hawkbit with Eclipse Public License 1.0 | 6 votes |
private Component buildUserMenu(final UiProperties uiProperties) { final MenuBar settings = new MenuBar(); settings.addStyleName("user-menu"); settings.setHtmlContentAllowed(true); final MenuItem settingsItem = settings.addItem("", getImage(uiProperties.isGravatar()), null); final String formattedTenant = UserDetailsFormatter.formatCurrentTenant(); if (!StringUtils.isEmpty(formattedTenant)) { settingsItem.setText(formattedTenant); UserDetailsFormatter.getCurrentTenant().ifPresent(tenant -> settingsItem.setDescription(i18n .getMessage("menu.user.description", tenant, UserDetailsFormatter.getCurrentUser().getUsername()))); } else { settingsItem.setText("..."); } settingsItem.setStyleName("user-menuitem"); final String logoutUrl = generateLogoutUrl(); settingsItem.addItem(i18n.getMessage("label.sign.out"), selectedItem -> Page.getCurrent().setLocation(logoutUrl)); return settings; }
Example #14
Source File: HawkbitCommonUtilTest.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Test @Description("If no default locale is set in the environment, then the requested browser locale may be used if supported") public void getLocaleToBeUsedShouldReturnRequestedLocalIfSupportedAndNoDefaultIsSet() { final UiProperties.Localization localizationProperties = Mockito.mock(UiProperties.Localization.class); // GIVEN doReturn(null).when(localizationProperties).getDefaultLocal(); doReturn(Arrays.asList(Locale.ENGLISH, Locale.GERMAN)).when(localizationProperties).getAvailableLocals(); // WHEN final Locale localeToBeUsed = HawkbitCommonUtil.getLocaleToBeUsed(localizationProperties, Locale.GERMAN); // THEN assertEquals(Locale.GERMAN, localeToBeUsed); }
Example #15
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 #16
Source File: DashboardMenu.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Autowired DashboardMenu(final VaadinMessageSource i18n, final UiProperties uiProperties, final HawkbitServerProperties serverProperties, final PermissionService permissionService, final List<DashboardMenuItem> dashboardVaadinViews) { this.i18n = i18n; this.uiProperties = uiProperties; this.serverProperties = serverProperties; this.permissionService = permissionService; this.dashboardVaadinViews = dashboardVaadinViews; }
Example #17
Source File: HawkbitCommonUtilTest.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Test @Description("If a default locale is set in the environment, then it should take perceedence over requested browser locale") public void getLocaleToBeUsedShouldReturnDefaultLocalIfSet() { final UiProperties.Localization localizationProperties = Mockito.mock(UiProperties.Localization.class); // GIVEN doReturn(Locale.GERMAN).when(localizationProperties).getDefaultLocal(); // WHEN final Locale localeToBeUsed = HawkbitCommonUtil.getLocaleToBeUsed(localizationProperties, Locale.CHINESE); // THEN assertEquals(Locale.GERMAN, localeToBeUsed); }
Example #18
Source File: HawkbitCommonUtil.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
/** * Determine the language that should be used considering localization * properties and a desired Locale * * @param localizationProperties * UI Localization settings * @param desiredLocale * desired Locale * @return Locale to be used according to UI and properties */ public static Locale getLocaleToBeUsed(final UiProperties.Localization localizationProperties, final Locale desiredLocale) { final List<Locale> availableLocals = localizationProperties.getAvailableLocals(); // ckeck if language code of UI locale matches an available local. // Country, region and variant are ignored. "availableLocals" must only // contain language codes without country or other extensions. if (availableLocals.contains(desiredLocale)) { return desiredLocale; } return localizationProperties.getDefaultLocal(); }
Example #19
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 #20
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 #21
Source File: AbstractHawkbitLoginUI.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Autowired protected AbstractHawkbitLoginUI(final ApplicationContext context, final VaadinSecurity vaadinSecurity, final VaadinMessageSource i18n, final UiProperties uiProperties, final MultitenancyIndicator multiTenancyIndicator) { this.context = context; this.vaadinSecurity = vaadinSecurity; this.i18n = i18n; this.uiProperties = uiProperties; this.multiTenancyIndicator = multiTenancyIndicator; this.isDemo = !uiProperties.getDemo().getDisclaimer().isEmpty(); }
Example #22
Source File: RepositoryConfigurationView.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
RepositoryConfigurationView(final VaadinMessageSource i18n, final TenantConfigurationManagement tenantConfigurationManagement, final UiProperties uiProperties) { this.i18n = i18n; this.uiProperties = uiProperties; this.actionAutocloseConfigurationItem = new ActionAutocloseConfigurationItem(tenantConfigurationManagement, i18n); this.actionAutocleanupConfigurationItem = new ActionAutocleanupConfigurationItem(tenantConfigurationManagement, i18n); this.multiAssignmentsConfigurationItem = new MultiAssignmentsConfigurationItem(tenantConfigurationManagement, i18n); init(); }
Example #23
Source File: RolloutConfigurationView.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
RolloutConfigurationView(final VaadinMessageSource i18n, final TenantConfigurationManagement tenantConfigurationManagement, final UiProperties uiProperties) { this.i18n = i18n; this.uiProperties = uiProperties; this.approvalConfigurationItem = new ApprovalConfigurationItem(tenantConfigurationManagement, i18n); this.init(); }
Example #24
Source File: MyUI.java From hawkbit with Eclipse Public License 1.0 | 5 votes |
@Autowired MyUI(final EventPushStrategy pushStrategy, final UIEventBus eventBus, final SpringViewProvider viewProvider, final ApplicationContext context, final DashboardMenu dashboardMenu, final ErrorView errorview, final NotificationUnreadButton notificationUnreadButton, final UiProperties uiProperties, final VaadinMessageSource i18n) { super(pushStrategy, eventBus, viewProvider, context, dashboardMenu, errorview, notificationUnreadButton, uiProperties, i18n); }
Example #25
Source File: MyUI.java From hawkbit-examples with Eclipse Public License 1.0 | 5 votes |
@Autowired MyUI(final EventPushStrategy pushStrategy, final UIEventBus eventBus, final SpringViewProvider viewProvider, final ApplicationContext context, final DashboardMenu dashboardMenu, final ErrorView errorview, final NotificationUnreadButton notificationUnreadButton, final UiProperties uiProperties, final VaadinMessageSource i18n) { super(pushStrategy, eventBus, viewProvider, context, dashboardMenu, errorview, notificationUnreadButton, uiProperties, i18n); }
Example #26
Source File: AzureUI.java From hawkbit-extensions with Eclipse Public License 1.0 | 5 votes |
@Autowired AzureUI(final EventPushStrategy pushStrategy, final UIEventBus eventBus, final SpringViewProvider viewProvider, final ApplicationContext context, final DashboardMenu dashboardMenu, final ErrorView errorview, final NotificationUnreadButton notificationUnreadButton, final UiProperties uiProperties, final VaadinMessageSource i18n) { super(pushStrategy, eventBus, viewProvider, context, dashboardMenu, errorview, notificationUnreadButton, uiProperties, i18n); }
Example #27
Source File: TargetAssignmentOperations.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
/** * Create the Assignment Confirmation Tab * * @param actionTypeOptionGroupLayout * the action Type Option Group Layout * @param maintenanceWindowLayout * the Maintenance Window Layout * @param saveButtonToggle * The event listener to derimne if save button should be enabled * or not * @param i18n * the Vaadin Message Source for multi language * @param uiProperties * the UI Properties * @return the Assignment Confirmation tab */ public static ConfirmationTab createAssignmentTab( final ActionTypeOptionGroupAssignmentLayout actionTypeOptionGroupLayout, final MaintenanceWindowLayout maintenanceWindowLayout, final Consumer<Boolean> saveButtonToggle, final VaadinMessageSource i18n, final UiProperties uiProperties) { final CheckBox maintenanceWindowControl = maintenanceWindowControl(i18n, maintenanceWindowLayout, saveButtonToggle); final Link maintenanceWindowHelpLink = maintenanceWindowHelpLinkControl(uiProperties, i18n); final HorizontalLayout layout = createHorizontalLayout(maintenanceWindowControl, maintenanceWindowHelpLink); actionTypeOptionGroupLayout.selectDefaultOption(); initMaintenanceWindow(maintenanceWindowLayout, saveButtonToggle); addValueChangeListener(actionTypeOptionGroupLayout, maintenanceWindowControl, maintenanceWindowHelpLink); return createAssignmentTab(actionTypeOptionGroupLayout, layout, maintenanceWindowLayout); }
Example #28
Source File: TargetAssignmentOperations.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
private static Link maintenanceWindowHelpLinkControl(final UiProperties uiProperties, final VaadinMessageSource i18n) { final String maintenanceWindowHelpUrl = uiProperties.getLinks().getDocumentation().getMaintenanceWindowView(); return SPUIComponentProvider.getHelpLink(i18n, maintenanceWindowHelpUrl); }
Example #29
Source File: MyLoginUI.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Autowired MyLoginUI(final ApplicationContext context, final VaadinSecurity vaadinSecurity, final VaadinMessageSource i18n, final UiProperties uiProperties, final MultitenancyIndicator multiTenancyIndicator) { super(context, vaadinSecurity, i18n, uiProperties, multiTenancyIndicator); }
Example #30
Source File: DeploymentView.java From hawkbit with Eclipse Public License 1.0 | 4 votes |
@Autowired DeploymentView(final UIEventBus eventBus, final SpPermissionChecker permChecker, final VaadinMessageSource i18n, final UINotification uiNotification, final ManagementUIState managementUIState, final DeploymentManagement deploymentManagement, final DistributionTableFilters distFilterParameters, final DistributionSetManagement distributionSetManagement, final DistributionSetTypeManagement distributionSetTypeManagement, final TargetManagement targetManagement, final EntityFactory entityFactory, final UiProperties uiProperties, final ManagementViewClientCriterion managementViewClientCriterion, final TargetTagManagement targetTagManagement, final DistributionSetTagManagement distributionSetTagManagement, final TargetFilterQueryManagement targetFilterQueryManagement, final SystemManagement systemManagement, final TenantConfigurationManagement configManagement, final SystemSecurityContext systemSecurityContext, final NotificationUnreadButton notificationUnreadButton, final DeploymentViewMenuItem deploymentViewMenuItem, @Qualifier("uiExecutor") final Executor uiExecutor) { super(eventBus, notificationUnreadButton); this.permChecker = permChecker; this.i18n = i18n; this.uiNotification = uiNotification; this.managementUIState = managementUIState; this.deploymentViewMenuItem = deploymentViewMenuItem; if (permChecker.hasTargetReadPermission()) { this.actionHistoryLayout = new ActionHistoryLayout(i18n, deploymentManagement, eventBus, uiNotification, managementUIState, permChecker); this.actionStatusLayout = new ActionStatusLayout(i18n, eventBus, managementUIState); this.actionStatusMsgLayout = new ActionStatusMsgLayout(i18n, eventBus, managementUIState); this.targetTagFilterLayout = new TargetTagFilterLayout(i18n, managementUIState, managementViewClientCriterion, permChecker, eventBus, uiNotification, entityFactory, targetFilterQueryManagement, targetTagManagement); final TargetTable targetTable = new TargetTable(eventBus, i18n, uiNotification, targetManagement, managementUIState, permChecker, managementViewClientCriterion, distributionSetManagement, targetTagManagement, deploymentManagement, configManagement, systemSecurityContext, uiProperties); this.countMessageLabel = new CountMessageLabel(eventBus, targetManagement, i18n, managementUIState, targetTable); this.targetTableLayout = new TargetTableLayout(eventBus, targetTable, targetManagement, entityFactory, i18n, uiNotification, managementUIState, managementViewClientCriterion, deploymentManagement, uiProperties, permChecker, targetTagManagement, distributionSetManagement, uiExecutor); actionHistoryLayout.registerDetails(((ActionStatusGrid) actionStatusLayout.getGrid()).getDetailsSupport()); actionStatusLayout .registerDetails(((ActionStatusMsgGrid) actionStatusMsgLayout.getGrid()).getDetailsSupport()); } else { this.actionHistoryLayout = null; this.actionStatusLayout = null; this.actionStatusMsgLayout = null; this.targetTagFilterLayout = null; this.targetTableLayout = null; } if (permChecker.hasReadRepositoryPermission()) { final DistributionTagButtons distributionTagButtons = new DistributionTagButtons(eventBus, managementUIState, entityFactory, i18n, uiNotification, permChecker, distFilterParameters, distributionSetManagement, managementViewClientCriterion, distributionSetTagManagement); this.distributionTagLayout = new DistributionTagLayout(eventBus, managementUIState, i18n, permChecker, distributionSetTagManagement, entityFactory, uiNotification, distributionTagButtons); this.distributionTableLayout = new DistributionTableLayout(i18n, eventBus, permChecker, managementUIState, distributionSetManagement, distributionSetTypeManagement, managementViewClientCriterion, entityFactory, uiNotification, distributionSetTagManagement, targetTagManagement, systemManagement, targetManagement, deploymentManagement, configManagement, systemSecurityContext, uiProperties); } else { this.distributionTagLayout = null; this.distributionTableLayout = null; } }