com.plumtree.portalpages.common.linksettings
Class LinkSettingsPlugInModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorHelperModel
      extended by com.plumtree.portalpages.common.linksettings.LinkSettingsPlugInModel
All Implemented Interfaces:
ILinkSettingsPlugInModelRO, IManagedObject, IModel, IModelRO, IMVCObject

public class LinkSettingsPlugInModel
extends EditorHelperModel
implements ILinkSettingsPlugInModelRO

This Model contains the state of the LinkSettings plug-in section.

Author:
StephenC

Field Summary
 boolean m_bCheckLinkOnly
           
 boolean m_bIsCrawlerLinkSettings
           
 boolean m_bMultipleCards
           
 int m_nBrokenLinksDeleteUnits
           
 int m_nBrokenLinksDeleteValue
           
 int m_nExpireAfterUnits
           
 int m_nExpireAfterValue
           
 int m_nRefreshUnits
           
 int m_nRefreshValue
           
 IPTCardRefreshInfo m_ptCardRefreshInfo
           
 XPDateTime m_xpExpirationDate
           
 XPDateTime m_xpLastRefreshDate
           
 XPDateTime m_xpNextRefreshDate
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorHelperModel
m_asOwner
 
Constructor Summary
LinkSettingsPlugInModel()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 int GetBrokenLinksDeleteUnits()
           
 int GetBrokenLinksDeleteValue()
           
 IPTCardRefreshInfo GetCardRefreshInfo()
           
 boolean GetCheckLinkOnly()
           
 JSDateTimePickerMgr GetDateTimePickerControlManager()
          Get the Date Time picker control manager
 XPDateTime GetDisplayExpirationDate()
           
 XPDateTime GetExpirationDate()
           
 int GetExpireAfterUnits()
           
 int GetExpireAfterValue()
           
 XPDateTime GetLastRefreshedDate()
           
 java.lang.String GetName()
          Returns the Class name.
 XPDateTime GetNextRefreshDate()
           
 int GetRefreshUnits()
           
 int GetRefreshValue()
           
 void InitializeCommon()
          This function initializes the manager objects (Page and datetime) for the date pickers
 void InitializePlugIn(boolean bMultipleCards, IPTCardRefreshInfo ptRefreshSettings)
          To initialize this plug-in you need to set the DP name and the default value of the plug-in setting.
 void InitializePlugInForCrawlers(int nRefreshRateUnits, int nRefreshRateValue, boolean bCheckLinkOnly, int nDeleteUnits, int nDeleteValue, int nExpireAfterUnits, int nExpireAfterValue)
          To initialize this plug-in you need to set the DP name and the default value of the plug-in setting.
 boolean IsCrawler()
           
 boolean IsExpirationDateNull()
           
 boolean IsMultiple()
           
 int SaveSection(XPHashtable _htFormData)
          Saves the data on the Main page.
 void SetBrokenLinksDeleteUnits(int nUnits)
           
 void SetBrokenLinksDeleteValue(int nValue)
           
 void SetCheckLinkOnly(boolean bCheckLinkOnly)
           
 void SetExpirationDate(XPDateTime ptDate)
           
 void SetExpireAfterUnits(int nUnits)
           
 void SetExpireAfterValue(int nValue)
           
 void SetLastRefreshedDate(XPDateTime ptDate)
           
 void SetNextRefreshDate(XPDateTime ptDate)
           
 void SetRefreshUnits(int nUnits)
           
 void SetRefreshValue(int nValue)
           
 
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
See Also:
Constant Field Values

m_ptCardRefreshInfo

public IPTCardRefreshInfo m_ptCardRefreshInfo

m_xpExpirationDate

public XPDateTime m_xpExpirationDate

m_xpLastRefreshDate

public XPDateTime m_xpLastRefreshDate

m_xpNextRefreshDate

public XPDateTime m_xpNextRefreshDate

m_bIsCrawlerLinkSettings

public boolean m_bIsCrawlerLinkSettings

m_bMultipleCards

public boolean m_bMultipleCards

m_nBrokenLinksDeleteUnits

public int m_nBrokenLinksDeleteUnits

m_nBrokenLinksDeleteValue

public int m_nBrokenLinksDeleteValue

m_bCheckLinkOnly

public boolean m_bCheckLinkOnly

m_nExpireAfterUnits

public int m_nExpireAfterUnits

m_nExpireAfterValue

public int m_nExpireAfterValue

m_nRefreshUnits

public int m_nRefreshUnits

m_nRefreshValue

public int m_nRefreshValue
Constructor Detail

LinkSettingsPlugInModel

public LinkSettingsPlugInModel()
Method Detail

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

