org.ibisph.mvc.controller.indicator
Class PublishIndicatorView

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

public class PublishIndicatorView
extends PublishXML

Indicator Profile View XML Publish Controller. This controller handles the publish command using the standard XML publishing code. The only value this controller adds is that it deletes associated indicator profile view artifacts via the postSaveXMLProcessing method. This controller is not meant to be called individually - it is to be called as part of the normal indicator profile publish so that the categorized index and published indicators are handled.

Author:
Garth Braithwaite, STG

Field Summary
 
Fields inherited from class org.ibisph.mvc.controller.PublishXML
destinationXMLPath, documentDAO, fileBackupFactory, successReturnValue
 
Constructor Summary
PublishIndicatorView()
           
 
Method Summary
protected  java.lang.String postSaveXMLProcessing(java.lang.String baseFilename, org.dom4j.Document document)
          Deletes associated indicator view artifacts like the HTML files, SVG and JPEG charts.
 
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

PublishIndicatorView

public PublishIndicatorView()
Method Detail

postSaveXMLProcessing

protected java.lang.String postSaveXMLProcessing(java.lang.String baseFilename,
                                                 org.dom4j.Document document)
                                          throws java.lang.Exception
Deletes associated indicator view artifacts like the HTML files, SVG and JPEG charts.

Overrides:
postSaveXMLProcessing in class PublishXML
Parameters:
baseFilename - Filename of the file just published without any path info.
document - Indicator view XML document just published.
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.