org.vaadin.spring.events.EventBus.UIEventBus Java Examples

The following examples show how to use org.vaadin.spring.events.EventBus.UIEventBus. 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: DistributionSetDetails.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
DistributionSetDetails(final VaadinMessageSource i18n, final UIEventBus eventBus,
        final SpPermissionChecker permissionChecker, final ManageDistUIState manageDistUIState,
        final ManagementUIState managementUIState,
        final DistributionAddUpdateWindowLayout distributionAddUpdateWindowLayout,
        final DistributionSetManagement distributionSetManagement, final UINotification uiNotification,
        final DistributionSetTagManagement distributionSetTagManagement,
        final DsMetadataPopupLayout dsMetadataPopupLayout, final TenantConfigurationManagement configManagement,
        final SystemSecurityContext systemSecurityContext) {
    super(i18n, eventBus, permissionChecker, managementUIState, distributionAddUpdateWindowLayout,
            distributionSetManagement, dsMetadataPopupLayout, uiNotification, distributionSetTagManagement,
            createSoftwareModuleDetailsTable(i18n, permissionChecker, distributionSetManagement, eventBus,
                    manageDistUIState, uiNotification),
            configManagement, systemSecurityContext);
    this.manageDistUIState = manageDistUIState;

    tfqDetailsTable = new TargetFilterQueryDetailsTable(i18n);

    addAdditionalTab();
    restoreState();
}
 
Example #2
Source File: DistributionTagButtons.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
public DistributionTagButtons(final UIEventBus eventBus, final ManagementUIState managementUIState,
        final EntityFactory entityFactory, final VaadinMessageSource i18n, final UINotification uiNotification,
        final SpPermissionChecker permChecker, final DistributionTableFilters distFilterParameters,
        final DistributionSetManagement distributionSetManagement,
        final ManagementViewClientCriterion managementViewClientCriterion,
        final DistributionSetTagManagement distributionSetTagManagement) {
    super(eventBus, new DistributionTagButtonClick(eventBus, managementUIState), i18n);
    this.spDistTagDropEvent = new DistributionTagDropEvent(i18n, uiNotification, permChecker, distFilterParameters,
            distributionSetManagement, eventBus, managementViewClientCriterion);
    this.managementUIState = managementUIState;
    this.entityFactory = entityFactory;
    this.permChecker = permChecker;
    this.uiNotification = uiNotification;
    this.distributionSetTagManagement = distributionSetTagManagement;

    if (permChecker.hasReadRepositoryPermission()) {
        addNewTag(entityFactory.tag().create().name(getNoTagLabel()).build());
    }
}
 
Example #3
Source File: DistributionTable.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
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 #4
Source File: TargetTable.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
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 #5
Source File: AbstractTable.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
protected AbstractTable(final UIEventBus eventBus, final VaadinMessageSource i18n,
        final UINotification notification, final SpPermissionChecker permChecker) {
    this.eventBus = eventBus;
    this.i18n = i18n;
    this.notification = notification;
    this.permChecker = permChecker;
    setStyleName("sp-table");
    setSizeFull();
    setImmediate(true);
    setHeight(100.0F, Unit.PERCENTAGE);
    addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
    addStyleName(ValoTheme.TABLE_SMALL);
    setSortEnabled(false);
    setId(getTableId());
    addCustomGeneratedColumns();
    addDeleteColumn();
    setDefault();
    addValueChangeListener(event -> onValueChange());
    setPageLength(SPUIDefinitions.PAGE_SIZE);
    if (doSubscribeToEventBus()) {
        eventBus.subscribe(this);
    }
}
 
