| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| */ |
| package org.eclipse.osbp.preferences |
| |
| /** |
| * <configurations> dependencies for the OSBP product bundle <code>*.product</code> file. |
| */ |
| public class ProductFileConfigurations extends ProductFileBase { |
| |
| new(ProductConfigurationPrefs prefs) { |
| super(prefs) |
| } |
| |
| new(ProductConfigurationPrefs prefs, String... jndiNames) { |
| super(prefs, jndiNames) |
| } |
| |
| override getDeprecatedAsString() { |
| prepareSerialized( |
| ''' |
| ${{UNNECESSARY_DATA_BASE_VENDOR_CONFIGURATIONS}} |
| <plugin id="org.drools.api" autoStart="true" startLevel="4" /> |
| <plugin id="org.eclipse.osbp.authentication.ui" autoStart="true" startLevel="0" /> |
| <plugin id="net.osbee.bpm" autoStart="true" startLevel="5" /> |
| <plugin id="net.osbee.mobile.vaadin.ecview.servlet.mobile" autoStart="true" startLevel="0" /> |
| ''') |
| } |
| |
| override getRequiredAsString() { |
| prepareSerialized( |
| ''' |
| ${{NECESSARY_DATA_BASE_VENDOR_CONFIGURATIONS}} |
| <plugin id="org.apache.aries.spifly.dynamic.bundle" autoStart="true" startLevel="2" /> |
| <plugin id="org.apache.aries.util" autoStart="true" startLevel="2" /> |
| <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.e4.ui.services" autoStart="false" startLevel="1" /> |
| <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" /> |
| <plugin id="org.eclipse.equinox.coordinator" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="1" /> |
| <plugin id="org.eclipse.equinox.event" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.gemini.naming" autoStart="true" startLevel="3" /> |
| <plugin id="org.eclipse.osbp.dsl.dto.lib" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.osbp.dsl.metadata.service" autoStart="true" startLevel="3" /> |
| <plugin id="org.eclipse.osbp.ecview.extension.strategy" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.osbp.ecview.jetty.manager" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.osbp.osgi.hybrid.api" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.osbp.runtime.ecore.bundlespace" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.osbp.runtime.event" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.osbp.runtime.jsr303.validation" autoStart="true" startLevel="4" /> |
| <plugin id="org.eclipse.osbp.runtime.typeprovider.bundlespace" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.osbp.utils.entitymock.dbfill.ui" autoStart="true" startLevel="0" /> |
| <plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" /> |
| <plugin id="org.objectweb.asm.commons" autoStart="true" startLevel="2" /> |
| ''') |
| } |
| |
| override getRecommendedAsString() { |
| prepareSerialized( |
| ''' |
| <plugin id="net.osbee.mobile.vaadin.ecview.servlet.mobile" autoStart="true" startLevel="0" /> |
| ''') |
| } |
| |
| override prepareSerialized(String asString) { |
| removeDuplicates(asString |
| .replace( |
| "${{NECESSARY_DATA_BASE_VENDOR_CONFIGURATIONS}}", |
| EnumDatabaseVendor.getNecessaryConfigurations(dataBaseVendors) |
| ) |
| ) |
| } |
| } |