Class RemoveWidgetAction

  • All Implemented Interfaces:
    WidgetManipulationAction

    public class RemoveWidgetAction
    extends java.lang.Object
    An AbstractWidgetManipulationAction implementation for removing widget instances. Requires the following parameters:
    • ii: The widget instance's interface instance identifier.
    • hi: The holder service interface instance identifier.
    Since:
    6.0.0
    Version:
    $Revision: 21167 $ $Date: 2018-04-12 14:37:47 -0300 (Thu, 12 Apr 2018) $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void checkManageHolderPermission​(java.lang.String serviceInstanceId)
      Checks if the current session has permission to manage the widgets holder.
      protected void checkPersonalizePagePermission​(java.lang.String serviceInstanceId)
      Checks if the current session has permission to personalize a widget holder for itself.
      java.lang.String doAction​(HttpServletRequest request, IPortalMode portalMode, ITransaction transaction)
      Performs necessary widget manipulation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoveWidgetAction

        public RemoveWidgetAction()
    • Method Detail

      • checkManageHolderPermission

        protected void checkManageHolderPermission​(java.lang.String serviceInstanceId)
                                            throws PortalException
        Checks if the current session has permission to manage the widgets holder.
        Parameters:
        serviceInstanceId - the holder's service instance identifier.
        Throws:
        AccessDeniedException - if the session does not has the permission.
        PortalException
        Since:
        6.0.0
      • checkPersonalizePagePermission

        protected void checkPersonalizePagePermission​(java.lang.String serviceInstanceId)
                                               throws PortalException
        Checks if the current session has permission to personalize a widget holder for itself.
        Parameters:
        serviceInstanceId - the holder's service instance identifier.
        Throws:
        AccessDeniedException - if the session does not has the permission.
        PortalException
        Since:
        6.0.0