Example #6
Source File: SwModuleTableLayout.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
public SwModuleTableLayout(final VaadinMessageSource i18n, final UINotification uiNotification,
        final UIEventBus eventBus, final SoftwareModuleManagement softwareModuleManagement,
        final SoftwareModuleTypeManagement softwareModuleTypeManagement, final EntityFactory entityFactory,
        final ManageDistUIState manageDistUIState, final SpPermissionChecker permChecker,
        final DistributionsViewClientCriterion distributionsViewClientCriterion,
        final ArtifactUploadState artifactUploadState, final ArtifactManagement artifactManagement) {

    final SwMetadataPopupLayout swMetadataPopupLayout = new SwMetadataPopupLayout(i18n, uiNotification, eventBus,
            softwareModuleManagement, entityFactory, permChecker);

    this.swModuleTable = new SwModuleTable(eventBus, i18n, uiNotification, manageDistUIState,
            softwareModuleManagement, distributionsViewClientCriterion, permChecker);

    final SoftwareModuleAddUpdateWindow softwareModuleAddUpdateWindow = new SoftwareModuleAddUpdateWindow(i18n,
            uiNotification, eventBus, softwareModuleManagement, softwareModuleTypeManagement, entityFactory,
            swModuleTable);
    final ArtifactDetailsLayout artifactDetailsLayout = new ArtifactDetailsLayout(i18n, eventBus,
            artifactUploadState, uiNotification, artifactManagement, softwareModuleManagement);

    super.init(i18n,
            new SwModuleTableHeader(i18n, permChecker, eventBus, manageDistUIState, softwareModuleAddUpdateWindow),
            swModuleTable, new SwModuleDetails(i18n, eventBus, permChecker, softwareModuleAddUpdateWindow,
                    manageDistUIState, softwareModuleManagement, swMetadataPopupLayout, artifactDetailsLayout));
}
 
Example #7
Source File: AbstractTableDetailsLayout.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
protected AbstractTableDetailsLayout(final VaadinMessageSource i18n, final UIEventBus eventBus,
        final SpPermissionChecker permissionChecker, final ManagementUIState managementUIState) {
    this.i18n = i18n;
    this.permissionChecker = permissionChecker;
    this.managementUIState = managementUIState;
    detailsLayout = createTabLayout();
    descriptionLayout = createTabLayout();
    logLayout = createTabLayout();
    attributesLayout = createTabLayout();
    tagsLayout = createTabLayout();
    createComponents();
    buildLayout();
    if (doSubscribeToEventBus()) {
        eventBus.subscribe(this);
    }
}
 
Example #8
Source File: RolloutListView.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
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 #9
Source File: RolloutListGrid.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
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 #10
Source File: CreateOrUpdateFilterTable.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
CreateOrUpdateFilterTable(final VaadinMessageSource i18n, final UIEventBus eventBus,
        final FilterManagementUIState filterManagementUIState) {
    this.i18n = i18n;
    this.filterManagementUIState = filterManagementUIState;
    this.eventBus = eventBus;

    setStyleName("sp-table");
    setSizeFull();
    setImmediate(true);
    setHeight(100.0F, Unit.PERCENTAGE);
    addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
    addStyleName(ValoTheme.TABLE_SMALL);
    setColumnCollapsingAllowed(true);
    addCustomGeneratedColumns();
    restoreOnLoad();
    populateTableData();
    setId(UIComponentIdProvider.CUSTOM_FILTER_TARGET_TABLE_ID);
    setSelectable(false);
    eventBus.subscribe(this);
    setItemDescriptionGenerator(new AssignInstalledDSTooltipGenerator());
}
 
