Agentflow
V3.1

pe.pase
Class UserConfig

java.lang.Object
  extended by pe.pase.UserConfig
All Implemented Interfaces:
java.io.Serializable

public class UserConfig
extends java.lang.Object
implements java.io.Serializable

The class holds the information of user config.

Version:
1.1.5,
Author:
Mars
See Also:
Serialized Form

Constructor Summary
UserConfig()
          Constructor.
 
Method Summary
 boolean getAdjustPage()
           
 boolean getAutoLogout()
          Get the auto-logout.
 boolean getLogoutArtSave()
          Get the setting of "logout artifact save"
 MonitorFilterCondition getMFC()
          Get the monitor filter condition
 boolean getNewPASEMessageNotify()
          Get the setting of "new PASEMessage notify"
 boolean getNewTaskNotify()
          Get the setting of "new task notify"
 java.lang.String getPageFormatStr()
          Get the page format string.
 java.lang.String getPageSizeName()
          Get the page size name for printing.
 boolean getPrintFooter()
          Get print footer.
 java.lang.String getPrintMode()
          Get print mode
 java.lang.String getPrintPage()
          Get the print page
 boolean getTFSearchDir()
          Get the search direction of task frame
 int getTFSearchFld()
          Get the search field of task frame
 java.lang.String getTFSearchKey()
          Get the search keyword of task frame
 int getTimeOut()
          Get time out value
 boolean getUnreadPASEMessageNotify()
          Get the setting of "unread PASEMessage notify"
 java.lang.String getWebSkinName()
          Get skinname config(for WebAgenda)
 boolean isBtnCmpHidden()
          Is button component on the Form beging hidden while printing the Form.
 boolean isPdfTextAntialiasOff()
           
 java.lang.String packConfig()
          Pack the config into a config string.
 void parseConfig(java.lang.String config)
          Parse the config string and set these config.
 void setAdjustPage(boolean bAdj)
           
 void setAutoLogout(boolean autoLogout)
          Set the auto-logout.
 void setBtnCmpHidden(boolean aHideBtnCmp)
          Set the button component on the Form beging hidden or not while printing the Form.
 void setLogoutArtSave(boolean logoutArtSave)
          Set the setting of "logout artifact save" true the artifact will save when the user logout; false otherwise
 void setMFC(MonitorFilterCondition mfc)
          Set the monitor filter condition
 void setNewPASEMessageNotify(boolean b)
          Set the setting of "new PASEMessage notify" true the system will notify user when new PASEMessage has come; false otherwise
 void setNewTaskNotify(boolean b)
          Set the setting of "new task notify" true the system will notify user when new task has come; false otherwise
 void setPageFormatStr(java.lang.String formatStr)
          Set the page format string.
 void setPageSizeName(java.lang.String aPageSizeName)
          Set the page size name for printing.
 void setPdfTextAntialiasOff(boolean pdfTextAntialiasOff)
           
 void setPrintFooter(boolean bFooter)
          Set print footer.
 void setPrintMode(java.lang.String pm)
          Set print mode
 void setPrintPage(java.lang.String pm)
          Set the print page
 void setTFSearchDir(boolean sd)
          Set the search direction of task frame
 void setTFSearchFld(int sf)
          Set the search field of task frame
 void setTFSearchKey(java.lang.String sk)
          Set the search keyword of task frame
 void setTimeOut(int timeOut)
          Set time out value
 void setUnreadPASEMessageNotify(boolean b)
          Set the setting of "unread PASEMessage notify" true the system will notify user when unread PASEMessage has come; false otherwise
 void setWebSkinName(java.lang.String skname)
          Set skinname config(for WebAgenda)
 java.lang.String toString()
          Returns a string representation of the instance of UserConfig object
 void update(UserConfig newConfig)
          Update the data of UserConfig instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserConfig

public UserConfig()
Constructor. Construct a instance of UserConfig without parameters.

Since:
version 1.0.0
Method Detail

getAdjustPage

public boolean getAdjustPage()

getAutoLogout

public boolean getAutoLogout()
Get the auto-logout.

Returns:
true the system will auto-logout; false otherwise
Since:
version 1.0.0

getLogoutArtSave

