Package org.xwiki.extension.repository
Class DefaultExtensionRepositoryDescriptor
- java.lang.Object
-
- org.xwiki.extension.repository.DefaultExtensionRepositoryDescriptor
-
- All Implemented Interfaces:
ExtensionRepositoryDescriptor
- Direct Known Subclasses:
ExtensionRepositoryId
public class DefaultExtensionRepositoryDescriptor extends Object implements ExtensionRepositoryDescriptor
Default implementation ofExtensionRepositoryDescriptor
.- Since:
- 4.3M1
- Version:
- $Id: d1dba436b3c605fee341d709deb7ef2715e07acf $
-
-
Constructor Summary
Constructors Constructor Description DefaultExtensionRepositoryDescriptor(String id)
Constructor to use only for "virtual" repositories having no storage like the ExtensionRepositoryManager.DefaultExtensionRepositoryDescriptor(String id, String type, URI uri)
DefaultExtensionRepositoryDescriptor(String id, String type, URI uri, Map<String,String> properties)
DefaultExtensionRepositoryDescriptor(ExtensionRepositoryDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
Map<String,String>
getProperties()
ExtendsExtensionRepositoryDescriptor
standard properties.String
getProperty(String key)
String
getType()
URI
getURI()
int
hashCode()
void
putProperty(String key, String value)
Set a property.void
setProperties(Map<String,String> properties)
Replace existing properties with provided properties.String
toString()
-
-
-
Constructor Detail
-
DefaultExtensionRepositoryDescriptor
public DefaultExtensionRepositoryDescriptor(ExtensionRepositoryDescriptor descriptor)
- Parameters:
descriptor
- the identifier to clone
-
DefaultExtensionRepositoryDescriptor
public DefaultExtensionRepositoryDescriptor(String id)
Constructor to use only for "virtual" repositories having no storage like the ExtensionRepositoryManager.- Parameters:
id
- the unique identifier- Since:
- 8.3RC1
-
DefaultExtensionRepositoryDescriptor
public DefaultExtensionRepositoryDescriptor(String id, String type, URI uri)
- Parameters:
id
- the unique identifiertype
- the repository type (maven, xwiki, etc.)uri
- the repository address
-
DefaultExtensionRepositoryDescriptor
public DefaultExtensionRepositoryDescriptor(String id, String type, URI uri, Map<String,String> properties)
- Parameters:
id
- the unique identifiertype
- the repository type (maven, xwiki, etc.)uri
- the repository addressproperties
- the properties- Since:
- 12.2
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceExtensionRepositoryDescriptor
- Returns:
- the unique identifier
-
getType
public String getType()
- Specified by:
getType
in interfaceExtensionRepositoryDescriptor
- Returns:
- the repository type (maven, xwiki, etc.)
-
getURI
public URI getURI()
- Specified by:
getURI
in interfaceExtensionRepositoryDescriptor
- Returns:
- the repository address
-
getProperties
public Map<String,String> getProperties()
Description copied from interface:ExtensionRepositoryDescriptor
ExtendsExtensionRepositoryDescriptor
standard properties.- Specified by:
getProperties
in interfaceExtensionRepositoryDescriptor
- Returns:
- the properties
-
getProperty
public String getProperty(String key)
- Specified by:
getProperty
in interfaceExtensionRepositoryDescriptor
- Parameters:
key
- the property key- Returns:
- the property value
-
putProperty
public void putProperty(String key, String value)
Set a property.- Parameters:
key
- the property keyvalue
- the property value- See Also:
getProperty(String)
-
setProperties
public void setProperties(Map<String,String> properties)
Replace existing properties with provided properties.- Parameters:
properties
- the properties
-
-