Example #11
Source File: CreateOrUpdateFilterHeader.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
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 #12
Source File: AbstractDistributionSetDetails.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
protected AbstractDistributionSetDetails(final VaadinMessageSource i18n, final UIEventBus eventBus,
        final SpPermissionChecker permissionChecker, final ManagementUIState managementUIState,
        final DistributionAddUpdateWindowLayout distributionAddUpdateWindowLayout,
        final DistributionSetManagement distributionSetManagement,
        final DsMetadataPopupLayout dsMetadataPopupLayout, final UINotification uiNotification,
        final DistributionSetTagManagement distributionSetTagManagement,
        final SoftwareModuleDetailsTable softwareModuleDetailsTable,
        final TenantConfigurationManagement tenantConfigurationManagement,
        final SystemSecurityContext systemSecurityContext) {
    super(i18n, eventBus, permissionChecker, managementUIState);
    this.distributionAddUpdateWindowLayout = distributionAddUpdateWindowLayout;
    this.uiNotification = uiNotification;
    this.distributionSetManagement = distributionSetManagement;
    this.dsMetadataPopupLayout = dsMetadataPopupLayout;
    this.distributionTagToken = new DistributionTagToken(permissionChecker, i18n, uiNotification, eventBus,
            managementUIState, distributionSetTagManagement, distributionSetManagement);
    this.softwareModuleDetailsTable = softwareModuleDetailsTable;
    this.tenantConfigurationManagement = tenantConfigurationManagement;
    this.systemSecurityContext = systemSecurityContext;

    dsMetadataTable = new DistributionSetMetadataDetailsLayout(i18n, distributionSetManagement,
            dsMetadataPopupLayout);
    createSoftwareModuleTab();
    addDetailsTab();
}
 
Example #13
Source File: TargetBulkUpdateWindowLayout.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
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 #14
Source File: TargetTableHeader.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
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 #15
Source File: AbstractTableHeader.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
protected AbstractTableHeader(final VaadinMessageSource i18n, final SpPermissionChecker permChecker,
        final UIEventBus eventBus, final ManagementUIState managementUIState,
        final ManageDistUIState manageDistUIstate, final ArtifactUploadState artifactUploadState) {
    this.i18n = i18n;
    this.permChecker = permChecker;
    this.eventBus = eventBus;
    this.managementUIState = managementUIState;
    this.manageDistUIstate = manageDistUIstate;
    this.artifactUploadState = artifactUploadState;
    createComponents();
    buildLayout();
    restoreState();
    if (doSubscribeToEventBus()) {
        eventBus.subscribe(this);
    }
}
 
Example #16
Source File: UploadProgressInfoWindow.java    From hawkbit with Eclipse Public License 1.0 6 votes vote down vote up
UploadProgressInfoWindow(final UIEventBus eventBus, final ArtifactUploadState artifactUploadState,
        final VaadinMessageSource i18n) {
    this.artifactUploadState = artifactUploadState;
    this.i18n = i18n;

    setPopupProperties();
    createStatusPopupHeaderComponents();

    mainLayout = new VerticalLayout();
    mainLayout.setSpacing(Boolean.TRUE);
    mainLayout.setSizeUndefined();
    setPopupSizeInMinMode();

    uploads = getGridContainer();
    grid = createGrid();
    setGridColumnProperties();

    mainLayout.addComponents(getCaptionLayout(), grid);
    mainLayout.setExpandRatio(grid, 1.0F);
    setContent(mainLayout);
    eventBus.subscribe(this);
    ui = UI.getCurrent();
}
 
Example #17
Source File: ActionStatusGrid.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * 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 #18
Source File: SoftwareModuleDetails.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
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 #19
Source File: DistributionTagFilterHeader.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
DistributionTagFilterHeader(final VaadinMessageSource i18n, final ManagementUIState managementUIState,
        final SpPermissionChecker permChecker, final UIEventBus eventBus,
        final DistributionSetTagManagement distributionSetTagManagement, final EntityFactory entityFactory,
        final UINotification uiNotification, final DistributionTagButtons distributionTagButtons) {
    super(permChecker, eventBus, i18n);
    this.entityFactory = entityFactory;
    this.managementUIState = managementUIState;
    this.uiNotification = uiNotification;
    this.distributionSetTagManagement = distributionSetTagManagement;
    this.distributionTagButtons = distributionTagButtons;
}
 
