Class AddWidgetToHolderAction

  • All Implemented Interfaces:
    WidgetManipulationAction

    public class AddWidgetToHolderAction
    extends java.lang.Object
    An AbstractWidgetManipulationAction implementation for adding user widgets. Requires the following parameters:
    • ii: The widget interface instance identifier.
    • hi: The holder service interface instance identifier.
    • p: The position (zero based) in which the widget has been moved into the destination holder.
    Since:
    6.0.0
    Version:
    $Revision: 20509 $ $Date: 2017-09-11 16:18:14 -0300 (Mon, 11 Sep 2017) $
    • Constructor Detail

      • AddWidgetToHolderAction

        public AddWidgetToHolderAction()
    • 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