Class PortletUpdateAction

All Implemented Interfaces:
com.appiancorp.web.framework.kernel.main.IAction

@Deprecated public abstract class PortletUpdateAction extends BaseUpdateAction
Deprecated.
The Portal functionality will be removed in a future release. Use the Tempo Interface for similar functionality.
Framework for updating portlets. The portletmain method must be implemented in the children. The method will contain the logic for updating the specific Portlet, and for determining the ActionForward after the Portlet is updated. The canAcces method currently checks if the user has editor privileges and can perform an update. (@see com.appiancorp.suiteapi.portal.Portlet#PORTLET_ACCESS_LEVEL_EDIT ) It can be overwritten to give anyone privileges by always returning true as it is done in BaseUpdateAction
See Also:
  • Field Details

  • Constructor Details

    • PortletUpdateAction

      public PortletUpdateAction()
      Deprecated.
  • Method Details

    • main

      public final com.appiancorp.web.framework.kernel.main.IActionForward main(com.appiancorp.web.framework.kernel.main.IActionMapping m_, com.appiancorp.web.framework.kernel.main.IActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_)
      Deprecated.
      Executes the portletmain method of its child class, returns the child ActionForward, and resets the PortletTarget to be null;
      Specified by:
      main in class BaseViewAction
      Parameters:
      m_ - the mapping
      f_ - the form
      q_ - the request
      r_ - the response
      Returns:
      an ActionForward
    • portletMain

      public abstract com.appiancorp.web.framework.kernel.main.IActionForward portletMain(com.appiancorp.web.framework.kernel.main.IActionMapping m_, com.appiancorp.web.framework.kernel.main.IActionForm f_, javax.servlet.http.HttpServletRequest q_, javax.servlet.http.HttpServletResponse r_)
      Deprecated.
      Abstract method that must be overriden to specify the ActionForward after the Portlet updates
      Parameters:
      m_ - the mapping
      f_ - the form
      q_ - the request
      r_ - the response
      Returns:
      an ActionForward
    • canAccess

      protected boolean canAccess(com.appiancorp.web.framework.kernel.main.IActionMapping m_, javax.servlet.http.HttpServletRequest q_)
      Deprecated.
      Checks if the user has update privileges on the Portlet. Guards against people updating portlets they do not have access to. This can be extended and overriden to return always true if anyone can update.
      Overrides:
      canAccess in class BaseAction
      Parameters:
      m_ - the mapping of a particular request to an instance of a particular Action class
      q_ - the request
      Returns:
      true if the user has edit privileges otherwise false
    • clearPortletTarget

      public static void clearPortletTarget(javax.servlet.http.HttpServletRequest q_)
      Deprecated.
      Clears the portlet target action path, so that the next time the portlet is loaded it will use the default $t from its tiles config.
      Parameters:
      q_ - the request
    • clearPortletTarget

      public static void clearPortletTarget(com.appiancorp.ap2.PortalRequest pq_)
      Deprecated.