public abstract class AbstractRemoteExtension extends AbstractExtension implements RemoteExtension
RatingExtension
implementations.Modifier and Type | Field and Description |
---|---|
protected boolean |
recommended |
allowedNamespaces, authors, category, components, dependencies, description, features, featuresMap, file, id, issueManagement, licenses, managedDependencies, name, properties, propertiesLock, repositories, repository, scm, summary, type, website
FIELD_RECOMMENDED
FIELD_ALLOWEDNAMESPACE, FIELD_ALLOWEDNAMESPACES, FIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_COMPONENT, FIELD_COMPONENTS, 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, addComponent, addDependency, addExtensionFeature, addFeature, addLicense, addManagedDependency, addRepository, compareTo, equals, getAllowedNamespaces, getAuthors, getCategory, getComponents, 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, setComponents, setDependencies, setDescription, setExtensionFeatures, setFeatures, setFile, setId, setIssueManagement, setLicenses, setManagedDependencies, setName, setProperties, setRepositories, setRepository, setScm, setSummary, setType, setWebsite, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAllowedNamespaces, getAuthors, getCategory, getComponents, getDependencies, getDescription, getExtensionFeature, getExtensionFeatures, getFeatures, getFile, getId, getIssueManagement, getLicenses, getManagedDependencies, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSite
compareTo
protected 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()
RemoteExtension
What "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 RemoteExtension
public void setRecommended(boolean recommended)
recommended
- true if the extension is recommendedisRecommended()
public <T> T get(String fieldName)
AbstractExtension
get
in interface Extension
get
in class AbstractExtension
T
- type of the field valuefieldName
- the field name;Copyright © 2004–2021 XWiki. All rights reserved.