GetBrokenLinksDeleteUnits

public int GetBrokenLinksDeleteUnits()
Specified by:
GetBrokenLinksDeleteUnits in interface ILinkSettingsPlugInModelRO
Returns:

GetBrokenLinksDeleteValue

public int GetBrokenLinksDeleteValue()
Specified by:
GetBrokenLinksDeleteValue in interface ILinkSettingsPlugInModelRO
Returns:

GetCardRefreshInfo

public IPTCardRefreshInfo GetCardRefreshInfo()
Returns:

GetCheckLinkOnly

public boolean GetCheckLinkOnly()
Specified by:
GetCheckLinkOnly in interface ILinkSettingsPlugInModelRO
Returns:

GetDisplayExpirationDate

public XPDateTime GetDisplayExpirationDate()
Specified by:
GetDisplayExpirationDate in interface ILinkSettingsPlugInModelRO
Returns:

GetExpirationDate

public XPDateTime GetExpirationDate()
Returns:

GetExpireAfterUnits

public int GetExpireAfterUnits()
Specified by:
GetExpireAfterUnits in interface ILinkSettingsPlugInModelRO
Returns:

GetExpireAfterValue

public int GetExpireAfterValue()
Specified by:
GetExpireAfterValue in interface ILinkSettingsPlugInModelRO
Returns:

GetLastRefreshedDate

public XPDateTime GetLastRefreshedDate()
Returns:

GetName

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

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

GetNextRefreshDate

public XPDateTime GetNextRefreshDate()
Returns:

GetRefreshUnits

public int GetRefreshUnits()
Specified by:
GetRefreshUnits in interface ILinkSettingsPlugInModelRO
Returns:

GetRefreshValue

public int GetRefreshValue()
Specified by:
GetRefreshValue in interface ILinkSettingsPlugInModelRO
Returns:

InitializePlugIn

public void InitializePlugIn(boolean bMultipleCards,
                             IPTCardRefreshInfo ptRefreshSettings)
To initialize this plug-in you need to set the DP name and the default value of the plug-in setting.

Parameters:
_sPlugInSetting -

InitializePlugInForCrawlers

public void InitializePlugInForCrawlers(int nRefreshRateUnits,
                                        int nRefreshRateValue,
                                        boolean bCheckLinkOnly,
                                        int nDeleteUnits,
                                        int nDeleteValue,
                                        int nExpireAfterUnits,
                                        int nExpireAfterValue)
To initialize this plug-in you need to set the DP name and the default value of the plug-in setting.

Parameters:
_sPlugInSetting -

InitializeCommon

public void InitializeCommon()
This function initializes the manager objects (Page and datetime) for the date pickers


GetDateTimePickerControlManager

public JSDateTimePickerMgr GetDateTimePickerControlManager()
Get the Date Time picker control manager

Specified by:
GetDateTimePickerControlManager in interface ILinkSettingsPlugInModelRO
Returns:
JSDateTimePickerMgr

IsCrawler

public boolean IsCrawler()
Specified by:
IsCrawler in interface ILinkSettingsPlugInModelRO
Returns:

IsExpirationDateNull

public boolean IsExpirationDateNull()
Specified by:
IsExpirationDateNull in interface ILinkSettingsPlugInModelRO
Returns:

IsMultiple

public boolean IsMultiple()
Specified by:
IsMultiple in interface ILinkSettingsPlugInModelRO
Returns:

SaveSection

public int SaveSection(XPHashtable _htFormData)
Saves the data on the Main page.

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

SetBrokenLinksDeleteUnits

public void SetBrokenLinksDeleteUnits(int nUnits)
Parameters:
nUnits -

SetBrokenLinksDeleteValue

public void SetBrokenLinksDeleteValue(int nValue)
Parameters:
nValue -

SetCheckLinkOnly

public void SetCheckLinkOnly(boolean bCheckLinkOnly)
Parameters:
nValue -

SetExpirationDate

public void SetExpirationDate(XPDateTime ptDate)
Parameters:
ptDate -

SetExpireAfterUnits

public void SetExpireAfterUnits(int nUnits)
Parameters:
nUnits -

SetExpireAfterValue

public void SetExpireAfterValue(int nValue)
Parameters:
nValue -

SetLastRefreshedDate

public void SetLastRefreshedDate(XPDateTime ptDate)
Parameters:
ptDate -

SetNextRefreshDate

public void SetNextRefreshDate(XPDateTime ptDate)
Parameters:
ptDate -

SetRefreshUnits

public void SetRefreshUnits(int nUnits)

SetRefreshValue

public void SetRefreshValue(int nValue)
Parameters:
nValue -



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