com.plumtree.portalpages.browsing.editors.community
Class PageCreateDefaultControl

java.lang.Object
  extended by com.plumtree.portalpages.browsing.editors.community.PageCreateDefaultControl
All Implemented Interfaces:
IControl, IManagedObject, IMVCObject

public class PageCreateDefaultControl
extends java.lang.Object
implements IControl

This control creates a single page in the community without having to go into the community editor

Author:
mattc

Field Summary
static java.lang.String HTMLINPUT_COMMUNITY_ID
           
static java.lang.String HTMLINPUT_INHERIT_TEMPLATE
           
static java.lang.String HTMLINPUT_PAGE_TEMPLATE_ID
           
 AActivitySpace m_asOwner
          Associated Activity Space
protected  CommunityEditorModel m_model
          Associated Model
static java.lang.String STR_MVC_CLASS_NAME
          Object Name
 
Constructor Summary
PageCreateDefaultControl()
           
 
Method Summary
 Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
          Simply creates a new page and redirects the browser back to that page
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 java.lang.String GetName()
          Returns the Class name.
 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
Object Name

See Also:
Constant Field Values

m_asOwner

public AActivitySpace m_asOwner
Associated Activity Space


m_model

protected CommunityEditorModel m_model
Associated Model


HTMLINPUT_COMMUNITY_ID

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

HTMLINPUT_PAGE_TEMPLATE_ID

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

HTMLINPUT_INHERIT_TEMPLATE

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

PageCreateDefaultControl

public PageCreateDefaultControl()
Method Detail

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();)
See Also:
IManagedObject.Create()

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Returns:
String

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

CheckActionSecurityAndExecute

public Redirect CheckActionSecurityAndExecute(XPHashtable arguments)
Simply creates a new page and redirects the browser back to that page

Specified by:
CheckActionSecurityAndExecute in interface IControl
Parameters:
arguments - contains HTTP arguments from the post
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.



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