Mit dem Erweiterungspunkt zum Herunterladen von Assets im IBM® Rational Asset Manager-Eclipse-Client können Sie ein Importprogramm für Assets mit einem bestimmten Assettyp oder einer bestimmten Kategorisierung erstellen.
Wenn die Kriterien für ein angepasstes Importprogramm erfüllt sind, kann der Benutzer verschiedene Assistenten verwenden, um die Assets vom Server herunterzuladen.
<!ELEMENT extension (downloadContributor+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT assetType EMPTY>
<!ATTLIST assetType
id CDATA #REQUIRED>
<!ELEMENT assetCategory EMPTY>
<!ATTLIST assetCategory
id CDATA #REQUIRED>
<!ELEMENT artifactPath EMPTY>
<!ATTLIST artifactPath
path CDATA #REQUIRED>
<!ELEMENT downloadContributor (enablement?)>
<!ATTLIST downloadContributor
class CDATA #REQUIRED>
<!ELEMENT and ((assetType | (and | or | not | assetCategory | artifactPath)+) | (and | or | not | assetCategory | artifactPath))>
<!ELEMENT or (and | or | not | assetType | assetCategory | artifactPath)>
<!ELEMENT not (and | or | not | assetType | assetCategory | artifactPath)>
Im folgenden Beispiel stellt der Contributor die Klasse bereit, die aktiviert wird, wenn die Aktivierungsbedingungen erfüllt sind. Komplexe Aktivierungsbedingungen können mithilfe einer Kombination aus den logischen Operatoren AND, OR und NOT angegeben werden.
<extension
point="com.ibm.ram.rich.ui.extension.downloadAsset">
<downloadContributor
class="com.ibm.ram.rich.ui.test.downloadasset.RASDownloadContributor">
<enablement>
<or>
<assetType
id="Service Test">
</assetType>
<assetCategory
id="Automobiles/Color/Red">
</assetCategory>
<and>
<assetCategory
id="Automobiles/Color/Red">
</assetCategory>
<not>
<artifactPath
path="/[^/]*/plugin.xml">
</artifactPath>
</not>
</and>
</or>
</enablement>
</downloadContributor>
</extension>