org.rhq.enterprise.gui.inventory.resource
Class ResourceUIBean

java.lang.Object
  extended by org.rhq.enterprise.gui.inventory.resource.ResourceUIBean

@Name(value="ResourceUIBean")
@Scope(value=EVENT)
public class ResourceUIBean
extends Object

A JSF managed bean that represents a RHQ resource. In addition to exposing the core Resource properties, it also exposes the resource's parent, facets and the current user's implicit permissions for that resource. Note: This bean is only intended for reading this information, not updating it.

Author:
Ian Springer

Field Summary
protected  org.apache.commons.logging.Log log
           
static String MANAGED_BEAN_NAME
           
 
Constructor Summary
ResourceUIBean()
           
ResourceUIBean(org.rhq.core.domain.resource.Resource resource)
           
ResourceUIBean(org.rhq.core.domain.resource.Resource resource, org.rhq.core.domain.auth.Subject subject)
           
 
Method Summary
 org.rhq.core.domain.resource.composite.ResourceAvailabilitySummary getAvailabilitySummary()
           
 org.rhq.core.domain.measurement.AvailabilityType getAvailabilityType()
           
 long getCtime()
           
 String getDescription()
           
 org.rhq.core.domain.resource.composite.ResourceFacets getFacets()
           
 int getId()
           
 org.rhq.core.domain.resource.ResourceError getInvalidPluginConfigurationError()
           
 org.rhq.core.domain.resource.InventoryStatus getInventoryStatus()
           
 String getLocation()
           
 String getMessage()
           
 String getModifiedBy()
           
 long getMtime()
           
 String getName()
           
 org.rhq.core.domain.resource.Resource getParent()
           
 org.rhq.core.domain.resource.composite.ResourcePermission getPermissions()
           
 String getResourceKey()
           
 org.rhq.core.domain.resource.ResourceType getResourceType()
           
 List<org.rhq.enterprise.server.perspective.Tab> getTabs()
           
 TemplateEngine getTemplateEngine()
           
 String getUuid()
           
 String getVersion()
           
 boolean isCanShowParent()
           
 boolean isConnected()
           
 void setMessage(String message)
           
 void setTemplateEngine(TemplateEngine templateEngine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log

MANAGED_BEAN_NAME

public static final String MANAGED_BEAN_NAME
See Also:
Constant Field Values
Constructor Detail

ResourceUIBean

public ResourceUIBean()

ResourceUIBean

public ResourceUIBean(org.rhq.core.domain.resource.Resource resource)

ResourceUIBean

public ResourceUIBean(org.rhq.core.domain.resource.Resource resource,
                      org.rhq.core.domain.auth.Subject subject)
Method Detail

getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getId

public int getId()

getUuid

public String getUuid()

getName

@NotNull
public String getName()

getResourceKey

public String getResourceKey()

getResourceType

public org.rhq.core.domain.resource.ResourceType getResourceType()

getInventoryStatus

public org.rhq.core.domain.resource.InventoryStatus getInventoryStatus()

isConnected

public boolean isConnected()

getVersion

public String getVersion()

getDescription

public String getDescription()

getCtime

public long getCtime()

getMtime

public long getMtime()

getModifiedBy

public String getModifiedBy()

getLocation

public String getLocation()

getParent

public org.rhq.core.domain.resource.Resource getParent()

getPermissions

public org.rhq.core.domain.resource.composite.ResourcePermission getPermissions()

getFacets

public org.rhq.core.domain.resource.composite.ResourceFacets getFacets()

getTabs

public List<org.rhq.enterprise.server.perspective.Tab> getTabs()

getInvalidPluginConfigurationError

@Nullable
public org.rhq.core.domain.resource.ResourceError getInvalidPluginConfigurationError()

getAvailabilityType

public org.rhq.core.domain.measurement.AvailabilityType getAvailabilityType()

getAvailabilitySummary

public org.rhq.core.domain.resource.composite.ResourceAvailabilitySummary getAvailabilitySummary()

isCanShowParent

public boolean isCanShowParent()

getTemplateEngine

public TemplateEngine getTemplateEngine()

setTemplateEngine

public void setTemplateEngine(TemplateEngine templateEngine)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.