com.plumtree.portalpages.browsing.myportal
Class ReorderPortletsControl

java.lang.Object
  extended by com.plumtree.portalpages.browsing.myportal.ReorderPortletsControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject

public class ReorderPortletsControl
extends java.lang.Object
implements IControl

Control to reassign portlets in a region(s) on a given community or my page using the passed in portlet list(s). This control is used by the Drag and Drop/Edit Page Flyout feature. This control should handle these cases: (1) User drags portlet from flyout to a region in the portlet content area. (2) User drags a portlet in the portlet content area and reorders the portlets in the same region. (3) User drags a portlet to a different region in the portlet content area which causes reordering of both the source and target regions.

Author:
btse

Field Summary
static java.lang.String STR_MVC_CLASS_NAME
           
static java.lang.String STR_SOURCE_REGION
           
static java.lang.String STR_SOURCE_REGION_PORTLET_LIST
           
static java.lang.String STR_TARGET_REGION
           
static java.lang.String STR_TARGET_REGION_PORTLET_LIST
           
 
Constructor Summary
ReorderPortletsControl()
           
 
Method Summary
 Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
          Execute the control business logic and optionally return a Redirect object pointing to another AActivitySpace.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String GetName()
          Return the name of the MVC object.
 void Init(IModel model, AActivitySpace space)
          Initialize the control with the model it should use and it's parent AActivitySpace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
See Also:
Constant Field Values

STR_SOURCE_REGION

public static final java.lang.String STR_SOURCE_REGION
See Also:
Constant Field Values

STR_SOURCE_REGION_PORTLET_LIST

public static final java.lang.String STR_SOURCE_REGION_PORTLET_LIST
See Also:
Constant Field Values

STR_TARGET_REGION

public static final java.lang.String STR_TARGET_REGION
See Also:
Constant Field Values

STR_TARGET_REGION_PORTLET_LIST

public static final java.lang.String STR_TARGET_REGION_PORTLET_LIST
See Also:
Constant Field Values
Constructor Detail

ReorderPortletsControl

public ReorderPortletsControl()
Method Detail

CheckActionSecurityAndExecute

public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
Description copied from interface: IControl
Execute the control business logic and optionally return a Redirect object pointing to another AActivitySpace. Returning null means that the user should return to the parent AActivitySpace's current page. This method is designed to check that the user has access to perform the actions with the given parameters. If the user does not, a redirect object which has had Redirect.SetRedirectToLogin(true) called on it. If the user is the Guest, this will bounce to the login page and back to the Redirect after the user has logged on. If the user is already logged on, they will be redirected to an error page. In general, the error redirect that is returned should contain all of the query string parameters that made up the URL that originally led to the control. Checking whether or not a particular user ever has any access to the space, page, and control should be done in IPTActivitySpace.CheckBasicAccess().

Specified by:
CheckActionSecurityAndExecute in interface IControl
Returns:
Redirect where to redirect to after the control is finished executing. This will go to the login page or an error page if Redirect.SetRedirectToLogin(true) has been called.

Create

public java.lang.Object Create()
Description copied from interface: IManagedObject
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Returns:
A new instance of the managed class (i.e. return new Foo();)

GetName

public java.lang.String GetName()
Description copied from interface: IMVCObject
Return the name of the MVC object.

Specified by:
GetName in interface IMVCObject
Returns:
the name of the object.

Init

public void Init(IModel model,
                 AActivitySpace space)
Description copied from interface: IControl
Initialize the control with the model it should use and it's parent AActivitySpace. This method needs to be called before any other methods. This method also clears all internal data so the control can be used again without fear of mixing data.

Specified by:
Init in interface IControl
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IControl#Init(IModel, AActivitySpace)



Copyright 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.