public class ResourceConfigurationViewer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
initialized |
protected WebUser |
loggedInUser |
static boolean |
RAW_MODE |
protected Collection<RawConfigDirectory> |
rawConfigDirectories |
protected org.rhq.core.domain.configuration.Configuration |
resourceConfiguration |
protected org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
resourceConfigurationDefinition |
protected Integer |
resourceId |
protected RawConfigUIBean |
selectedRawUIBean |
static boolean |
STRUCTURED_MODE |
| Constructor and Description |
|---|
ResourceConfigurationViewer() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeTabs(javax.faces.event.ValueChangeEvent event) |
protected void |
changeToRawTab() |
protected void |
changeToStructuredTab() |
protected void |
doInitialization() |
String |
download() |
protected RawConfigUIBean |
findRawConfigUIBeanByPath(String path) |
String |
getModalEditorContents() |
String |
getModalEditorHeader() |
boolean |
getRenderModalEditor() |
String |
getSelectedTab() |
void |
initialize()
This method "bootstraps" the viewer/editor and the model objects used in the view.
|
protected void |
initRawConfigDirectories() |
boolean |
isInitialized() |
boolean |
isRawMode() |
boolean |
isRawSupported() |
boolean |
isStructuredAndRawSupported() |
boolean |
isStructuredMode() |
boolean |
isStructuredSupported() |
boolean |
isUpdateInProgress() |
void |
select(String path) |
void |
setSelectedTab(String tab) |
public static final boolean STRUCTURED_MODE
public static final boolean RAW_MODE
protected WebUser loggedInUser
protected org.rhq.core.domain.configuration.Configuration resourceConfiguration
protected org.rhq.core.domain.configuration.definition.ConfigurationDefinition resourceConfigurationDefinition
protected Collection<RawConfigDirectory> rawConfigDirectories
protected RawConfigUIBean selectedRawUIBean
protected Integer resourceId
protected boolean initialized
public void initialize()
This method "bootstraps" the viewer/editor and the model objects used in the view. Specifically, the resource configuration and the corresponding configuration definition are loaded from the database and are outjected for use in the view.
If the configuration definition or if the configuration fail to load for whatever reason, the initialized flag
is set to false. When the configuration definition is null a message is added to the Faces context
indicating that the resource does not expose a configuration. When the configuration is null, a message is added
to the Faces context indicating that the resource configuration has not been initialized.
protected void doInitialization()
protected void initRawConfigDirectories()
public boolean isInitialized()
public boolean isRawSupported()
true if the resource configuration supports raw only, false otherwisepublic boolean isStructuredSupported()
true if the resource configuration supports structured only, false otherwisepublic boolean isStructuredMode()
public boolean isRawMode()
public boolean getRenderModalEditor()
public boolean isStructuredAndRawSupported()
true if the resource configuration supports structured and raw, false otherwisepublic String getSelectedTab()
public void setSelectedTab(String tab)
public void changeTabs(javax.faces.event.ValueChangeEvent event)
protected void changeToRawTab()
protected void changeToStructuredTab()
public void select(String path)
protected RawConfigUIBean findRawConfigUIBeanByPath(String path)
public boolean isUpdateInProgress()
public String download()
public String getModalEditorHeader()
public String getModalEditorContents()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.