public class SiteModel
extends java.lang.Object
| Constructor and Description |
|---|
SiteModel()
Creates an uninitialized site model object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArchive(URLEntry archiveReference)
Adds an archive reference model to site.
|
void |
addBundle(SiteBundle bundleReference)
Adds a bundle reference model to site.
|
void |
addCategory(SiteCategory category)
Adds a category to the site.
|
void |
addFeature(SiteFeature featureReference)
Adds a feature reference model to site.
|
void |
addIU(SiteIU iu)
Adds a iu model to site.
|
void |
addRepositoryReference(RepositoryReference ref)
Adds a repository reference to the site
|
void |
addStatsBundle(SiteBundle bundleReference)
Adds a bundle reference model to site stats artifacts
|
void |
addStatsFeature(SiteFeature featureReference)
Adds a feature reference model to site stats artifacts.
|
URLEntry[] |
getArchives()
Returns an array of plug-in and non-plug-in archive reference models on this
site
|
URLEntry[] |
getAssociatedSites() |
SiteBundle[] |
getBundles()
Returns an array of bundle reference models on this site.
|
SiteCategory[] |
getCategories()
Returns an array of category models for this site.
|
SiteCategory |
getCategory(java.lang.String name)
Returns the category with the given name.
|
URLEntry |
getDescription()
Returns the site description.
|
java.lang.String |
getDigestURIString() |
SiteFeature[] |
getFeatures()
Returns an array of feature reference models on this site.
|
SiteIU[] |
getIUs()
Returns an array of IU models on this site.
|
java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> |
getLocalizations()
Gets the localizations for the site as a map from locale to the set of
translated properties for that locale.
|
java.net.URI |
getLocationURI()
Returns the resolved URI for the site.
|
java.lang.String |
getLocationURIString()
Returns the unresolved URI string for the site.
|
java.util.List<java.lang.String> |
getMessageKeys()
Return the keys for translatable strings
|
java.lang.String |
getMirrorsURI()
Returns the URI from which the list of mirrors of this site can be retrieved.
|
RepositoryReference[] |
getRepositoryReferences()
Returns an array of repository references for this site.
|
SiteBundle[] |
getStatsBundles()
Returns an array of bundle reference models for stats on this site.
|
SiteFeature[] |
getStatsFeatures()
Returns an array of feature reference models for stats on this site.
|
java.lang.String |
getStatsURI()
Returns the URI of the stats repository that tracks downloads.
|
java.lang.String |
getType()
Returns the site type.
|
boolean |
isPack200Supported()
Deprecated.
See bug
for details.
|
void |
setAssociateSites(URLEntry[] associateSites)
Sets the associated sites for this update site.
|
void |
setDescription(URLEntry description)
Sets the site description.
|
void |
setDigestURIString(java.lang.String digestURIString) |
void |
setLocalizations(java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> localizations)
Sets the localizations for the site as a map from locale to the set of
translated properties for that locale.
|
void |
setLocationURIString(java.lang.String locationURIString)
Sets the unresolved URI for the site.
|
void |
setMessageKeys(java.util.List<java.lang.String> keys)
Sets keys for translatable strings
|
void |
setMirrorsURIString(java.lang.String mirrorsURI)
Sets the mirrors url.
|
void |
setStatsURIString(java.lang.String statsURI)
Sets the URI of the stats repository used to track downloads.
|
void |
setSupportsPack200(boolean value)
Deprecated.
|
void |
setType(java.lang.String type)
Sets the site type.
|
public SiteModel()
public void addArchive(URLEntry archiveReference)
archiveReference - archive reference modelpublic void addCategory(SiteCategory category)
category - category modelpublic void addFeature(SiteFeature featureReference)
featureReference - feature reference modelpublic void addBundle(SiteBundle bundleReference)
bundleReference - bundle reference modelpublic void addStatsFeature(SiteFeature featureReference)
featureReference - feature reference modelpublic void addStatsBundle(SiteBundle bundleReference)
bundleReference - bundle reference modelpublic void addIU(SiteIU iu)
iu - iu modelpublic void addRepositoryReference(RepositoryReference ref)
ref - repository referencepublic URLEntry[] getArchives()
public URLEntry[] getAssociatedSites()
public SiteCategory[] getCategories()
public SiteCategory getCategory(java.lang.String name)
nullpublic URLEntry getDescription()
null.public SiteFeature[] getFeatures()
public SiteBundle[] getBundles()
public SiteFeature[] getStatsFeatures()
public SiteBundle[] getStatsBundles()
public SiteIU[] getIUs()
public RepositoryReference[] getRepositoryReferences()
public java.lang.String getStatsURI()
public java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> getLocalizations()
public java.net.URI getLocationURI()
nullpublic java.lang.String getLocationURIString()
nullpublic java.util.List<java.lang.String> getMessageKeys()
public java.lang.String getMirrorsURI()
public java.lang.String getType()
null.@Deprecated public boolean isPack200Supported()
public void setDescription(URLEntry description)
description - site descriptionpublic void setLocalizations(java.util.Map<java.util.Locale,java.util.Map<java.lang.String,java.lang.String>> localizations)
localizations - as a map from locale to property setpublic void setLocationURIString(java.lang.String locationURIString)
locationURIString - url for the site (as a string)public void setMessageKeys(java.util.List<java.lang.String> keys)
keys - for translatable stringspublic void setMirrorsURIString(java.lang.String mirrorsURI)
mirrorsURI - additional update site mirrors@Deprecated public void setSupportsPack200(boolean value)
value - public void setType(java.lang.String type)
type - site typepublic void setAssociateSites(URLEntry[] associateSites)
associateSites - the associated sitespublic void setDigestURIString(java.lang.String digestURIString)
public java.lang.String getDigestURIString()
public void setStatsURIString(java.lang.String statsURI)
statsURI - a String describing the stats URI