com.plumtree.portalpages.admin.editors.common.setjob
Class SetJobModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.portalpages.admin.editors.common.setjob.SetJobModel
All Implemented Interfaces:
ISetJobModelRO, IManagedObject, IModel, IModelRO, IMVCObject

public class SetJobModel
extends EditorHelperModel
implements ISetJobModelRO

Model class for the set Job page: Job owner and Job selector table.

Author:
Julie Fournier

Field Summary
static int INVALID_OWNER_ID
          possible value for m_nOwnerID that indicates that the current user does not have access to see the owner
static java.lang.String STR_MVC_CLASS_NAME
          Class name for the activity space
static java.lang.String STR_MVC_STORAGE_NAME_SELECT_JOB
          Select Jobs storage name
static java.lang.String SUBSPACE_KEY_OWNERTREE
          Key name used by the Activity Space to store the tree.
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
SetJobModel()
           
 
Method Summary
 void ChangeOwner()
          This method is called on come back from tree to get the new selected owner from the tree.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoTaskAfterStoreSetJob()
          Removes this Object from the Jobs that have been deleted from the Job Page.
 void DoTaskBeforeStoreSetJob()
          Code executed before the object is stored.
 void DoTaskOnStartSetJob(IPTObject _ptObject, IPTSession _ptSession, int _nEditorType)
          Code executed when the Editor is starting.
 java.lang.String GetName()
          Returns the Class name.
 int GetOwnerID()
          Returns the current ID of the owner.
 java.lang.String GetOwnerName()
          Returns the current name of the owner.
 java.lang.String GetOwnerTreeSpaceID()
          Returns owner tree AS ID.
 boolean IsSysAdmin()
          Returns true if the current user has sys admin activity rights.
 int SaveSection(XPHashtable _htFormData)
          Saves the selected value in the priority drop-down.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
CleanupAllData, CleanupTempData, Init
 
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
Class name for the activity space

See Also:
Constant Field Values

STR_MVC_STORAGE_NAME_SELECT_JOB

public static final java.lang.String STR_MVC_STORAGE_NAME_SELECT_JOB
Select Jobs storage name

See Also:
Constant Field Values

SUBSPACE_KEY_OWNERTREE

public static final java.lang.String SUBSPACE_KEY_OWNERTREE
Key name used by the Activity Space to store the tree.

See Also:
Constant Field Values

INVALID_OWNER_ID

public static final int INVALID_OWNER_ID
possible value for m_nOwnerID that indicates that the current user does not have access to see the owner

See Also:
Constant Field Values
Constructor Detail

SetJobModel

public SetJobModel()
Method Detail

ChangeOwner

public void ChangeOwner()
This method is called on come back from tree to get the new selected owner from the tree.


Create

public java.lang.Object Create()
Description copied from class: EditorHelperModel
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 EditorHelperModel
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

DoTaskAfterStoreSetJob

public void DoTaskAfterStoreSetJob()
Removes this Object from the Jobs that have been deleted from the Job Page. Then is adds the Object to the new selected Jobs.


DoTaskBeforeStoreSetJob

public void DoTaskBeforeStoreSetJob()
Code executed before the object is stored.


DoTaskOnStartSetJob

public void DoTaskOnStartSetJob(IPTObject _ptObject,
                                IPTSession _ptSession,
                                int _nEditorType)
Code executed when the Editor is starting.

Parameters:
_htFormData -

GetName

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

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

GetOwnerID

public int GetOwnerID()
Returns the current ID of the owner.

Specified by:
GetOwnerID in interface ISetJobModelRO
Returns:
int
See Also:
GetOwnerID()

GetOwnerName

public java.lang.String GetOwnerName()
Returns the current name of the owner.

Specified by:
GetOwnerName in interface ISetJobModelRO
Returns:
String
See Also:
GetOwnerName()

GetOwnerTreeSpaceID

public java.lang.String GetOwnerTreeSpaceID()
Returns owner tree AS ID.

Specified by:
GetOwnerTreeSpaceID in interface ISetJobModelRO
Returns:
String
See Also:
GetOwnerTreeSpaceID()

IsSysAdmin

public boolean IsSysAdmin()
Returns true if the current user has sys admin activity rights.

Specified by:
IsSysAdmin in interface ISetJobModelRO
Returns:
boolean
See Also:
IsSysAdmin()

SaveSection

public int SaveSection(XPHashtable _htFormData)
Saves the selected value in the priority drop-down.

Specified by:
SaveSection in class EditorHelperModel
Parameters:
_htFormData -
Returns:
int Status for server side validation



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