mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- got extension functions working from freemarker with namespaces. there's still the caveat that you need to use the ftl tag to include the alfresco namespace if you're using extension functions and want the file name from getXMLDocuments, but other than that it's pretty much exactly what i wanted and mimics the xsl environment perfectly.
- beginning slowly to move to new and hopefully finalized terminology. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4171 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (C) 2005 Alfresco, Inc.
|
||||
*
|
||||
* Licensed under the Mozilla Public License version 1.1
|
||||
* with a permitted attribution clause. You may obtain a
|
||||
* copy of the License at
|
||||
*
|
||||
* http://www.alfresco.org/legal/license.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific
|
||||
* language governing permissions and limitations under the
|
||||
* License.
|
||||
*/
|
||||
package org.alfresco.web.templating;
|
||||
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import java.io.Serializable;
|
||||
import java.io.Writer;
|
||||
import java.util.Map;
|
||||
import org.w3c.dom.Document;
|
||||
|
||||
/**
|
||||
* Serializes the xml instance data collected by a form to a writer.
|
||||
*
|
||||
* @author Ariel Backenroth
|
||||
*/
|
||||
public interface FormDataRenderer
|
||||
extends Serializable
|
||||
{
|
||||
/** the noderef associated with this output method */
|
||||
public NodeRef getNodeRef();
|
||||
|
||||
/**
|
||||
* Serializes the xml data in to a presentation format.
|
||||
*
|
||||
* @param xmlContent the xml content to serialize
|
||||
* @param tt the template type that collected the xml content.
|
||||
* @param sandBoxUrl the url of the current sandbox
|
||||
* @param out the writer to serialize to.
|
||||
*/
|
||||
public void generate(final Document xmlContent,
|
||||
final TemplateType tt,
|
||||
final Map<String, String> parameters,
|
||||
final Writer out)
|
||||
throws Exception;
|
||||
|
||||
/**
|
||||
* Returns the file extension to use when generating content for this
|
||||
* output method.
|
||||
*
|
||||
* @return the file extension to use when generating content for this
|
||||
* output method, such as html, rss, pdf.
|
||||
*/
|
||||
public String getFileExtension();
|
||||
}
|
Reference in New Issue
Block a user