Creates window for update software module.

@param baseSwModuleId
id of the software module to edit.
@return reference of {@link com.vaadin.ui.Window} to update software
module.
552457
public CommonDialogWindow createUpdateSoftwareModuleWindow(final Long baseSwModuleId) {
        this.baseSwModuleId = baseSwModuleId;
        resetComponents();
        populateTypeNameCombo();
        populateValuesOfSwModule();
        return createWindow();
    }
766089
protected Hibernate5Module createHibernate5Module() {
        Hibernate5Module module = new Hibernate5Module();
        if (lazyLoadingEnabled) {
            module.enable(Feature.FORCE_LAZY_LOADING);
        }
        return module;
    }
142001
public CommonDialogWindow createWindow() {
        window = new WindowBuilder(SPUIDefinitions.CREATE_UPDATE_WINDOW).caption(getWindowCaption()).content(this)
                .cancelButtonClickListener(event -> discard()).layout(mainLayout).i18n(i18n)
                .saveDialogCloseListener(new SaveOnDialogCloseListener()).buildCommonDialogWindow();
        return window;
    }
465549
public UI wrapWindow(Window window) {
        final UI ui = wrapLayout(new VerticalLayout());
        ui.addWindow(window);
        return ui;
    }
417136
public List<String> getModulesToUpdate() {

        if (m_modulesToUpdate == null) {
            getUptodateModules();
            m_components = new CmsIdentifiableObjectContainer<CmsSetupComponent>(true, true);
            try {
                addComponentsFromPath(m_webAppRfsPath + FOLDER_UPDATE);
            } catch (CmsConfigurationException e) {
                //
            }
        }
        return m_modulesToUpdate;
    }
294074
public final ControlBrowseGet createNewControlBrowseGet() throws MessageCreateFailedException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlBrowseGet");
    ControlBrowseGet msg = null;
    try {
      msg = new ControlBrowseGetImpl(MfpConstants.CONSTRUCTOR_NO_OP);
    }
    catch (MessageDecodeFailedException e) {
      /* No need to FFDC this as JsMsgObject will already have done so */
      // No FFDC code needed
      throw new MessageCreateFailedException(e);
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "createNewControlBrowseGet");
    return msg;
  }
221523
@Nullable
    public boolean addModuleSpec(ModuleSpec moduleSpec) {
        Objects.requireNonNull(moduleSpec, "moduleSpec");
        ModuleIdentifier revisionId = moduleSpec.getModuleIdentifier();
        boolean available = !moduleSpecs.containsKey(revisionId);
        if (available) {
            moduleSpecs.put(revisionId, moduleSpec);
        }
        return available;
    }
741416
public static CmsModuleDependencyWidget create(CmsModuleDependency dep) {

        CmsModuleDependencyWidget result = new CmsModuleDependencyWidget();
        if (dep != null) {
            result.m_moduleSelect.setValue(dep.getName());
            result.m_version.setValue(dep.getVersion().toString());
        }
        return result;
    }
880559
public static SimpleModule getModule() {
        SimpleModule module = new SimpleModule();
        module.addSerializer(Base64Url.class, new Base64UrlSerializer());
        return module;
    }
37387
private void populateValuesOfSwModule() {
        if (baseSwModuleId == null) {
            return;
        }
        editSwModule = Boolean.TRUE;
        softwareModuleManagement.get(baseSwModuleId).ifPresent(swModule -> {
            nameTextField.setValue(swModule.getName());
            versionTextField.setValue(swModule.getVersion());
            vendorTextField.setValue(swModule.getVendor());
            descTextArea.setValue(swModule.getDescription());
            softwareModuleType = new LabelBuilder().name(swModule.getType().getName())
                    .caption(i18n.getMessage(UIMessageIdProvider.CAPTION_ARTIFACT_SOFTWARE_MODULE_TYPE)).buildLabel();
        });
    }
1044566
@Override
    public T addAsModule(final String resourceName, final String targetPath) throws IllegalArgumentException {
        Validate.notNull(resourceName, "Resource must be specified");
        Validate.notNull(targetPath, "Target Path must be specified");

        return addAsModule(resourceName, new BasicPath(targetPath));
    }
955216
@Override
	public IModule newModule(String mid, URI uri) {
		return new ModuleImpl(mid, uri);
	}
550402
public Window getWindow(final String controllerId) {
        final Optional<Target> target = targetManagement.getByControllerID(controllerId);
        if (!target.isPresent()) {
            uINotification.displayWarning(i18n.getMessage("target.not.exists", controllerId));
            return null;
        }
        populateValuesOfTarget(target.get());
        createNewWindow();
        window.setCaption(i18n.getMessage("caption.update", i18n.getMessage("caption.target")));
        window.addStyleName("target-update-window");
        return window;
    }
1055354
public DbModule getModule(final String moduleId) {
        final DbModule dbModule = repositoryHandler.getModule(moduleId);

        if (dbModule == null) {
            throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND)
                    .entity("Module " + moduleId + " does not exist.").build());
        }

        return dbModule;
    }
312256
private JpaSoftwareModule touch(final Long moduleId) {
        return touch(get(moduleId).orElseThrow(() -> new EntityNotFoundException(SoftwareModule.class, moduleId)));
    }
389454
public TreeNode getModuleTree(final String moduleId) {
        final ModuleHandler moduleHandler = new ModuleHandler(repoHandler);
        final DbModule module = moduleHandler.getModule(moduleId);

        final TreeNode tree = new TreeNode();
        tree.setName(module.getName());

        // Add submodules
        for (final DbModule submodule : module.getSubmodules()) {
            addModuleToTree(submodule, tree);
        }

        return tree;
    }
283205
public T addModule(final String moduleName, final String slot, final byte[] newHash) {
        final ContentItem item = createModuleItem(moduleName, slot, newHash);
        addContentModification(createContentModification(item, ModificationType.ADD, NO_CONTENT));
        return returnThis();
    }