public boolean getLogoutArtSave()
Get the setting of "logout artifact save"

Returns:
true the artifact will save when the user logout; false otherwise
Since:
version 1.0.0

getMFC

public MonitorFilterCondition getMFC()
Get the monitor filter condition

Returns:
the monitor filter condition
Since:
verion 1.0.0
See Also:
MonitorFilterCondition

getNewPASEMessageNotify

public boolean getNewPASEMessageNotify()
Get the setting of "new PASEMessage notify"

Returns:
true the system will notify user when new PASEMessage has come; false otherwise
Since:
version 1.0.0

getNewTaskNotify

public boolean getNewTaskNotify()
Get the setting of "new task notify"

Returns:
true the system will notify user when new task has come; false otherwise
Since:
version 1.0.0

getPageFormatStr

public java.lang.String getPageFormatStr()
Get the page format string. The string format is " Width,Height,ImageableX,ImageableY,ImageableWidth,ImageableHeight,Orientation".

Returns:
the page format string
Since:
version 1.0.0

getPageSizeName

public java.lang.String getPageSizeName()
Get the page size name for printing.

Returns:
page size name such as A4, A3, etc.
Since:
2.2.2.3

getPrintFooter

public boolean getPrintFooter()
Get print footer. The print footer is the page number.

Returns:
true the footer is shown; false otherwise
Since:
version 1.0.0

getPrintMode

public java.lang.String getPrintMode()
Get print mode

Returns:
the print mode (PrintingConstants.JAVA_MODE, PrintConstants.PDF_MODE, PrintConstants.JPG_FILE_MODE, PrintConstants.PDF_FILE_MODE)
Since:
version 1.0.0
See Also:
PrintingConstants

getPrintPage

public java.lang.String getPrintPage()
Get the print page

Returns:
the print page (PrintConstants.FULL_PAGE, PrintConstants.CUT_PAGE, PrintConstants.ORIGINAL_PAGE, PrintConstants.SHRINK_PAGE)
Since:
version 1.0.0
See Also:
PrintingConstants

getTFSearchDir

public boolean getTFSearchDir()
Get the search direction of task frame

Returns:
true the direction is from top to bottom; false otherwise
Since:
version 1.0.0

getTFSearchFld

public int getTFSearchFld()
Get the search field of task frame

Returns:
the search field
Since:
version 1.0.0

getTFSearchKey

public java.lang.String getTFSearchKey()
Get the search keyword of task frame

Returns:
the search keyword of task frame
Since:
version 1.0.0

getTimeOut

public int getTimeOut()
Get time out value

Returns:
the value
Since:
version 1.0.0

getUnreadPASEMessageNotify

public boolean getUnreadPASEMessageNotify()
Get the setting of "unread PASEMessage notify"

Returns:
true the system will notify user when unread PASEMessage has come; false otherwise
Since:
version 1.0.0

getWebSkinName

public java.lang.String getWebSkinName()
Get skinname config(for WebAgenda)

Returns:
the skinname config of user

isBtnCmpHidden

public boolean isBtnCmpHidden()
Is button component on the Form beging hidden while printing the Form.

Returns:
true if buttons should be hidden, else false;
Since:
2.2.2.3

isPdfTextAntialiasOff

public boolean isPdfTextAntialiasOff()

packConfig

public java.lang.String packConfig()
Pack the config into a config string. The string format is "[TFSK=value][TFSF=value][TFSD=value] [MFC=2,op,type,field,value1,value2,op,type...]" ex: [TFSK=][TFSF=0][TFSD=false][MFC=][PrintMode=null] [PrintPage=null][PrintFooter=false][AdjustPage=false] [PageFormat=595,841,42,14,496,756,1][AutoLogout=false] [NewTaskNotify=false][NewPASEMessageNotify=false] [UnreadPASEMessageNotify=false][LogoutArtSave=false] [TimeOut=0][WebSkinName=default]

Returns:
the string
Since:
version 1.0.0

parseConfig

public void parseConfig(java.lang.String config)
Parse the config string and set these config. The config string format is "[TFSK=value][TFSF=value][TFSD=value][MFC=2,op,type,field,value1,value2,op,type...]"

