lumis.service.pagepersonalization.widgetmanipulationaction
Class MoveWidgetToHolderAction

Package class diagram package MoveWidgetToHolderAction
java.lang.Object
  extended by lumis.service.pagepersonalization.widgetmanipulationaction.MoveWidgetToHolderAction
All Implemented Interfaces:
WidgetManipulationAction

public class MoveWidgetToHolderAction
extends Object

An AbstractWidgetManipulationAction implementation for moving user widgets. Requires the following parameters:

The source and destination holders may or may not be the same.

Since:
6.0.0

Field Summary
protected  String LUMIS_SERVICE_PAGEPERSONALIZATION_WIDGET_HOLDER_INTERFACE_ID
           
 
Constructor Summary
MoveWidgetToHolderAction()
           
 
Method Summary
protected  void checkManageHolderPermission(String serviceInstanceId)
          Checks if the current session has permission to manage the widgets holder.
protected  void checkPersonalizePagePermission(String serviceInstanceId)
          Checks if the current session has permission to personalize a widget holder for itself.
 int 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
 

Field Detail

LUMIS_SERVICE_PAGEPERSONALIZATION_WIDGET_HOLDER_INTERFACE_ID

protected final String LUMIS_SERVICE_PAGEPERSONALIZATION_WIDGET_HOLDER_INTERFACE_ID
See Also:
Constant Field Values
Constructor Detail

MoveWidgetToHolderAction

public MoveWidgetToHolderAction()
Method Detail

checkManageHolderPermission

protected void checkManageHolderPermission(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(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

doAction

public int doAction(HttpServletRequest request,
                    IPortalMode portalMode,
                    ITransaction transaction)
             throws PortalException
Description copied from interface: WidgetManipulationAction
Performs necessary widget manipulation. Must return a HTTP status code to indicate if it was succeeded or not. It is not responsible of implementing classes to rollback or dispose the transaction. If the return code is different from HttpServletResponse.SC_OK, the caller will do the rollback automatically.

Specified by:
doAction in interface WidgetManipulationAction
Parameters:
request - the HTTP servlet request.
portalMode - the current portal mode.
transaction - the transaction to be used.
Returns:
an HTTP status code.
Throws:
PortalException


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.