com.plumtree.portalpages.admin.serversettings.auditmanager
Class AuditManagerModel

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorModel
      extended by com.plumtree.portalpages.admin.serversettings.auditmanager.AuditManagerModel
All Implemented Interfaces:
IAuditManagerModelRO, IManagedObject, IModel, IModelRO, IMVCObject, IEditorModelRO, IRepostModel

public class AuditManagerModel
extends EditorModel
implements IAuditManagerModelRO

This class implements the model for the Audit Manager, which includes Audit Query Central

Author:
ErickS

Field Summary
static int intAllMessageTypes
           
static int intMaxQueryFilters
           
static int N_DATE_PICKER_PAGE_TYPE_MESSAGES
           
static int N_DATE_PICKER_PAGE_TYPE_QUERY
           
static java.lang.String STR_DELETION_DATE_PICKER_UNIQUE_ID
           
static java.lang.String STR_END_DATE_PICKER_UNIQUE_ID
           
static java.lang.String STR_MVC_CLASS_NAME
          The unique identifier for this class
static java.lang.String STR_START_DATE_PICKER_UNIQUE_ID
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
m_asOwner, m_bCloseOnDone, m_bDeleteOnCancel, m_bEnableApplyButton, m_bHideLeftNav, m_bIsEditorReadOnly, m_bUserHasAccessToEditor, m_nEditorType
 
Constructor Summary
AuditManagerModel()
           
 
Method Summary
 boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
          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 Finish()
          Implement some code to execute when the user clicks on "Finish".
 java.lang.String GetArchivePath()
           
 PTSortedArrayWrapper GetAuditMessages()
           
 JSDatePickerMgr GetDatePickerControlManager(int _nPageType)
          Returns the date-picker control manager.
 int GetDaysInDB()
           
 int GetDaysInFiles()
           
 int GetDeleteAction()
           
 int GetDeleteMessageTypeValue()
           
 java.lang.String GetItemName()
           
 int GetItemNameApproximateType()
           
 int GetItemType()
          Returns the Item Type.
 java.lang.String GetMessageTypeAsString(int _nMessageTypeID)
          Returns the Message Type String given the ID.
 int GetMessageTypeValue()
           
 java.lang.String GetName()
          Returns the Class name.
 int GetQueryCount()
           
 int GetQueryMessageTypeValue()
           
 int GetResultsPerPage()
           
 java.lang.String GetServerName()
           
 int GetServerNameApproximateType()
           
 int GetSkipMessages()
           
 int GetSortType()
           
 java.lang.String GetUserName()
           
 int GetUserNameApproximateType()
           
 java.lang.String GetWordInMessage()
           
 void Init(AActivitySpace parent)
          Inits the Model with the Activity Space.
 void RepostQueryResultPageOnNext()
           
 void RepostQueryResultPageOnPrevious()
           
 int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
          Calls the right save function according to the page name passed in argument.
 void SetArchivePath(java.lang.String strArchivePath)
           
 void SetDaysInDB(int iDaysInDB)
           
 void SetDaysInFiles(int iDaysInFiles)
           
 void SetDeleteAction(int iDeleteAction)
           
 void SetDeleteMessageTypeValue(int iDeleteMessageTypeValue)
           
 void SetItemName(java.lang.String strItemName)
           
 void SetItemNameApproximateType(int iItemNameApproximateType)
           
 void SetItemType(int iItemType)
           
 void SetMessageTypeValue(int iMessageTypeValue)
           
 void SetQueryCount(int iQueryCount)
           
 void SetQueryMessageTypeValue(int iQueryMessageTypeValue)
           
 void SetResultsPerPage(int iResultsPerPage)
           
 void SetServerName(java.lang.String strServerName)
           
 void SetServerNameApproximateType(int iServerNameApproximateType)
           
 void SetSkipMessages(int iSkipMessages)
           
 void SetSortType(int iSortType)
           
 void SetUserName(java.lang.String strUserName)
           
 void SetUserNameApproximateType(int iUserNameApproximateType)
           
 void SetWordInMessage(java.lang.String strWordInMessage)
           
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorModel
Cancel, CleanupAllData, CleanupTempData, DoTaskAfterStore, DoTaskBeforeStore, DoTaskOnChangePage, DoTaskOnComeBackFromSubEditor, DoTaskOnStartEditor, GetCloseOnDone, GetCurrentRepostAction, GetDeleteOnCancel, GetEditorType, GetEnableApplyButton, GetHideLeftNav, GetIsEditorReadOnly, GetRedirectAfterFinish, GetUserHasAccessToEditor, 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_DELETION_DATE_PICKER_UNIQUE_ID

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

