Package org.xwiki.extension.repository
Class AbstractExtensionRepository
java.lang.Object
org.xwiki.extension.repository.AbstractExtensionRepository
- All Implemented Interfaces:
ExtensionRepository
- Direct Known Subclasses:
AbstractAdvancedSearchableExtensionRepository
Base class for
ExtensionRepository
implementations.- Since:
- 4.0M1
- Version:
- $Id: b0334041708f2b5bc6d1d901f910ee516ce5e6d6 $
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor.protected
protected
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists
(ExtensionId extensionId) getId()
protected void
setDescriptor
(ExtensionRepositoryDescriptor descriptor) protected void
Deprecated.since 4.3M1 usesetDescriptor(ExtensionRepositoryDescriptor)
insteadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xwiki.extension.repository.ExtensionRepository
resolve, resolve, resolveVersions
-
Constructor Details
-
AbstractExtensionRepository
protected AbstractExtensionRepository()Default constructor. Used by extended classes which can't set the id in there constructor but make sure it's set later or thatgetId()
is overwritten. -
AbstractExtensionRepository
- Parameters:
descriptor
- the repository descriptor- Since:
- 4.3M1
-
AbstractExtensionRepository
Deprecated.since 4.3M1 useAbstractExtensionRepository(ExtensionRepositoryDescriptor)
instead- Parameters:
id
- the repository identifier
-
-
Method Details
-
setDescriptor
- Parameters:
descriptor
- the repository descriptor- Since:
- 4.3M1
-
setId
Deprecated.since 4.3M1 usesetDescriptor(ExtensionRepositoryDescriptor)
instead- Parameters:
id
- the repository identifier
-
getDescriptor
- Specified by:
getDescriptor
in interfaceExtensionRepository
- Returns:
- the repository descriptor
-
getId
- Specified by:
getId
in interfaceExtensionRepository
- Returns:
- the repository identifier.
-
exists
- Specified by:
exists
in interfaceExtensionRepository
- Parameters:
extensionId
- the extension identifier- Returns:
- true if the extension exists in the repository
-
AbstractExtensionRepository(ExtensionRepositoryDescriptor)
instead