Class MoveWidgetToHolderAction

  • All Implemented Interfaces:
    WidgetManipulationAction

    public class MoveWidgetToHolderAction
    extends java.lang.Object
    An AbstractWidgetManipulationAction implementation for moving user widgets. Requires the following parameters:
    • ii: The widget instance's service interface instance identifier.
    • shi: The source holder service interface instance identifier.
    • dhi: The destination holder service interface instance identifier.
    • p: The position (zero based) in which the widget has been moved into the destination holder.
    The source and destination holders may or may not be the same.
    Since:
    6.0.0
    Version:
    $Revision: 21235 $ $Date: 2018-04-25 17:35:41 -0300 (Wed, 25 Apr 2018) $
    • Constructor Detail

      • MoveWidgetToHolderAction

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