public class GUIConfigurationExt
extends com.centrasite.configuration.gui.GUIConfiguration
Handle the reading, storage and access of user specific configuration values.
The user specific configuration file will be stored in WebDAV to the path:
/projects/CentraSite/Control/users/{username}/GUIConfiguration.xml.
This allows us to store user settings such as:
Example configuration:
<GUIConfiguration>
<View>Technical</View>
<UDDI>
<URL>X:1</URL>
<URL>X:2</URL>
</UDDI>
<Report>
<SomeRep>
<Column-A>
<Width>0.7</Width>
<Selected>true</Selected>
</Column-A>
<Column-B>
<Width>0.3</Width>
<Selected>false</Selected>
</Column-B>
</SomeRep>
</Report>
</GUIConfiguration>
Modifier and Type | Field and Description |
---|---|
static int |
BOX_WIDTH_DEFAULT_VALUE |
static java.lang.String |
rcs_id |
Constructor and Description |
---|
GUIConfigurationExt(Credentials credentials,
com.centrasite.util.RepositoryConnector repoConnector,
com.centrasite.configuration.gui.GuiConfigurationInfo info)
Get the GUI configuration properties from WebDAV for the specified user.
|
Modifier and Type | Method and Description |
---|---|
void |
addUDDIUrl(java.lang.String url)
Add entry to list of UDDI URLs.
|
int |
getBoxWidth()
Return the width of boxes to be displayed in Graphical Impact Analysis
|
boolean |
getReportColumnSelected(ReportInterface ri,
java.lang.String column)
Is the specified column selected for viewing?
|
double |
getReportColumnWidth(ReportInterface ri,
java.lang.String column)
Get the width for the specified column.
|
boolean |
getReportExists(ReportInterface ri)
Does settings for this Report exist ?
|
boolean |
getShowDetailView()
Return the value indicating whether to display the Detail View of Graphical Impact Analysis
|
java.lang.String[] |
getUDDIUrls()
Get list of UDDI URLs.
|
java.lang.String |
getView()
Get the selected view (business/technical/administrator).
|
void |
setBoxWidth(java.lang.String boxWidthStr)
Set the width of boxes to be displayed in Graphical Impact Analysis
|
void |
setReportColumnSelected(ReportInterface ri,
java.lang.String column,
boolean selected)
Is the specified column selected for viewing?
|
void |
setReportColumnWidth(ReportInterface ri,
java.lang.String column,
double width)
Set the width for the specified column.
|
void |
setShowDetailView(boolean showDetailView)
Set the value indicating whether to display the Detail View of Graphical Impact Analysis
|
void |
setUDDIUrls(java.lang.String[] urls)
Set list of UDDI URLs.
|
void |
setView(java.lang.String view)
Set the selected view (business/technical/administrator).
|
getLanguage, getLastUsedBrowseByOption, getLastUsedImpactAnalysisFilter, getLastUsedTypeSelection, getPointSeparator, getTimeZone, getTimeZoneID, getTypesColumnCollabsable, getUserDateFormat, getUserLocale, getUserStarterPage, getUserTimeFormat, setLanguage, setLastUsedBrowseByOption, setLastUsedImpactAnalysisFilter, setLastUsedTypeSelection, setPointSeparator, setTimeZone, setTimeZoneID, setTypesColumnCollabsable, setUserDateFormat, setUserLocale, setUserStarterPage, setUserTimeFormat
public static final java.lang.String rcs_id
public static final int BOX_WIDTH_DEFAULT_VALUE
public GUIConfigurationExt(Credentials credentials, com.centrasite.util.RepositoryConnector repoConnector, com.centrasite.configuration.gui.GuiConfigurationInfo info)
credentials
- user's credentials (domain, name, password)repoConnector
- RepositoryConnectorlocale
- locale for error messages/exceptionsjava.lang.RuntimeException
- if a WebDAV error, IO or XML parsing error occurspublic java.lang.String getView()
public void setView(java.lang.String view)
view
- selected viewpublic java.lang.String[] getUDDIUrls()
public void setUDDIUrls(java.lang.String[] urls)
urls
- list of urls (maybe empty but not null)public void addUDDIUrl(java.lang.String url)
url
- to be added - will be ignored if already in listpublic boolean getReportExists(ReportInterface ri)
ri
- report being checkedpublic boolean getReportColumnSelected(ReportInterface ri, java.lang.String column)
ri
- report being checkedcolumn
- column namepublic void setReportColumnSelected(ReportInterface ri, java.lang.String column, boolean selected)
ri
- report being checkedcolumn
- column nameselected
- true if selected otherwise falsepublic double getReportColumnWidth(ReportInterface ri, java.lang.String column)
ri
- report being checkedcolumn
- column namepublic void setReportColumnWidth(ReportInterface ri, java.lang.String column, double width)
ri
- report being checkedcolumn
- column namewidth
- column width (relative not absolute)public void setShowDetailView(boolean showDetailView)
public boolean getShowDetailView() throws WvcmException
WvcmException
public void setBoxWidth(java.lang.String boxWidthStr)
public int getBoxWidth()
WvcmException