STR_START_DATE_PICKER_UNIQUE_ID

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

STR_END_DATE_PICKER_UNIQUE_ID

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

N_DATE_PICKER_PAGE_TYPE_MESSAGES

public static final int N_DATE_PICKER_PAGE_TYPE_MESSAGES
See Also:
Constant Field Values

N_DATE_PICKER_PAGE_TYPE_QUERY

public static final int N_DATE_PICKER_PAGE_TYPE_QUERY
See Also:
Constant Field Values

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
The unique identifier for this class

See Also:
Constant Field Values

intMaxQueryFilters

public static final int intMaxQueryFilters
See Also:
Constant Field Values

intAllMessageTypes

public static final int intAllMessageTypes
Constructor Detail

AuditManagerModel

public AuditManagerModel()
Method Detail

CheckEditorAccessAndStart

public boolean CheckEditorAccessAndStart(XPHashtable _htFormData)
Implements some actions to perform on start.

Specified by:
CheckEditorAccessAndStart in class EditorModel
Parameters:
_htFormData -
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()
Implement some code to execute when the user clicks on "Finish".

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

GetAuditMessages

public PTSortedArrayWrapper GetAuditMessages()
Specified by:
GetAuditMessages in interface IAuditManagerModelRO
Returns:

GetDatePickerControlManager

public JSDatePickerMgr GetDatePickerControlManager(int _nPageType)
Returns the date-picker control manager.

Specified by:
GetDatePickerControlManager in interface IAuditManagerModelRO
Returns:
The date-picker control manager.

GetItemName

public java.lang.String GetItemName()
Specified by:
GetItemName in interface IAuditManagerModelRO
Returns:

GetItemNameApproximateType

public int GetItemNameApproximateType()
Specified by:
GetItemNameApproximateType in interface IAuditManagerModelRO
Returns:

GetItemType

public int GetItemType()
Description copied from interface: IAuditManagerModelRO
Returns the Item Type.

Specified by:
GetItemType in interface IAuditManagerModelRO
Returns:

GetMessageTypeValue

public int GetMessageTypeValue()
Specified by:
GetMessageTypeValue in interface IAuditManagerModelRO
Returns:

GetQueryMessageTypeValue

public int GetQueryMessageTypeValue()
Specified by:
GetQueryMessageTypeValue in interface IAuditManagerModelRO
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

GetQueryCount

public int GetQueryCount()
Specified by:
GetQueryCount in interface IAuditManagerModelRO
Returns:

GetResultsPerPage

public int GetResultsPerPage()
Specified by:
GetResultsPerPage in interface IAuditManagerModelRO
Returns:

GetServerName

public java.lang.String GetServerName()
Specified by:
GetServerName in interface IAuditManagerModelRO
Returns:

GetServerNameApproximateType

public int GetServerNameApproximateType()
Specified by:
GetServerNameApproximateType in interface IAuditManagerModelRO
Returns:

GetSkipMessages

public int GetSkipMessages()
Specified by:
GetSkipMessages in interface IAuditManagerModelRO
Returns:

GetSortType

public int GetSortType()
Specified by:
GetSortType in interface IAuditManagerModelRO
Returns:

GetUserName

public java.lang.String GetUserName()
Specified by:
GetUserName in interface IAuditManagerModelRO
Returns:

GetUserNameApproximateType

