Class XSLTFunctions
- java.lang.Object
-
- org.alfresco.repo.rendition.executer.XSLTFunctions
-
public class XSLTFunctions extends Object
- Since:
- 3.3
- Author:
- Brian Remmington
-
-
Constructor Summary
Constructors Constructor Description XSLTFunctions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringencodeQuotes(String text)Encodes invalid HTML characters.DocumentparseXMLDocument(org.alfresco.service.cmr.repository.NodeRef root, String repoPath)Map<String,Document>parseXMLDocuments(String typeName, org.alfresco.service.cmr.repository.NodeRef rootNode, String repoPath)voidsetContentService(ContentService contentService)voidsetDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)voidsetFileService(FileFolderService fileService)voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
-
-
Method Detail
-
parseXMLDocument
public Document parseXMLDocument(org.alfresco.service.cmr.repository.NodeRef root, String repoPath) throws IOException, SAXException, FileNotFoundException
-
parseXMLDocuments
public Map<String,Document> parseXMLDocuments(String typeName, org.alfresco.service.cmr.repository.NodeRef rootNode, String repoPath) throws IOException, SAXException
- Throws:
IOExceptionSAXException
-
encodeQuotes
public String encodeQuotes(String text) throws IOException, 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:
IOExceptionSAXException
-
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(org.alfresco.service.cmr.repository.NodeService nodeService)
- Parameters:
nodeService- the nodeService to set
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
- Parameters:
namespaceService- the namespaceService to set
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
- Parameters:
dictionaryService- the dictionaryService to set
-
-