Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.service.caseimporter
Class AbstractXMLCaseReader

java.lang.Object
  extended by org.nuxeo.cm.service.caseimporter.AbstractXMLCaseReader
Direct Known Subclasses:
DefaultXMLCaseReader

public abstract class AbstractXMLCaseReader
extends Object

Parses xml file and returns corresponding dom4j elements for cases and caseItems


Constructor Summary
AbstractXMLCaseReader()
           
 
Method Summary
 org.dom4j.Document extractEntireCase(org.dom4j.Element caseElement)
           
abstract  String getCaseItemPathFile(org.dom4j.Element caseItemElement)
          Gets the path of the file to be imported as a case Item
abstract  DistributionInfo getDistributionInfo(org.dom4j.Element caseElement)
          Gets the recipients from the case for the distribution
abstract  List<org.dom4j.Element> loadCaseItems(org.dom4j.Element caseElement)
          Loads the list of case items for a given caseElement
abstract  List<org.dom4j.Document> loadCases(File file)
          Loads the list of cases contained into the imported file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXMLCaseReader

public AbstractXMLCaseReader()
Method Detail

loadCases

public abstract List<org.dom4j.Document> loadCases(File file)
                                            throws org.nuxeo.ecm.core.api.ClientException
Loads the list of cases contained into the imported file

Throws:
org.nuxeo.ecm.core.api.ClientException

loadCaseItems

public abstract List<org.dom4j.Element> loadCaseItems(org.dom4j.Element caseElement)
Loads the list of case items for a given caseElement

Parameters:
caseElement -
Returns:

getCaseItemPathFile

public abstract String getCaseItemPathFile(org.dom4j.Element caseItemElement)
Gets the path of the file to be imported as a case Item

Parameters:
caseItemElement -
Returns:

getDistributionInfo

public abstract DistributionInfo getDistributionInfo(org.dom4j.Element caseElement)
Gets the recipients from the case for the distribution

Parameters:
caseElement -
Returns:

extractEntireCase

public org.dom4j.Document extractEntireCase(org.dom4j.Element caseElement)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.