Class ViewParser

  • All Implemented Interfaces:
    Parser

    public class ViewParser
    extends java.lang.Object
    implements Parser
    Importer for parsing and importing nodes given the Repository View schema.
    Author:
    David Caruana
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewParser()
      Construct
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parse​(java.io.Reader viewReader, Importer importer)
      Parse nodes from specified input stream and import via the provided importer
      void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)  
      void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)  
      void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ViewParser

        public ViewParser()
        Construct
    • Method Detail

      • setNamespaceService

        public void setNamespaceService​(org.alfresco.service.namespace.NamespaceService namespaceService)
        Parameters:
        namespaceService - the namespace service
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Parameters:
        nodeService - the node service
      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
        Parameters:
        dictionaryService - the dictionary service
      • parse

        public void parse​(java.io.Reader viewReader,
                          Importer importer)
        Description copied from interface: Parser
        Parse nodes from specified input stream and import via the provided importer
        Specified by:
        parse in interface Parser
        Parameters:
        viewReader - Reader
        importer - Importer