com.plumtree.portalpages.admin.ptutilities.customactivity
Class CustomActivityModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.admin.ptutilities.customactivity.CustomActivityModel
All Implemented Interfaces:
ICustomActivityModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class CustomActivityModel
extends EditorModel
implements ICustomActivityModelRO

Author:
SudhaS, JosephC

Field Summary
protected  boolean m_bDelegateRight
           
protected  boolean m_bNewActivity
           
protected  boolean m_bValidStore
           
protected  int m_nActivityID
           
protected  int m_nRow
           
protected  java.lang.Object[] m_oExistingGroups
           
protected  java.lang.String m_sSetting1
           
protected  java.lang.String m_sSetting2
           
protected  java.lang.String m_strDescription
           
protected  java.lang.String m_strName
           
protected  java.lang.String m_strOriginalName
           
protected  java.lang.String m_strOriginalURI
           
protected  java.lang.String m_strURI
           
static java.lang.String STR_MVC_CLASS_NAME
          DOCUMENT ME!
 
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
CustomActivityModel()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          Code executed when the Editor is starting.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 java.lang.String GetActivityDescription()
           
 int GetActivityID()
           
 java.lang.String GetActivityName()
           
 java.lang.String GetActivityURI()
           
protected  java.lang.Object[] GetAddedGroups()
           
 boolean GetDelegateRight()
          DOCUMENT_ME
protected  java.lang.Object[] GetDeletedGroups()
          DOCUMENT_ME
 boolean GetIsNewActivity()
          DOCUMENT_ME
 java.lang.String GetName()
          Returns the Class name.
 int GetRow()
          DOCUMENT_ME
 boolean GetValidStore()
           
 void ResetInputs()
           
 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.
 void SetExistingGroups()
           
protected  void StartMigrationHistory()
           
 void StartSelectPTObject()
          Helper method to start the Select PTObject List.
 boolean ValidateUniqueName()
          Validates name is unique and raises UI error if not unique.
 boolean ValidateUniqueURI()
          Validates URI is unique.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetAccessToEditorPriviledges, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetEnableCancelButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, Init, 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
DOCUMENT ME!

See Also:
Constant Field Values

m_sSetting1

protected java.lang.String m_sSetting1

m_sSetting2

protected java.lang.String m_sSetting2

m_strDescription

protected java.lang.String m_strDescription

m_strName

protected java.lang.String m_strName

m_strURI

protected java.lang.String m_strURI

m_strOriginalName

protected java.lang.String m_strOriginalName

m_strOriginalURI

protected java.lang.String m_strOriginalURI

m_bDelegateRight

protected boolean m_bDelegateRight

m_oExistingGroups

protected java.lang.Object[] m_oExistingGroups

m_bNewActivity

protected boolean m_bNewActivity

m_bValidStore

protected boolean m_bValidStore

m_nActivityID

protected int m_nActivityID

m_nRow

protected int m_nRow
Constructor Detail

CustomActivityModel

public CustomActivityModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Code executed when the Editor is starting.

Specified by:
CheckEditorAccessAndStart in class EditorModel
Returns:
boolean Is true if the current user has the rights to access this Editor.

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()

Finish

public void Finish()
Description copied from class: EditorModel
Implement some code to execute when the user clicks on "Finish".

Specified by:
Finish in interface IRepostModel
Specified by:
Finish in class EditorModel

ValidateUniqueName

public boolean ValidateUniqueName()
Validates name is unique and raises UI error if not unique.

Returns:
True if name is unique.

ValidateUniqueURI

public boolean ValidateUniqueURI()
Validates URI is unique.

Returns:
True if URI is unique.

GetActivityDescription

public java.lang.String GetActivityDescription()
Specified by:
GetActivityDescription in interface ICustomActivityModelRO
Returns:

GetActivityID

public int GetActivityID()
Specified by:
GetActivityID in interface ICustomActivityModelRO
Returns:

GetActivityName

public java.lang.String GetActivityName()
Specified by:
GetActivityName in interface ICustomActivityModelRO
Returns:

GetRow

public int GetRow()
DOCUMENT_ME

Returns:
DOCUMENT_ME

GetActivityURI

public java.lang.String GetActivityURI()
Specified by:
GetActivityURI in interface ICustomActivityModelRO
Returns:

GetName

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

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

GetValidStore

public boolean GetValidStore()
Returns:

GetIsNewActivity

public boolean GetIsNewActivity()
DOCUMENT_ME

Returns:
DOCUMENT_ME

GetDelegateRight

public boolean GetDelegateRight()
DOCUMENT_ME

Specified by:
GetDelegateRight in interface ICustomActivityModelRO
Returns:
DOCUMENT_ME

ResetInputs

public void ResetInputs()

SaveMainPage

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

SavePage

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

Specified by:
SavePage in interface IRepostModel
Specified by:
SavePage in class EditorModel
Parameters:
_sPageName -
_htFormData -
Returns:
int Page status for server side validation

SetExistingGroups

public void SetExistingGroups()

StartSelectPTObject

public void StartSelectPTObject()
Helper method to start the Select PTObject List.


GetAddedGroups

protected java.lang.Object[] GetAddedGroups()
Returns:

GetDeletedGroups

protected java.lang.Object[] GetDeletedGroups()
DOCUMENT_ME

Returns:
DOCUMENT_ME

StartMigrationHistory

protected void StartMigrationHistory()



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