public class AddWidgetToHolderAction extends Object
AbstractWidgetManipulationAction
implementation for adding user
widgets. Requires the following parameters:
Constructor and Description |
---|
AddWidgetToHolderAction() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
doAction(HttpServletRequest request,
IPortalMode portalMode,
ITransaction transaction)
Performs necessary widget manipulation.
|
protected void checkManageHolderPermission(String serviceInstanceId) throws PortalException
serviceInstanceId
- the holder's service instance identifier.AccessDeniedException
- if the session does not has the permission.PortalException
protected void checkPersonalizePagePermission(String serviceInstanceId) throws PortalException
serviceInstanceId
- the holder's service instance identifier.AccessDeniedException
- if the session does not has the permission.PortalException
public String doAction(HttpServletRequest request, IPortalMode portalMode, ITransaction transaction) throws PortalException
WidgetManipulationAction
HTTP status code
to indicate
if it was succeeded or not. It is not responsible of implementing classes
to rollback
or
close
the transaction. If the return
code is different from HttpServletResponse.SC_OK
, the caller will
do the rollback
automatically.doAction
in interface WidgetManipulationAction
request
- the HTTP servlet request.portalMode
- the current portal mode.transaction
- the transaction to be used.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.