org.ibisph.mvc.controller
Class PublishOrgUnits

java.lang.Object
  extended by org.ibisph.mvc.controller.PublishXML
      extended by org.ibisph.mvc.controller.PublishOrgUnits
All Implemented Interfaces:
org.springframework.web.servlet.mvc.Controller

public class PublishOrgUnits
extends PublishXML

Org Unit XML Publishing Controller. This controller receives a publish command and gets the XML content streamed to it from the admin system. Once the content is received, it is put into an XML document to make sure it is valid. If valid it then saves the XML.

Author:
Garth Braithwaite, STG

Field Summary
 
Fields inherited from class org.ibisph.mvc.controller.PublishXML
destinationXMLPath, documentDAO, fileBackupFactory, successReturnValue
 
Constructor Summary
PublishOrgUnits()
           
 
Method Summary
protected  java.lang.String postSaveXMLProcessing(java.lang.String baseFilename, org.dom4j.Document document)
          Specific code needed to clean up all artifacts that contain org unit info (all indicator profile pages, query modules).
 
Methods inherited from class org.ibisph.mvc.controller.PublishXML
getBaseFilename, getDestinationXMLPath, getDocumentDAO, getXMLDocument, handleRequest, sendError, sendSuccess, setDestinationXMLPath, setDocumentDAO, setFileBackupFactory, setSuccessReturnValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishOrgUnits

public PublishOrgUnits()
Method Detail

postSaveXMLProcessing

protected java.lang.String postSaveXMLProcessing(java.lang.String baseFilename,
                                                 org.dom4j.Document document)
                                          throws java.lang.Exception
Specific code needed to clean up all artifacts that contain org unit info (all indicator profile pages, query modules).

Overrides:
postSaveXMLProcessing in class PublishXML
Parameters:
baseFilename - Not used. This parameter is part of the required method signature.
document - Not used. This parameter is part of the required method signature.
Returns:
String that describes what this operation did. If a problem happens then throw the appropriate exception. This message is typically to be returned to the user so they know the status of the operation(s).
Throws:
java.lang.Exception - General exception for any sub classed implementors.