|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.mvc.controller.indicator.UnPublishIndicator
public class UnPublishIndicator
Unpublishes Indicator Profile and associated views.
| Field Summary | |
|---|---|
protected Document |
documentDAO
|
protected FileBackupFactory |
fileBackupFactory
|
protected java.io.File |
publishedIndicatorsFile
|
protected java.lang.String |
successReturnValue
|
protected java.lang.String |
xmlPath
|
| Constructor Summary | |
|---|---|
UnPublishIndicator()
|
|
| Method Summary | |
|---|---|
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Controller method called by the Spring MVC framework to handle the unpublishing. |
protected java.lang.String |
removeIndicatorFromPublishedIndicators(java.lang.String indicatorName)
Helper method that removes the specified published IP from the published indicator XML file. |
protected void |
sendError(javax.servlet.http.HttpServletResponse response,
java.lang.Exception e,
java.lang.String actionsReturnMessage)
Helper to localize error sent to requester. |
protected void |
sendSuccess(javax.servlet.http.HttpServletResponse response,
java.lang.String actionsReturnMessage)
Helper to localize success message sent to requester. |
void |
setDocumentDAO(Document documentDAO)
Sets the DAO object that will be used to save the XML content with. |
void |
setFileBackupFactory(FileBackupFactory fileBackupFactory)
Optional file backup factory that provides a file backup used to backup the current XML file. |
void |
setPublishedIndicatorProfilesSystemID(SystemID publishedIndicatorProfilesSystemID)
Sets System ID to the published indicator profiles XML file. |
void |
setSourceXMLPath(java.lang.String xmlPath)
Sets the base path of where to remove the XML indicator profile files from. |
void |
setSuccessReturnValue(java.lang.String successReturnValue)
Sets the string value that is returned to the requester. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String xmlPath
protected FileBackupFactory fileBackupFactory
protected Document documentDAO
protected java.io.File publishedIndicatorsFile
protected java.lang.String successReturnValue
| Constructor Detail |
|---|
public UnPublishIndicator()
| Method Detail |
|---|
public void setSourceXMLPath(java.lang.String xmlPath)
xmlPath - Complete file path with or without trailing slash.public void setDocumentDAO(Document documentDAO)
documentDAO - Standard Document DAO used to save the XML document
to disk.public void setSuccessReturnValue(java.lang.String successReturnValue)
successReturnValue - Value that is returned to the requester if the
XML is valid and if the XML document was successfully saved to
the specified filename/path.public void setFileBackupFactory(FileBackupFactory fileBackupFactory)
fileBackupFactory - Provides a pluggable file backup used to backup
the current XML file before the new content is published.
public void setPublishedIndicatorProfilesSystemID(SystemID publishedIndicatorProfilesSystemID)
throws java.net.URISyntaxException
publishedIndicatorProfilesSystemID - Complete system ID string for
the published indicator profiles XML file.
java.net.URISyntaxException
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
handleRequest in interface org.springframework.web.servlet.mvc.Controllerrequest - HTTP Servlet Request passed from the servlet.response - HTTP Servlet Response passed from the servlet.
java.lang.Exception
protected java.lang.String removeIndicatorFromPublishedIndicators(java.lang.String indicatorName)
throws java.lang.Exception
indicatorName - Name of the indicator profile to be removed.
java.lang.Exception
protected void sendError(javax.servlet.http.HttpServletResponse response,
java.lang.Exception e,
java.lang.String actionsReturnMessage)
throws java.lang.Exception
response - Response object used for the request.e - Optional exception associated with the error.actionsReturnMessage - Optional error message to send back to
requester.
java.lang.Exception
protected void sendSuccess(javax.servlet.http.HttpServletResponse response,
java.lang.String actionsReturnMessage)
throws java.lang.Exception
response - Response object used for the request.actionsReturnMessage - Optional message to send back to requester.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||