org.alfresco.repo.rendition.executer
Class XSLTFunctions

java.lang.Object
  extended by org.alfresco.repo.rendition.executer.XSLTFunctions

public class XSLTFunctions
extends java.lang.Object

Since:
3.3

Constructor Summary
XSLTFunctions()
           
 
Method Summary
 java.lang.String encodeQuotes(java.lang.String text)
          Encodes invalid HTML characters.
 org.w3c.dom.Document parseXMLDocument(NodeRef root, java.lang.String repoPath)
           
 java.util.Map parseXMLDocuments(java.lang.String typeName, NodeRef rootNode, java.lang.String repoPath)
           
 void setContentService(ContentService contentService)
           
 void setDictionaryService(DictionaryService dictionaryService)
           
 void setFileService(FileFolderService fileService)
           
 void setNamespaceService(NamespaceService namespaceService)
           
 void setNodeService(NodeService nodeService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTFunctions

public XSLTFunctions()
Method Detail

parseXMLDocument

public org.w3c.dom.Document parseXMLDocument(NodeRef root,
                                             java.lang.String repoPath)
                                      throws java.io.IOException,
                                             org.xml.sax.SAXException,
                                             FileNotFoundException
Throws:
java.io.IOException
org.xml.sax.SAXException
FileNotFoundException

parseXMLDocuments

public java.util.Map parseXMLDocuments(java.lang.String typeName,
                                       NodeRef rootNode,
                                       java.lang.String repoPath)
                                throws java.io.IOException,
                                       org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

encodeQuotes

public java.lang.String encodeQuotes(java.lang.String text)
                              throws java.io.IOException,
                                     org.xml.sax.SAXException
Encodes invalid HTML characters. (Fix for ETWOTWO-504 issue) This code was adopted from WebDAVHelper.encodeHTML() method with some restrictions.

Parameters:
text - to encode
Returns:
encoded text
Throws:
java.io.IOException
org.xml.sax.SAXException
See Also:
for pattern.

setFileService

public void setFileService(FileFolderService fileService)
Parameters:
fileService - the fileService to set

setContentService

public void setContentService(ContentService contentService)
Parameters:
contentService - the contentService to set

setNodeService

public void setNodeService(NodeService nodeService)
Parameters:
nodeService - the nodeService to set

setNamespaceService

public void setNamespaceService(NamespaceService namespaceService)
Parameters:
namespaceService - the namespaceService to set

setDictionaryService

public void setDictionaryService(DictionaryService dictionaryService)
Parameters:
dictionaryService - the dictionaryService to set


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.