Example #20
Source File: DistributionTableLayout.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
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 #21
Source File: SwModuleTable.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
SwModuleTable(final UIEventBus eventBus, final VaadinMessageSource i18n, final UINotification uiNotification,
        final ManageDistUIState manageDistUIState, final SoftwareModuleManagement softwareManagement,
        final DistributionsViewClientCriterion distributionsViewClientCriterion,
        final SpPermissionChecker permChecker) {
    super(eventBus, i18n, uiNotification, permChecker);
    this.manageDistUIState = manageDistUIState;
    this.softwareModuleManagement = softwareManagement;
    this.distributionsViewClientCriterion = distributionsViewClientCriterion;

    addNewContainerDS();
    setColumnProperties();
    setDataAvailable(getContainerDataSource().size() != 0);
    styleTableOnDistSelection();
}
 
Example #22
Source File: SMTypeFilterHeader.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
SMTypeFilterHeader(final VaadinMessageSource i18n, final SpPermissionChecker permChecker, final UIEventBus eventBus,
        final ArtifactUploadState artifactUploadState, final EntityFactory entityFactory,
        final UINotification uiNotification, final SoftwareModuleTypeManagement softwareModuleTypeManagement,
        final SMTypeFilterButtons smTypeFilterButtons) {
    super(permChecker, eventBus, i18n);
    this.artifactUploadState = artifactUploadState;
    this.entityFactory = entityFactory;
    this.uiNotification = uiNotification;
    this.softwareModuleTypeManagement = softwareModuleTypeManagement;
    this.smTypeFilterButtons = smTypeFilterButtons;
}
 
Example #23
Source File: SoftwareModuleTable.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
SoftwareModuleTable(final UIEventBus eventBus, final VaadinMessageSource i18n, final UINotification uiNotification,
        final ArtifactUploadState artifactUploadState, final SoftwareModuleManagement softwareManagement,
        final UploadViewClientCriterion uploadViewClientCriterion, final SpPermissionChecker permChecker) {
    super(eventBus, i18n, uiNotification, permChecker);
    this.artifactUploadState = artifactUploadState;
    this.softwareModuleManagement = softwareManagement;
    this.uploadViewClientCriterion = uploadViewClientCriterion;

    addNewContainerDS();
    setColumnProperties();
    setDataAvailable(getContainerDataSource().size() != 0);
}
 
Example #24
Source File: ActionHistoryGrid.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
ActionHistoryGrid(final VaadinMessageSource i18n, final DeploymentManagement deploymentManagement,
        final UIEventBus eventBus, final UINotification notification, final ManagementUIState managementUIState,
        final SpPermissionChecker permissionChecker) {
    super(i18n, eventBus, permissionChecker);
    this.deploymentManagement = deploymentManagement;
    this.notification = notification;
    this.managementUIState = managementUIState;

    setMaximizeSupport(new ActionHistoryMaximizeSupport());
    setSingleSelectionSupport(new SingleSelectionSupport());

    if (!managementUIState.isActionHistoryMaximized()) {
        getSingleSelectionSupport().disable();
    }

    setGeneratedPropertySupport(new ActionHistoryGeneratedPropertySupport());
    setDetailsSupport(new DetailsSupport());

    final LabelConfig conf = new LabelConfig();
    states = conf.createStatusLabelConfig(i18n, UIComponentIdProvider.ACTION_HISTORY_TABLE_STATUS_LABEL_ID);
    activeStates = conf
            .createActiveStatusLabelConfig(UIComponentIdProvider.ACTION_HISTORY_TABLE_ACTIVESTATE_LABEL_ID);
    alignGenerator = new AlignCellStyleGenerator(leftAlignedColumns, centerAlignedColumns, rightAlignedColumns);
    tooltipGenerator = new TooltipGenerator(i18n);

    init();
}
 
