public interface MutableExtension extends Extension
Extension
.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
Modifier and Type | Method and Description |
---|---|
void |
addAllowedNamespace(String namespace)
Add a new allowed namespace to the extension.
|
void |
addAuthor(ExtensionAuthor author)
Add a new author to the extension.
|
default void |
addComponent(ExtensionComponent component)
Add a new component to the extension.
|
void |
addDependency(ExtensionDependency dependency)
Add a new dependency to the extension.
|
void |
addExtensionFeature(ExtensionId feature)
Add a new feature to the extension.
|
void |
addFeature(String feature)
Deprecated.
since 8.0M1, use
addExtensionFeature(ExtensionId) instead |
void |
addLicense(ExtensionLicense license)
Add a new license to the extension.
|
void |
addManagedDependency(ExtensionDependency managedDependency)
Add a new managed dependency to the extension.
|
void |
addRepository(ExtensionRepositoryDescriptor repository)
Add a new repository to the extension.
|
void |
putProperty(String key,
Object value)
Set a property.
|
<T> T |
removeProperty(String key)
Remove the property associated to the passed key and return its value.
|
void |
set(Extension extension)
Update optional informations based on the provided extension.
|
void |
setAllowedNamespaces(Collection<String> namespaces) |
void |
setAuthors(Collection<? extends ExtensionAuthor> authors) |
void |
setCategory(String categrory) |
default void |
setComponents(Collection<? extends ExtensionComponent> component) |
void |
setDependencies(Collection<? extends ExtensionDependency> dependencies) |
void |
setDescription(String description) |
void |
setExtensionFeatures(Collection<ExtensionId> features) |
void |
setFeatures(Collection<String> features)
Deprecated.
since 8.0M1, use
setExtensionFeatures(Collection) instead |
void |
setIssueManagement(ExtensionIssueManagement issueManagement) |
void |
setLicenses(Collection<ExtensionLicense> licenses) |
void |
setManagedDependencies(Collection<? extends ExtensionDependency> managedDependencies) |
void |
setName(String name) |
void |
setProperties(Map<String,Object> properties)
Replace existing properties with provided properties.
|
void |
setRepositories(Collection<? extends ExtensionRepositoryDescriptor> repositories) |
void |
setScm(ExtensionScm scm) |
void |
setSummary(String summary) |
void |
setWebsite(String website) |
get, 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
void set(Extension extension)
extension
- the extension from which to get informations@Deprecated void setFeatures(Collection<String> features)
setExtensionFeatures(Collection)
insteadfeatures
- the extension ids also provided by this extension@Deprecated void addFeature(String feature)
addExtensionFeature(ExtensionId)
insteadfeature
- a feature namevoid setExtensionFeatures(Collection<ExtensionId> features)
features
- the ExtensionId
s also provided by this extensionvoid addExtensionFeature(ExtensionId feature)
feature
- a feature namevoid setName(String name)
name
- the display name of the extensionvoid setLicenses(Collection<ExtensionLicense> licenses)
licenses
- the licenses of the extensionvoid addLicense(ExtensionLicense license)
license
- a licensevoid setSummary(String summary)
summary
- a short description of the extensionvoid setDescription(String description)
description
- a description of the extensionvoid setAuthors(Collection<? extends ExtensionAuthor> authors)
authors
- the authors of the extensionvoid addAuthor(ExtensionAuthor author)
author
- an authordefault void setComponents(Collection<? extends ExtensionComponent> component)
component
- the components provided by the extensiondefault void addComponent(ExtensionComponent component)
component
- a component provided by the extensionvoid setWebsite(String website)
website
- an URL for the extension websitevoid addAllowedNamespace(String namespace)
namespace
- a namespacevoid setAllowedNamespaces(Collection<String> namespaces)
namespaces
- the namespaces where it's allowed to install this extensionvoid addDependency(ExtensionDependency dependency)
dependency
- a dependencyvoid setDependencies(Collection<? extends ExtensionDependency> dependencies)
dependencies
- the dependencies of the extensionExtension.getDependencies()
void addManagedDependency(ExtensionDependency managedDependency)
managedDependency
- a managed dependency;void setManagedDependencies(Collection<? extends ExtensionDependency> managedDependencies)
managedDependencies
- the managed dependencies of the extensionExtension.getManagedDependencies()
void setScm(ExtensionScm scm)
scm
- informations related to extensions's Source Control Management;void setIssueManagement(ExtensionIssueManagement issueManagement)
issueManagement
- informations related to extension's issues managementvoid setCategory(String categrory)
categrory
- the category of the extension;void setRepositories(Collection<? extends ExtensionRepositoryDescriptor> repositories)
repositories
- the custom repositories provided by the extension (usually to resolve dependencies)void addRepository(ExtensionRepositoryDescriptor repository)
repository
- a repository descriptor;void putProperty(String key, Object value)
key
- the property keyvalue
- the property valueExtension.getProperty(String)
void setProperties(Map<String,Object> properties)
properties
- the properties<T> T removeProperty(String key)
T
- type of the property valuekey
- the property keyCopyright © 2004–2021 XWiki. All rights reserved.