com.plumtree.portalpages.admin.editors.externaloperations
Class ExternalOperationEditorModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
          extended by com.plumtree.portalpages.admin.editors.externaloperations.ExternalOperationEditorModel
All Implemented Interfaces:
IExternalOperationEditorModelRO, IDescriptionModelRO, IMigrationModelRO, IObjEditorModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class ExternalOperationEditorModel
extends ObjEditorModel
implements IExternalOperationEditorModelRO

JHQ ExtOpRedesign 050604: External Operations have been re-architected to run script files instead of commands from the command line. These scripts must reside in the automation server's portal_home/scripts directory. This directory can be secured as necessary. Therefore, we no longer use the RunAsUser/RunAsUserPassword. Corresponding methods will be deprecated and should not be implemented.

Author:
OlegS

Field Summary
protected  XPArrayList m_ActionData
           
 int m_nAction
           
protected  IPTExternalOperation m_ptExtOp
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
EDITOR_CLASSID_UNKNOWN, EDITOR_FOLDERID_UNKNOWN, EDITOR_OBJECTID_UNKNOWN, EDITOR_QS_BOL_QS_FORCESAVEINFOLDER, EDITOR_QS_INT_CLASS_ID, EDITOR_QS_INT_QS_FOLDER_ID, EDITOR_QS_INT_QS_OBJECT_ID, m_bDisableDescription, m_bDisableSecurity, m_bForceSavedInSuppliedFolder, m_bIsSysAdmin, m_nClassID, m_nFolderID, m_nFolderType, m_nObjectID, m_ptObject, m_Session, m_sFolderName, OBJECT_NAME_TRUNCATE
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
isReadAccessAvailable, m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bEnableCancelButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
ExternalOperationEditorModel()
          Creates a new ExternalOperationEditorModel object.
 
Method Summary
protected  java.lang.String append(java.lang.String s1, java.lang.String s2)
           
protected  void ClearActionData()
           
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
protected  boolean differ(java.lang.String s1, java.lang.String s2)
           
 void DoTaskAfterStore()
          That method contains the code that should be executed just after the object has been stored in the DB.
 void DoTaskBeforeStore()
          That method contains the code that should be executed just before the object is stored in the DB.
 void DoTaskOnComeBackFromSubEditor()
          This method will be called when you come back to the main Editor from a sub Editor.
 void DoTaskOnStartEditor(XPHashtable _htFormData)
          That method contains the code that should be executed just after the object has been initialized when the new editor is started.
protected  void ExtractActionData_All(XPHashtable _htFormData)
           
protected  java.lang.String ExtractOneElement(java.lang.Object o)
           
protected  int GetAction()
           
 java.lang.String GetCommandLine()
           
 java.lang.String GetName()
          Returns the Class name.
 java.lang.String GetPasswordToDisplay()
          Deprecated. This method should not be implemented.
 int GetTimeout()
           
 java.lang.String GetUser()
          Deprecated. This method should not be implemented.
protected  int SaveMainPage(XPHashtable _htFormData)
           
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 
Methods inherited from class com.plumtree.portaluiinfrastructure.editor.ObjEditorModel
CheckEditorAccess, CheckEditorAccessAndStart, CheckFolderType, DisableSecurity, Finish, ForceSaveInFolder, GetClassID, GetFolderID, GetFolderName, GetIsSysAdmin, GetMigrationStatus, GetObject, GetObjectDescription, GetObjectID, GetObjectName, GetParentFolderPath, GetPTSession, Init, InitIsSysAdminFlag, InitPTObject, IsDescriptionDisabled, IsMigrationApproved, SaveMigrationStatus, SetDisableDescription, SetEditorToReadOnly, SetMemberVariablesFromQS, SetMigrationStatus, StartKeywords, StartLocNamesList, StartMigrationHistory, StartObjectProp, StartSecurityList, StoreObject
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskOnChangePage, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, SetCloseOnDone, SetDeleteOnCancel, SetEditorType, SetEnableApplyButton, SetHideLeftNav, SetPageStatus, SetUserHasAccessToEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.plumtree.uiinfrastructure.editor.IEditorModelRO
GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly
 

Field Detail

STR_MVC_CLASS_NAME

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

m_nAction

public int m_nAction

m_ptExtOp

protected IPTExternalOperation m_ptExtOp

m_ActionData

protected XPArrayList m_ActionData
Constructor Detail

ExternalOperationEditorModel

public ExternalOperationEditorModel()
Creates a new ExternalOperationEditorModel object.

Method Detail

GetCommandLine

public java.lang.String GetCommandLine()
Specified by:
GetCommandLine in interface IExternalOperationEditorModelRO
Returns:

GetPasswordToDisplay

public java.lang.String GetPasswordToDisplay()
Deprecated. This method should not be implemented.

Specified by:
GetPasswordToDisplay in interface IExternalOperationEditorModelRO
Returns:

GetTimeout

public int GetTimeout()
Specified by:
GetTimeout in interface IExternalOperationEditorModelRO
Returns:

GetUser

public java.lang.String GetUser()
Deprecated. This method should not be implemented.

Specified by:
GetUser in interface IExternalOperationEditorModelRO
Returns:

Create

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

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

DoTaskAfterStore

public void DoTaskAfterStore()
Description copied from class: EditorModel
That method contains the code that should be executed just after the object has been stored in the DB.

Overrides:
DoTaskAfterStore in class EditorModel

DoTaskBeforeStore

public void DoTaskBeforeStore()
Description copied from class: EditorModel
That method contains the code that should be executed just before the object is stored in the DB.

Overrides:
DoTaskBeforeStore in class EditorModel

DoTaskOnComeBackFromSubEditor

public void DoTaskOnComeBackFromSubEditor()
Description copied from class: ObjEditorModel
This method will be called when you come back to the main Editor from a sub Editor.

Overrides:
DoTaskOnComeBackFromSubEditor in class ObjEditorModel

DoTaskOnStartEditor

public void DoTaskOnStartEditor(XPHashtable _htFormData)
Description copied from class: EditorModel
That method contains the code that should be executed just after the object has been initialized when the new editor is started.

Overrides:
DoTaskOnStartEditor in class EditorModel

GetName

public java.lang.String GetName()
Description copied from class: EditorModel
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorModel
Returns:

SavePage

public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
Description copied from class: ObjEditorModel
Calls the right save function according to the page name passed in argument.

Specified by:
SavePage in interface IRepostModel
Overrides:
SavePage in class ObjEditorModel
Parameters:
_sPageName -
_htFormData -
Returns:

GetAction

protected int GetAction()
Returns:

ClearActionData

protected void ClearActionData()

ExtractActionData_All

protected void ExtractActionData_All(XPHashtable _htFormData)
Parameters:
_htFormData -

ExtractOneElement

protected java.lang.String ExtractOneElement(java.lang.Object o)
Parameters:
o -
Returns:

SaveMainPage

protected int SaveMainPage(XPHashtable _htFormData)
Parameters:
_htFormData -
Returns:

append

protected java.lang.String append(java.lang.String s1,
                                  java.lang.String s2)
Parameters:
s1 -
s2 -
Returns:

differ

protected boolean differ(java.lang.String s1,
                         java.lang.String s2)
Parameters:
s1 -
s2 -
Returns:



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