com.plumtree.portalpages.admin.objmgr
Class StaticPTObjectHelpers

java.lang.Object
  extended by com.plumtree.portalpages.admin.objmgr.StaticPTObjectHelpers

public class StaticPTObjectHelpers
extends java.lang.Object

Author:
Don Hayler This class contains static methods that implement IPTObject specific code that doesn't really belong in the main Object Manager classes. This includes special javascript for popping up trees before redirecting to editors (for extensible providers) and special object action code like Run Once (for Jobs).

Field Summary
static java.lang.String JAVASCRIPT_OPEN_TREE
          JavaScript function names.
static java.lang.String JAVASCRIPT_START_EDITOR
           
 
Constructor Summary
StaticPTObjectHelpers()
           
 
Method Summary
static XPStringBuilder GetJavaScriptForCommunityEditor(AActivitySpace _asOwner, java.lang.String _sURLToEditor)
          MJD- This method should be used to start the Community Editor (special case).
static XPStringBuilder GetJavaScriptForPageEditor(AActivitySpace _asOwner, java.lang.String _sURLToEditor)
          MJD- This method should be used to start the Page Editor (special case).
static XPStringBuilder GetJavaScriptForPortletEditor(AActivitySpace _asOwner, java.lang.String _sURLToEditor)
          AGC- This method should be used to start the Portlet Editor (special case).
static XPStringBuilder GetJavaScriptForRemoteEditor(AActivitySpace _asOwner, int _nClassID, java.lang.String _sURLToEditor, java.lang.String _sProvCLSID, java.lang.String _sProvEngName)
          JF- This method should be used to start remote Editors.
static void RunJobsOnce(int[] nJobIDs, AActivitySpace asOwner)
          This method runs a set of jobs once.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASCRIPT_OPEN_TREE

public static final java.lang.String JAVASCRIPT_OPEN_TREE
JavaScript function names.

See Also:
Constant Field Values

JAVASCRIPT_START_EDITOR

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

StaticPTObjectHelpers

public StaticPTObjectHelpers()
Method Detail

GetJavaScriptForPortletEditor

public static XPStringBuilder GetJavaScriptForPortletEditor(AActivitySpace _asOwner,
                                                            java.lang.String _sURLToEditor)
AGC- This method should be used to start the Portlet Editor (special case). It will return the JavaScript method to open the tree and the one to start the Editor.

Parameters:
_asOwner - Activity Space
_nClassID - Object class ID
_sURLToEditor - URL to start the Editor
_sProvClassID - Provider Class ID (CLSID)
Returns:
XPStringBuilder

GetJavaScriptForPageEditor

public static XPStringBuilder GetJavaScriptForPageEditor(AActivitySpace _asOwner,
                                                         java.lang.String _sURLToEditor)
MJD- This method should be used to start the Page Editor (special case). It will return the JavaScript method to open the tree and the one to start the Editor.

Parameters:
_asOwner - Activity Space
_sURLToEditor - URL to start the Editor
Returns:
XPStringBuilder

GetJavaScriptForCommunityEditor

public static XPStringBuilder GetJavaScriptForCommunityEditor(AActivitySpace _asOwner,
                                                              java.lang.String _sURLToEditor)
MJD- This method should be used to start the Community Editor (special case). It will return the JavaScript method to open the tree and the one to start the Editor.

Parameters:
_asOwner - Activity Space
_sURLToEditor - URL to start the Editor
Returns:
XPStringBuilder

GetJavaScriptForRemoteEditor

public static XPStringBuilder GetJavaScriptForRemoteEditor(AActivitySpace _asOwner,
                                                           int _nClassID,
                                                           java.lang.String _sURLToEditor,
                                                           java.lang.String _sProvCLSID,
                                                           java.lang.String _sProvEngName)
JF- This method should be used to start remote Editors. It will return the JavaScript method to open the tree and the one to start the Editor.

Parameters:
_asOwner - Activity Space
_nClassID - Object class ID
_sURLToEditor - URL to start the Editor
_sProvClassID - Provider Class ID (CLSID)
Returns:
XPStringBuilder

RunJobsOnce

public static void RunJobsOnce(int[] nJobIDs,
                               AActivitySpace asOwner)
This method runs a set of jobs once.

Parameters:
int[] - an array of the object IDs of the jobs to run.



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