com.plumtree.portalpages.admin.ptutilities.condition
Class SubportalRulesManagerModel

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

public class SubportalRulesManagerModel
extends EditorModel


Field Summary
static int FOLDER_RULES_LIST_KEY
           
static int GUEST_RULES_LIST_KEY
           
static java.lang.String STR_MVC_CLASS_NAME
           
static int SUBPORTAL_RULES_LIST_KEY
           
 
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
SubportalRulesManagerModel()
           
 
Method Summary
 void AddNewlyCreatedObject(int[] arObjectInfo)
          Method to help keep track of the new objects being created.
 void Cancel()
          Implement some code to execute when the user clicks on "Cancel".
 boolean CheckEditorAccessAndStart(XPHashtable arg0)
          Implements some actions to perform on start.
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 void DoTaskOnChangePage(java.lang.String _sNewSpaceName, java.lang.String _sNewPageName)
          This method can be implemented by classes extending this one.
 void DoTaskOnComeBackFromSubEditor()
          This method will be called when you come back to the main Editor from a sub Editor.
 void Finish()
          Implement some code to execute when the user clicks on "Finish".
 java.lang.String GetName()
          Returns the Class name.
 int SavePage(java.lang.String arg0, XPHashtable arg1)
          Calls the right save function according to the page name passed in argument.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, 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
 

Field Detail

STR_MVC_CLASS_NAME

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

SUBPORTAL_RULES_LIST_KEY

public static final int SUBPORTAL_RULES_LIST_KEY
See Also:
Constant Field Values

GUEST_RULES_LIST_KEY

public static final int GUEST_RULES_LIST_KEY
See Also:
Constant Field Values

FOLDER_RULES_LIST_KEY

public static final int FOLDER_RULES_LIST_KEY
See Also:
Constant Field Values
Constructor Detail

SubportalRulesManagerModel

public SubportalRulesManagerModel()
Method Detail

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

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:
String

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable arg0)
Description copied from class: EditorModel
Implements some actions to perform on start. Use the Editor Type if needed.

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

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

Cancel

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

Overrides:
Cancel in class EditorModel

AddNewlyCreatedObject

public void AddNewlyCreatedObject(int[] arObjectInfo)
Method to help keep track of the new objects being created.

Parameters:
arObjectInfo - - object information needed to keep track of new objects created

SavePage

public int SavePage(java.lang.String arg0,
                    XPHashtable arg1)
Description copied from class: EditorModel
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
Returns:
int Page status for server side validation

DoTaskOnChangePage

public void DoTaskOnChangePage(java.lang.String _sNewSpaceName,
                               java.lang.String _sNewPageName)
Description copied from class: EditorModel
This method can be implemented by classes extending this one. It will be executed each time the user changes page on the left navigation menu.

Overrides:
DoTaskOnChangePage in class EditorModel

DoTaskOnComeBackFromSubEditor

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

Overrides:
DoTaskOnComeBackFromSubEditor in class EditorModel



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