@Component("xwiki") public class XWikiVelocityContextInitializer implements VelocityContextInitializer { @Requirement private Execution execution; public void initialize(VelocityContext context) { // TODO: Move the Velocity Context initialization code currently located in // VelocityManager.getVelocityContext() here. This requires some refactoring as // it means the XWiki object must be initialized before this code is called. } }
/** * Each syntax should have its own resource reference parser. However while we wait for syntax specific parser to be * implemented this generic parser should provide a good approximation. * * @version $Id$ * @since 2.5RC1 */ @Component("default/image") public class GenericImageReferenceParser extends XWiki20ImageReferenceParser { }
/** * @param <P> the type of the properties bean * @version $Id: c9aed800212d173a249344a4b794119868e84528 $ * @since 6.2M1 */ @Role public interface BeanOutputFilterStream<P> extends OutputFilterStream { void setProperties(P properties) throws FilterException; }
@ComponentRole public interface PlexusComponentManager { PlexusContainer getPlexus(); }
@Component public class ConfigurationExtensionRepositorySource implements ExtensionRepositorySource { @Requirement private ExtensionManagerConfiguration configuration; public List<ExtensionRepositoryId> getExtensionRepositories() { return configuration.getRepositories(); } }
/** * @param <P> the type of the properties bean * @version $Id: c906af4d468a0942ee4964d78f67d17ba8093762 $ * @since 5.2M2 */ @Role public interface BeanInputWikiStream<P> extends InputWikiStream { void setProperties(P properties) throws WikiStreamException; }
@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); }
@Component("event/1.0") public class EventBlockRenderer extends AbstractBlockRenderer { @Requirement("event/1.0") private PrintRendererFactory eventRendererFactory; @Override protected PrintRendererFactory getPrintRendererFactory() { return this.eventRendererFactory; } }
/** * Filter provided content into another content. * * @version $Id: 5e72dc6c9c71672eb8c89b79afb42a961dd71fd2 $ * @since 1.8M1 */ @Role public interface Filter { int getPriority(); String filter(String content, FilterContext filterContext); }
@ComponentRole public interface ExtensionManagerConfiguration { File getLocalRepository(); List<ExtensionRepositoryId> getRepositories(); }
@Component public class DefaultAetherConfiguration extends AbstractLogEnabled implements AetherConfiguration { @Requirement("xwikiproperties") private ConfigurationSource configurationSource; @Requirement private ExtensionManagerConfiguration extensionManagerConfiguration; public File getLocalRepository() { String localRepositoryPath = this.configurationSource.getProperty("extension.aether.localRepository"); return localRepositoryPath != null ? new File(localRepositoryPath) : new File(this.extensionManagerConfiguration .getLocalRepository().getParent(), "aether-repository"); } }
/** * @version $Id: c28ac88dae57a8e4f0c7123b07e62191cb6cea9e $ * @since 6.2M1 */ @Role public interface OutputInstanceFilterStreamFactory extends OutputFilterStreamFactory { }
/** * All configuration options for Filesystem Attachment Store. * * @version $Id: 98d7f6bd68ce22c6bc8f8ed163eed24f22dded9e $ * @since 6.1M2 */ @Role public interface FilesystemAttachmentsConfiguration { /** @return whether to clean up empty directories on startup. */ boolean cleanOnStartup(); }
/** * @version $Id: c2fcf4457ba9fc9f1de28f3927e1a2da201923cd $ */ @Role public interface PdfTemplateRenderer { void generatePDF(OutputStream outputStream, Path template, Map<String, Object> context) throws PdfRenderingException; void generatePDF(OutputStream outputStream, Path template, Path renderingRoot, Map<String, Object> context) throws PdfRenderingException; }
/** * @version $Id: a2cd290050d254a063e02072f656043e3d7a2a63 $ */ @Role public interface CartAccessor { public CartContents getCart(); void setCart(CartContents cartContents); }
@Role public interface Gatekeeper { boolean userHasRole(User user, org.mayocat.accounts.model.Role role); }
@org.xwiki.component.annotation.Role public interface UserStore extends Store<User, UUID>, EntityStore { User create(@Valid User user, Role initialRole) throws EntityAlreadyExistsException, InvalidEntityException; User findUserByEmailOrUserName(String userNameOrEmail); List<Role> findRolesForUser(User user); User findByValidationKey(String validationKey); void updatePassword(User user, String hash); void createPasswordResetRequest(User user, String key); void deletePasswordResetRequest(String key); User findUserByPasswordResetRequest(String resetKey); }
/** * @version $Id: fd8500b9c63652fd87c2f907f6167d210eddb09a $ */ @Role public interface ArticleStore extends Store<Article, UUID>, EntityStore { Article findBySlug(String slug); List<Article> findAllPublished(Integer offset, Integer number); Integer countAllPublished(); }
/** * @version $Id: 30329fdad2258a40bc4e24f2d8b56aa455c0c319 $ */ @Role public interface EntityListAddonWebObjectBuilder { Object build(EntityData<Entity> entity); }
/** * @version $Id: 1efa46e81dbd8d629750f21af54025c380409440 $ */ @Role public interface TemplateEngine { void register(Template template) throws TemplateEngineException; String render(String templateName, String json) throws TemplateEngineException; }