public class SiteXMLAction
extends AbstractPublisherAction
| Modifier and Type | Field and Description |
|---|---|
protected java.net.URI |
location |
protected UpdateSite |
updateSite |
| Constructor and Description |
|---|
SiteXMLAction(UpdateSite updateSite,
java.lang.String categoryQualifier)
Creates a SiteXMLAction from an Update site with an optional qualifier to use
for category names
|
SiteXMLAction(java.net.URI location,
java.lang.String categoryQualifier)
Creates a SiteXMLAction from a Location (URI) with an optional qualifier to
use for category names
|
| Modifier and Type | Method and Description |
|---|---|
IInstallableUnit |
createCategoryIU(SiteCategory category,
java.util.Set<IInstallableUnit> childrenIUs)
Creates an IU corresponding to an update site category
|
IInstallableUnit |
createCategoryIU(SiteCategory category,
java.util.Set<IInstallableUnit> childrenIUs,
IInstallableUnit nestedCategory)
Deprecated.
use
IInstallableUnitcreateCategoryIU(SiteCategory, Set)
instead |
protected VersionRange |
createVersionRange(java.lang.String versionId) |
protected void |
generateCategoryIUs(java.util.Map<SiteCategory,java.util.Set<IInstallableUnit>> categoriesToIUs,
IPublisherResult result)
Generates IUs corresponding to update site categories.
|
protected java.util.Map<SiteBundle,java.util.Set<SiteCategory>> |
getBundleToCategoryMappings(IPublisherInfo publisherInfo)
Computes the mapping of bundles to categories as defined in the site.xml, if
available.
|
protected java.util.Map<SiteFeature,java.util.Set<SiteCategory>> |
getFeatureToCategoryMappings(IPublisherInfo publisherInfo)
Computes the mapping of features to categories as defined in the site.xml, if
available.
|
protected Transport |
getTransport(IPublisherInfo info) |
IStatus |
perform(IPublisherInfo publisherInfo,
IPublisherResult results,
IProgressMonitor monitor) |
void |
setCategoryVersion(java.lang.String version) |
protected UpdateSite updateSite
protected java.net.URI location
public SiteXMLAction(java.net.URI location,
java.lang.String categoryQualifier)
location - The location of the update sitecategoryQualifier - The qualifier to prepend to categories. This
qualifier is used to ensure that the category IDs
are unique between update sites. If null a
default qualifier will be generatedpublic SiteXMLAction(UpdateSite updateSite, java.lang.String categoryQualifier)
updateSite - The update sitecategoryQualifier - The qualifier to prepend to categories. This
qualifier is used to ensure that the category IDs
are unique between update sites. If null a
default qualifier will be generatedpublic void setCategoryVersion(java.lang.String version)
public IStatus perform(IPublisherInfo publisherInfo,
IPublisherResult results,
IProgressMonitor monitor)
protected VersionRange createVersionRange(java.lang.String versionId)
protected java.util.Map<SiteFeature,java.util.Set<SiteCategory>> getFeatureToCategoryMappings(IPublisherInfo publisherInfo)
protected java.util.Map<SiteBundle,java.util.Set<SiteCategory>> getBundleToCategoryMappings(IPublisherInfo publisherInfo)
protected void generateCategoryIUs(java.util.Map<SiteCategory,java.util.Set<IInstallableUnit>> categoriesToIUs, IPublisherResult result)
categoriesToIUs - Map of SiteCategory ->Set (Feature IUs in that
category).result - The generator result being built@Deprecated public IInstallableUnit createCategoryIU(SiteCategory category, java.util.Set<IInstallableUnit> childrenIUs, IInstallableUnit nestedCategory)
IInstallableUnitcreateCategoryIU(SiteCategory, Set)
insteadcategory - The category descriptorchildrenIUs - The IUs of the children that belong to the category
(can be bundle, feature or nested categories)nestedCategory - A nested category (optional)public IInstallableUnit createCategoryIU(SiteCategory category, java.util.Set<IInstallableUnit> childrenIUs)
category - The category descriptorchildrenIUs - The IUs of the children that belong to the category (can
be bundle, feature or nested categories)protected Transport getTransport(IPublisherInfo info)