Example #25
Source File: DistributionSetTableLayout.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
public DistributionSetTableLayout(final VaadinMessageSource i18n, final UIEventBus eventBus,
        final SpPermissionChecker permissionChecker, final ManagementUIState managementUIState,
        final ManageDistUIState manageDistUIState, final SoftwareModuleManagement softwareManagement,
        final DistributionSetManagement distributionSetManagement,
        final DistributionSetTypeManagement distributionSetTypeManagement, final TargetManagement targetManagement,
        final EntityFactory entityFactory, final UINotification uiNotification,
        final DistributionSetTagManagement distributionSetTagManagement,
        final DistributionsViewClientCriterion distributionsViewClientCriterion,
        final SystemManagement systemManagement, final TenantConfigurationManagement configManagement,
        final SystemSecurityContext systemSecurityContext) {

    this.distributionSetTable = new DistributionSetTable(eventBus, i18n, uiNotification, permissionChecker,
            manageDistUIState, distributionSetManagement, softwareManagement, distributionsViewClientCriterion,
            targetManagement);

    final DistributionAddUpdateWindowLayout distributionAddUpdateWindowLayout = new DistributionAddUpdateWindowLayout(
            i18n, uiNotification, eventBus, distributionSetManagement, distributionSetTypeManagement,
            systemManagement, entityFactory, distributionSetTable, configManagement, systemSecurityContext);

    final DsMetadataPopupLayout popupLayout = new DsMetadataPopupLayout(i18n, uiNotification, eventBus,
            distributionSetManagement, entityFactory, permissionChecker);

    super.init(i18n,
            new DistributionSetTableHeader(
                    i18n, permissionChecker, eventBus, manageDistUIState, distributionAddUpdateWindowLayout),
            distributionSetTable,
            new DistributionSetDetails(i18n, eventBus, permissionChecker, manageDistUIState, managementUIState,
                    distributionAddUpdateWindowLayout, distributionSetManagement, uiNotification,
                    distributionSetTagManagement, popupLayout, configManagement, systemSecurityContext));
}
 
Example #26
Source File: DistributionDetails.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
DistributionDetails(final VaadinMessageSource i18n, final UIEventBus eventBus,
        final SpPermissionChecker permissionChecker, final ManagementUIState managementUIState,
        final DistributionSetManagement distributionSetManagement,
        final DsMetadataPopupLayout dsMetadataPopupLayout, final UINotification uiNotification,
        final DistributionSetTagManagement distributionSetTagManagement,
        final DistributionAddUpdateWindowLayout distributionAddUpdateWindowLayout,
        final TenantConfigurationManagement tenantConfigurationManagement,
        final SystemSecurityContext systemSecurityContext) {
    super(i18n, eventBus, permissionChecker, managementUIState, distributionAddUpdateWindowLayout,
            distributionSetManagement, dsMetadataPopupLayout, uiNotification, distributionSetTagManagement,
            createSoftwareModuleDetailsTable(i18n, permissionChecker, uiNotification),
            tenantConfigurationManagement, systemSecurityContext);
    restoreState();
}
 
Example #27
Source File: AbstractTagToken.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
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 #28
Source File: DistSMTypeFilterHeader.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
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 #29
Source File: TargetAssignmentOperations.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
private static void refreshPinnedDetails(final Set<Long> dsIds, final Set<Long> targetIds,
        final ManagementUIState managementUIState, final UIEventBus eventBus, final Object eventSource) {
    final Optional<Long> pinnedDist = managementUIState.getTargetTableFilters().getPinnedDistId();
    final Optional<TargetIdName> pinnedTarget = managementUIState.getDistributionTableFilters().getPinnedTarget();

    if (pinnedDist.isPresent()) {
        if (dsIds.contains(pinnedDist.get())) {
            eventBus.publish(eventSource, PinUnpinEvent.PIN_DISTRIBUTION);
        }
    } else if (pinnedTarget.isPresent() && targetIds.contains(pinnedTarget.get().getTargetId())) {
        eventBus.publish(eventSource, PinUnpinEvent.PIN_TARGET);
    }
}
 
Example #30
Source File: AbstractFilterLayout.java    From hawkbit with Eclipse Public License 1.0 5 votes vote down vote up
protected AbstractFilterLayout(final AbstractFilterHeader filterHeader, final AbstractFilterButtons filterButtons,
        final UIEventBus eventBus) {
    this.filterHeader = filterHeader;
    this.filterButtons = filterButtons;
    this.eventBus = eventBus;
    buildLayout();
    eventBus.subscribe(this);
}