| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.portaluiinfrastructure.editor.saveobject.SaveObjectModel
public class SaveObjectModel
This is the Model class for the Save object pop-up. We use it to store the state of the save object pop-up, except for the security page and the folder tree. The Security page is part of the Object Editor AS which is the parent space of this one. The Folder Tree is a sub space.
| Field Summary | |
|---|---|
protected  SaveObjectAS | 
m_asOwner
Parent Activity Space.  | 
protected  boolean | 
m_bDisableDescription
For some objects, you can't set/change the description from the Editor.  | 
protected  int | 
m_nCurrentTab
Flag to know on which tab we are: folder tree or security.  | 
protected  java.lang.String | 
m_sFolderName
Folder Name.  | 
static java.lang.String | 
RECENT_FOLDERS_COOKIE_NAME
Class Name for the Activity Space.  | 
static java.lang.String | 
SAVEOBJECT_FOLDERTREE_SUBSPACEKEY
Key to store the folder tree as a sub space.  | 
static int | 
SAVEOBJECT_TAB_FOLDERTREE
Constant to identify the folder tree page in the body frame.  | 
static int | 
SAVEOBJECT_TAB_SECURITY
Constant to identify the security page in the body frame.  | 
static java.lang.String | 
STR_MVC_CLASS_NAME
Class Name for the Activity Space.  | 
| Constructor Summary | |
|---|---|
SaveObjectModel()
 | 
|
| Method Summary | |
|---|---|
 void | 
AddAdminFolderIDToCookie(IXPRequest _xpRequest,
                         IWebData _webdata)
Adds the selected admin folder ID to Cookie.  | 
 void | 
CleanupAllData()
This method is called when an ActivitySpace is removed from the cache.  | 
 void | 
CleanupTempData()
This method is called at the end of every HTTP request by the Interpreter.  | 
 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".  | 
 boolean | 
ForceSaveInFolder()
Returns the Folder ID in which the Object will be saved.  | 
 int | 
GetAdminFolderID()
Returns the admin folder ID.  | 
 int | 
GetCurrentTab()
Returns the ID of the current selected tab.  | 
 java.lang.String | 
GetFolderName()
Returns the folder name.  | 
 java.lang.String | 
GetName()
Return the name of the MVC object.  | 
 java.lang.String | 
GetObjectDescription()
Returns the description of the Object being created.  | 
 java.lang.String | 
GetObjectName()
Returns the name of the Object being created.  | 
 java.lang.Object[][] | 
GetRecentlyUsedFolders()
Returns the array of most recently used folder IDs and names.  | 
 Redirect | 
GetRedirectAfterFinish()
Returns the Redirect object (this is were we need to go at the end of the Editor).  | 
 boolean | 
GetRepostBodyFromBottomFrame()
Returns true if the body frame should be reposted from the bottom frame.  | 
 boolean | 
GetRepostBodyFromTopFrame()
Returns true if the body frame should be reposted from the top frame.  | 
 boolean | 
GetRepostTreeAndSave()
Returns true if the tree frame should be reposted from the recent folders frame.  | 
 boolean | 
GetRepostTreeRecentFoldersFrame()
Returns true if the tree frame should be reposted from the recent folders frame.  | 
 java.lang.String | 
GetTitle()
Returns the title for the browser.  | 
 boolean | 
HideSecurityTab()
Returns true if the current Object doesn't support ACLs and the security tab should not be displayed.  | 
 void | 
Init(AActivitySpace parent)
This method initializes the model.  | 
 void | 
InitializeSaveObjectPopUp(IXPRequest _xpRequest)
This methods should be called when the pop-up is displayed for the 1st time.  | 
 void | 
InitRecentlyUsedFolders(IXPRequest _xpRequest)
Adds the selected admin folder ID to Cookie.  | 
 boolean | 
IsAdminFolderInRecentFolders(int _nFolderID)
Returns true if the current admin folder is one of the recently used folders.  | 
 boolean | 
IsCurrentObjectCommunity()
Returns true if the current object is a community.  | 
 boolean | 
IsDescriptionDisabled()
Returns true if the object description cannot be set/changed from the Editor.  | 
 boolean | 
IsMigrationApproved()
Returns true if the migration has already been approved for the current object.  | 
 boolean | 
IsSysAdmin()
Returns true if the current user has system administrator activity rights.  | 
protected  void | 
SaveAdminFolderID(XPHashtable _htFormData)
Saves the new folder ID and set it in the Object.  | 
protected  void | 
SaveNameDesc(XPHashtable _htFormData)
Saves name and description..  | 
 int | 
SavePage(java.lang.String _sPageName,
         XPHashtable _htFormData)
Calls the right save function according to the page name passed in argument.  | 
protected  void | 
SaveTab(XPHashtable _htFormData)
Saves the new tab ID.  | 
 void | 
SetRepostBodyFromBottomFrame(boolean _bRepostBodyFromBottomFrame)
Sets a flag to know if the body frame should be reposted from the bottom frame.  | 
 void | 
SetRepostBodyFromTopFrame(boolean _bRepostBodyFromTopFrame)
Sets a flag to know if the body frame should be reposted from the top frame.  | 
 void | 
SetRepostTreeAndSave(boolean _bRepostTreeAndSave)
Sets a flag to know if the tree frame should be reposted from the recent folders frame.  | 
 void | 
