Package org.jboss.seam.wiki.core.model

Examples of org.jboss.seam.wiki.core.model.WikiDocumentDefaults


        outjectDocumentAndDirectory(doc, getParentNode());

        if (templateType != null && !templateType.equals(WikiDocumentDefaults.class.getName())) {
            getLog().debug("using custom template class for WikiDocument defaults: " + templateType);
            WikiDocumentDefaults defaults;
            try {
                Class<?> tplClass = Class.forName(templateType);

                if (!TemplateRegistry.instance().getTemplateTypes().contains(tplClass)) {
                    throw new InvalidWikiRequestException("Invalid templateType: " + templateType);
View Full Code Here


   
    @Test
    public void macrosFromDefaultStrings() throws Exception {
        WikiDocument doc = new WikiDocument();

        WikiDocumentDefaults defaults = new WikiDocumentDefaults() {
            @Override
            public String[] getContentMacrosAsString() {
                return new String[] {"contentMacro1", "contentMacro2"};
            }
            @Override
View Full Code Here

    @Test
    public void macrosFromDefaultTypesafe() throws Exception {
        WikiDocument doc = new WikiDocument();

        WikiDocumentDefaults defaults = new WikiDocumentDefaults() {
            @Override
            public List<WikiTextMacro> getContentMacros() {
                return new ArrayList<WikiTextMacro>() {{
                   add(new WikiTextMacro("contentMacro1", 0));
                   add(new WikiTextMacro("contentMacro2", 1));
View Full Code Here

TOP

Related Classes of org.jboss.seam.wiki.core.model.WikiDocumentDefaults

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.