Class ExpandScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Singleton
    @Named("promacroexpand")
    @Unstable
    public class ExpandScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Expand script service.
    Since:
    1.21.0
    Version:
    $Id$
    • Constructor Detail

      • ExpandScriptService

        public ExpandScriptService()
    • Method Detail

      • getAutoTitle

        public String getAutoTitle​(String content,
                                   String syntaxId)
        Parameters:
        content - the content of the macro
        syntaxId - the syntax identifier of the document containing the expand macro.
        Returns:
        the title of the expand macro from its content, or null if no title can be deduced from the content.
        Since:
        1.21.0