SetRepostTreeRecentFoldersFrame(boolean _bRepostTreeRecentFoldersFrame)
Sets a flag to know if the tree frame should be reposted from the recent folders frame.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String STR_MVC_CLASS_NAME
public static final java.lang.String RECENT_FOLDERS_COOKIE_NAME
public static final java.lang.String SAVEOBJECT_FOLDERTREE_SUBSPACEKEY
public static final int SAVEOBJECT_TAB_FOLDERTREE
public static final int SAVEOBJECT_TAB_SECURITY
protected SaveObjectAS m_asOwner
protected java.lang.String m_sFolderName
protected boolean m_bDisableDescription
protected int m_nCurrentTab
| Constructor Detail | 
|---|
public SaveObjectModel()
| Method Detail | 
|---|
public void AddAdminFolderIDToCookie(IXPRequest _xpRequest,
                                     IWebData _webdata)
_xpRequest - _webdata - public void CleanupTempData()
IModel
CleanupTempData in interface IModelIModel.CleanupTempData()public void CleanupAllData()
IModel
CleanupAllData in interface IModelIModel.CleanupAllData()public java.lang.Object Create()
IManagedObject
Create in interface IManagedObjectIManagedObject.Create()public void Finish()
IRepostModel
Finish in interface IRepostModelIRepostModel.Finish()public boolean IsCurrentObjectCommunity()
IsCurrentObjectCommunity in interface ISaveObjectModelROIsCurrentObjectCommunity()public boolean ForceSaveInFolder()
ForceSaveInFolder in interface ISaveObjectModelROForceSaveInFolder()public int GetAdminFolderID()
GetAdminFolderID in interface ISaveObjectModelROGetAdminFolderID()public int GetCurrentTab()
GetCurrentTab in interface ISaveObjectModelROGetCurrentTab()public java.lang.String GetFolderName()
GetFolderName in interface ISaveObjectModelROGetFolderName()public java.lang.String GetName()
IMVCObject
GetName in interface IMVCObjectIMVCObject.GetName()public java.lang.String GetObjectDescription()
GetObjectDescription in interface ISaveObjectModelROGetObjectDescription()public java.lang.String GetObjectName()
GetObjectName in interface ISaveObjectModelROGetObjectName()public java.lang.Object[][] GetRecentlyUsedFolders()
GetRecentlyUsedFolders in interface ISaveObjectModelROGetRecentlyUsedFolders()public Redirect GetRedirectAfterFinish()
IRepostModel
GetRedirectAfterFinish in interface IRepostModelIRepostModel.GetRedirectAfterFinish()public boolean GetRepostBodyFromBottomFrame()
GetRepostBodyFromBottomFrame in interface ISaveObjectModelROGetRepostBodyFromBottomFrame()public boolean GetRepostBodyFromTopFrame()
GetRepostBodyFromTopFrame in interface ISaveObjectModelROGetRepostBodyFromTopFrame()public boolean GetRepostTreeAndSave()
GetRepostTreeAndSave in interface ISaveObjectModelROGetRepostTreeAndSave()public boolean GetRepostTreeRecentFoldersFrame()
GetRepostTreeRecentFoldersFrame in interface ISaveObjectModelROGetRepostTreeRecentFoldersFrame()public java.lang.String GetTitle()
GetTitle in interface ISaveObjectModelROGetTitle()public boolean HideSecurityTab()
HideSecurityTab in interface ISaveObjectModelROHideSecurityTab()public boolean IsDescriptionDisabled()
IsDescriptionDisabled in interface ISaveObjectModelROIsDescriptionDisabled()public void Init(AActivitySpace parent)
IModel
Init in interface IModelparent - the parent Activity SpaceIModel.Init(AActivitySpace)public void InitRecentlyUsedFolders(IXPRequest _xpRequest)
_xpRequest - _webdata - public void InitializeSaveObjectPopUp(IXPRequest _xpRequest)
public boolean IsAdminFolderInRecentFolders(int _nFolderID)
IsAdminFolderInRecentFolders in interface ISaveObjectModelROcom.plumtree.portaluiinfrastructure.editor.saveobject.SaveObjectModel#IsAdminFolderInRecentFolders()public boolean IsMigrationApproved()
IsMigrationApproved in interface ISaveObjectModelROIsMigrationApproved()public boolean IsSysAdmin()
IsSysAdmin in interface ISaveObjectModelROIsSysAdmin()
public int SavePage(java.lang.String _sPageName,
                    XPHashtable _htFormData)
IRepostModel
SavePage in interface IRepostModelIRepostModel.SavePage(String, XPHashtable)public void SetRepostBodyFromBottomFrame(boolean _bRepostBodyFromBottomFrame)
_bRepostBodyFromBottomFrame - public void SetRepostBodyFromTopFrame(boolean _bRepostBodyFromTopFrame)
_bRepostBodyFromTopFrame - public void SetRepostTreeAndSave(boolean _bRepostTreeAndSave)
_bRepostTreeAndSave - public void SetRepostTreeRecentFoldersFrame(boolean _bRepostTreeRecentFoldersFrame)
_bRepostTreeRecentFoldersFrame - protected void SaveAdminFolderID(XPHashtable _htFormData)
protected void SaveNameDesc(XPHashtable _htFormData)
_htFormData - protected void SaveTab(XPHashtable _htFormData)
_htFormData - 
  | 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||