@Unstable public abstract class AbstractRemoteExtension extends AbstractExtension implements RemoteExtension
RatingExtension implementations.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
recommended |
allowedNamespaces, authors, category, dependencies, description, features, featuresMap, file, id, issueManagement, licenses, managedDependencies, name, properties, propertiesLock, repositories, repository, scm, summary, type, websiteFIELD_RECOMMENDEDFIELD_ALLOWEDNAMESPACE, FIELD_ALLOWEDNAMESPACES, FIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_DEPENDENCIES, FIELD_DESCRIPTION, FIELD_EXTENSIONFEATURE, FIELD_EXTENSIONFEATURES, FIELD_FEATURE, FIELD_FEATURES, FIELD_ID, FIELD_ISSUEMANAGEMENT, FIELD_LICENSE, FIELD_LICENSES, FIELD_MANAGEDDEPENDENCIES, FIELD_NAME, FIELD_NAMESPACES, FIELD_PROPERTIES, FIELD_REPOSITORIES, FIELD_REPOSITORY, FIELD_SCM, FIELD_SUMMARY, FIELD_TYPE, FIELD_VERSION, FIELD_WEBSITE, IKEYPREFIX| Constructor and Description |
|---|
AbstractRemoteExtension(ExtensionRepository repository,
Extension extension)
Create new extension descriptor by copying provided one.
|
AbstractRemoteExtension(ExtensionRepository repository,
ExtensionId id,
String type) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(String fieldName)
Get an extension field by name.
|
boolean |
isRecommended()
Indicate if the extension is recommended by the repository where it come from.
|
void |
setRecommended(boolean recommended) |
addAllowedNamespace, addAuthor, addDependency, addExtensionFeature, addFeature, addLicense, addManagedDependency, addRepository, compareTo, equals, getAllowedNamespaces, getAuthors, getCategory, getDependencies, getDescription, getExtensionFeature, getExtensionFeatures, getFeatures, getFile, getId, getIssueManagement, getLicenses, getManagedDependencies, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSite, hashCode, putProperty, removeProperty, set, setAllowedNamespaces, setAuthors, setCategory, setDependencies, setDescription, setExtensionFeatures, setFeatures, setFile, setId, setIssueManagement, setLicenses, setManagedDependencies, setName, setProperties, setRepositories, setRepository, setScm, setSummary, setType, setWebsite, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAllowedNamespaces, getAuthors, getCategory, getDependencies, getDescription, getExtensionFeature, getExtensionFeatures, getFeatures, getFile, getId, getIssueManagement, getLicenses, getManagedDependencies, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSitecompareToprotected boolean recommended
isRecommended()public AbstractRemoteExtension(ExtensionRepository repository, ExtensionId id, String type)
repository - the repository where this extension comes fromid - the extension identifiertype - the extension typepublic AbstractRemoteExtension(ExtensionRepository repository, Extension extension)
repository - the repository where this extension comes fromextension - the extension to copypublic boolean isRecommended()
RemoteExtensionWhat "recommended" exactly means depend on the repository giving this information.
For example on http://extensions.xwiki.org the meaning is the extension is known to be of good quality and still officially supported by its author.
isRecommended in interface RemoteExtensionpublic void setRecommended(boolean recommended)
recommended - true if the extension is recommendedisRecommended()public <T> T get(String fieldName)
AbstractExtensionget in interface Extensionget in class AbstractExtensionT - type of the field valuefieldName - the field name;Copyright © 2004–2017 XWiki. All rights reserved.