public int GetUserNameApproximateType()
Specified by:
GetUserNameApproximateType in interface IAuditManagerModelRO
Returns:

GetWordInMessage

public java.lang.String GetWordInMessage()
Specified by:
GetWordInMessage in interface IAuditManagerModelRO
Returns:

GetArchivePath

public java.lang.String GetArchivePath()
Specified by:
GetArchivePath in interface IAuditManagerModelRO
Returns:

GetDaysInDB

public int GetDaysInDB()
Specified by:
GetDaysInDB in interface IAuditManagerModelRO
Returns:

GetDaysInFiles

public int GetDaysInFiles()
Specified by:
GetDaysInFiles in interface IAuditManagerModelRO
Returns:

GetDeleteAction

public int GetDeleteAction()
Specified by:
GetDeleteAction in interface IAuditManagerModelRO
Returns:

GetDeleteMessageTypeValue

public int GetDeleteMessageTypeValue()
Specified by:
GetDeleteMessageTypeValue in interface IAuditManagerModelRO
Returns:

Init

public void Init(AActivitySpace parent)
Description copied from class: EditorModel
Inits the Model with the Activity Space.

Specified by:
Init in interface IModel
Overrides:
Init in class EditorModel
Parameters:
parent -

RepostQueryResultPageOnNext

public void RepostQueryResultPageOnNext()

RepostQueryResultPageOnPrevious

public void RepostQueryResultPageOnPrevious()

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

SetArchivePath

public void SetArchivePath(java.lang.String strArchivePath)
Parameters:
strArchivePath -

SetDaysInDB

public void SetDaysInDB(int iDaysInDB)
Parameters:
iDaysInDB -

SetDaysInFiles

public void SetDaysInFiles(int iDaysInFiles)
Parameters:
iDaysInFiles -

SetDeleteAction

public void SetDeleteAction(int iDeleteAction)
Parameters:
iDeleteAction -

SetDeleteMessageTypeValue

public void SetDeleteMessageTypeValue(int iDeleteMessageTypeValue)
Parameters:
iDeleteMessageTypeValue -

SetMessageTypeValue

public void SetMessageTypeValue(int iMessageTypeValue)
Parameters:
iMessageTypeValue -

SetQueryMessageTypeValue

public void SetQueryMessageTypeValue(int iQueryMessageTypeValue)
Parameters:
iQueryMessageTypeValue -

SetItemName

public void SetItemName(java.lang.String strItemName)
Parameters:
strItemName -

SetItemNameApproximateType

public void SetItemNameApproximateType(int iItemNameApproximateType)
Parameters:
iItemNameApproximateType -

SetItemType

public void SetItemType(int iItemType)
Parameters:
iItemType -

SetQueryCount

public void SetQueryCount(int iQueryCount)
Parameters:
iQueryCount -

SetResultsPerPage

public void SetResultsPerPage(int iResultsPerPage)
Parameters:
iResultsPerPage -

SetServerName

public void SetServerName(java.lang.String strServerName)
Parameters:
strServerName -

SetServerNameApproximateType

public void SetServerNameApproximateType(int iServerNameApproximateType)
Parameters:
iServerNameApproximateType -

SetSkipMessages

public void SetSkipMessages(int iSkipMessages)
Parameters:
iSkipMessages -

SetSortType

public void SetSortType(int iSortType)
Parameters:
iSortType -

SetUserName

public void SetUserName(java.lang.String strUserName)
Parameters:
strUserName -

SetUserNameApproximateType

public void SetUserNameApproximateType(int iUserNameApproximateType)
Parameters:
iUserNameApproximateType -

SetWordInMessage

public void SetWordInMessage(java.lang.String strWordInMessage)
Parameters:
strWordInMessage -

GetMessageTypeAsString

public java.lang.String GetMessageTypeAsString(int _nMessageTypeID)
Returns the Message Type String given the ID.

Specified by:
GetMessageTypeAsString in interface IAuditManagerModelRO
Parameters:
_nMessageTypeID - Message Type as ID.
Returns:
Message Type as String.



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