java.lang.Object
org.apache.struts.action.Action
com.RuntimeCollective.content.action.EditExternalLinkAction
com.RuntimeCollective.sitemap.action.EditExternalLinkInSitemapAction
- public final class EditExternalLinkInSitemapAction
- extends com.RuntimeCollective.content.action.EditExternalLinkAction
A subclass of EditExternalLinkAction, which cares about the fact that the
ExternalLink may be referenced by ContentSiteLocations: when deleting the link,
the relevent ContentSiteLocations should be told that they lost a Link.
The datamodel itself is always kept in proper order through "on delete cascade"s.
- Version:
- $Id: EditExternalLinkInSitemapAction.java,v 1.5 2003/09/30 15:12:58 joe Exp $
| Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditExternalLinkInSitemapAction
public EditExternalLinkInSitemapAction()
perform
public org.apache.struts.action.ActionForward perform(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Call the parent EditExternalLinkAction, but if deleting the Link, also tell its
ContentSiteLocations about it.
The following Forwards are returned:
failure - local forward to go to if there was a problem editing the class.
success - local forward to go to if the edition was successful.
cancel - local forward to go to if the edition was cancelled.
The following error messages are returned:
error.db.connection - if there was a problem connecting to the database.