@ComponentRole public interface VersionManager { int compareVersions(String version1, String version2); }
@ComponentRole public interface ExtensionHandlerManager { void install(LocalExtension localExtension, String namespace) throws InstallException; void uninstall(LocalExtension localExtension, String namespace) throws UninstallException; void upgrade(LocalExtension previousLocalExtension, LocalExtension newLocalExtension, String namespace) throws InstallException; }
@ComponentRole public interface CoreExtensionRepository extends ExtensionRepository { Collection<CoreExtension> getCoreExtensions(); CoreExtension getCoreExtension(String id); boolean exists(String id); }
@ComponentRole public interface ExtensionRepositorySource { List<ExtensionRepositoryId> getExtensionRepositories(); }
@ComponentRole public interface ExtensionHandler { void install(LocalExtension localExtension, String namespace) throws InstallException; void uninstall(LocalExtension localExtension, String namespace) throws UninstallException; void upgrade(LocalExtension previousLocalExtension, LocalExtension newLocalExtension, String namespace) throws InstallException; }
@ComponentRole public interface ExtensionRepositoryManager { void addRepository(ExtensionRepositoryId repositoryId) throws ExtensionRepositoryException; void addRepository(ExtensionRepository repository); void removeRepository(ExtensionRepositoryId repositoryId); Extension resolve(ExtensionId extensionId) throws ResolveException; }
@ComponentRole public interface ExtensionRepositoryFactory { ExtensionRepository createRepository(ExtensionRepositoryId repositoryId) throws ExtensionRepositoryException; }
@ComponentRole public interface AetherConfiguration { File getLocalRepository(); }
/** * XWiki's wrapping of the {@link org.xml.sax.EntityResolver} interface so that we can create components that * implement it. * * @version $Id$ * @since 1.9M2 */ @ComponentRole public interface EntityResolver extends org.xml.sax.EntityResolver { }
/** * <p> * This interface is used to mark JAX-RS resources and providers that should be made available to the component manager * for lookup. * </p> * * @version $Id$ */ @ComponentRole public interface XWikiRestComponent { }
/** * Provide a @ComponentRole for JGRoups {@link Receiver} interface. Can be implemented using channel name as hint to * provide a specific {@link Receiver} to a channel. * * @version $Id$ * @since 2.0M3 */ @ComponentRole public interface JGroupsReceiver extends Receiver { }
@ComponentRole public interface ExtensionManager { Extension resolveExtension(ExtensionId extensionId, String namespace) throws ResolveException; }
@ComponentRole public interface TaskManager { Task getCurrentTask(); Task install(InstallRequest request) throws TaskException; Task uninstall(UninstallRequest request) throws TaskException; }
@ComponentRole public interface PlexusComponentManager { PlexusContainer getPlexus(); }
@ComponentRole public interface PortletContainerInitializer { void initializeRequest(javax.portlet.PortletRequest request, Object xwikiContext) throws PortletContainerException; void initializeResponse(javax.portlet.PortletResponse response); void initializeSession(javax.portlet.PortletRequest request); void initializeApplicationContext(PortletContext servletContext); }
@ComponentRole public interface ExtensionManagerConfiguration { File getLocalRepository(); List<ExtensionRepositoryId> getRepositories(); }
/** * Any module wishing to expose Script APIs (for example APIs accessible through Groovy, Python, Velocity, etc) * must implement this component interface, in addition to implementing its own business interface. Any component * implementing this interface will be automatically exposed to scripts. * * @version $Id$ * @since 2.3M1 */ @ComponentRole public interface ScriptService { // Voluntarily empty }
/** * Serialize a given Resource Reference to a String based on its Resource Type. * * @version $Id$ * @since 2.5RC1 */ @ComponentRole public interface ResourceReferenceTypeSerializer { /** * @param reference the link reference to serialize * @return the string representation of the passed {@link org.xwiki.rendering.listener.reference.ResourceReference} object */ String serialize(ResourceReference reference); }
/** * Provides configuration options for the Model module. * * @version $Id$ * @since 2.2M1 */ @ComponentRole public interface ModelConfiguration { /** * @param type the type for which to return the default value * @return the default value to use when a reference doesn't have the passed type specified */ String getDefaultReferenceValue(EntityType type); }
/** * @version $Id$ * @since 2.0RC1 */ @ComponentRole public interface SyntaxFactory { /** * @param syntaxAsIdString the syntax as a string (eg "xwiki/2.0", "plain/1.0") * @return the parsed syntax as a Syntax object * @throws ParseException in case the string doesn't represent a valid syntax */ Syntax createSyntaxFromIdString(String syntaxAsIdString) throws ParseException; }