Parameters:
config - the given config string
Since:
version 1.0.0

setAdjustPage

public void setAdjustPage(boolean bAdj)

setAutoLogout

public void setAutoLogout(boolean autoLogout)
Set the auto-logout. true the system will auto-logout; false otherwise

Parameters:
autoLogout - the given boolean value
Since:
version 1.0.0

setBtnCmpHidden

public void setBtnCmpHidden(boolean aHideBtnCmp)
Set the button component on the Form beging hidden or not while printing the Form.

Parameters:
aHideBtnCmp -
Since:
2.2.2.3

setLogoutArtSave

public void setLogoutArtSave(boolean logoutArtSave)
Set the setting of "logout artifact save" true the artifact will save when the user logout; false otherwise

Parameters:
logoutArtSave - the given boolean value
Since:
version 1.0.0

setMFC

public void setMFC(MonitorFilterCondition mfc)
Set the monitor filter condition

Parameters:
mfc - the given monitor filter condition
Since:
version 1.0.0
See Also:
MonitorFilterCondition

setNewPASEMessageNotify

public void setNewPASEMessageNotify(boolean b)
Set the setting of "new PASEMessage notify" true the system will notify user when new PASEMessage has come; false otherwise

Parameters:
b - the given boolean value
Since:
version 1.0.0

setNewTaskNotify

public void setNewTaskNotify(boolean b)
Set the setting of "new task notify" true the system will notify user when new task has come; false otherwise

Parameters:
b - the given boolean value
Since:
version 1.0.0

setPageFormatStr

public void setPageFormatStr(java.lang.String formatStr)
Set the page format string.

Parameters:
formatStr - the given string
Since:
version 1.0.0

setPageSizeName

public void setPageSizeName(java.lang.String aPageSizeName)
Set the page size name for printing.

Parameters:
aPageSizeName -
Since:
2.2.2.3

setPdfTextAntialiasOff

public void setPdfTextAntialiasOff(boolean pdfTextAntialiasOff)

setPrintFooter

public void setPrintFooter(boolean bFooter)
Set print footer. The print footer is the page numbwe.

Parameters:
bFooter - the given boolean value
Since:
version 1.0.0

setPrintMode

public void setPrintMode(java.lang.String pm)
Set print mode

Parameters:
pm - the given print mode
Since:
version 1.0.0

setPrintPage

public void setPrintPage(java.lang.String pm)
Set the print page

Parameters:
pm - the given print page
Since:
version 1.0.0

setTFSearchDir

public void setTFSearchDir(boolean sd)
Set the search direction of task frame

Parameters:
sd - the given boolean value
Since:
version 1.0.0

setTFSearchFld

public void setTFSearchFld(int sf)
Set the search field of task frame

Parameters:
sf - the given search field of task frame
Since:
version 1.0.0

setTFSearchKey

public void setTFSearchKey(java.lang.String sk)
Set the search keyword of task frame

Parameters:
sk - the given search keyword
Since:
version 1.0.0

setTimeOut

public void setTimeOut(int timeOut)
Set time out value

Parameters:
timeOut - the given value
Since:
version 1.0.0

setUnreadPASEMessageNotify

public void setUnreadPASEMessageNotify(boolean b)
Set the setting of "unread PASEMessage notify" true the system will notify user when unread PASEMessage has come; false otherwise

Parameters:
b - the given boolean value
Since:
version 1.0.0

setWebSkinName

public void setWebSkinName(java.lang.String skname)
Set skinname config(for WebAgenda)

Parameters:
skname - the skinname

toString

public java.lang.String toString()
Returns a string representation of the instance of UserConfig object

Overrides:
toString in class java.lang.Object
Returns:
"m_printMode=[print mode],m_printPage=[print page],m_printFooter=[print footer],m_pageForamtStr=[page format string],m_autoLogout=[auto-logout],m_newTaskNotify=[new task notify],m_logoutArtSave=[logout artifact save],m_TimeOut=[timeout]"
Since:
version 1.0.0

update

public void update(UserConfig newConfig)
Update the data of UserConfig instance.

Parameters:
newConfig - the given UserConfig instance
Since:
version 1.0.0

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.