org.rhq.core.domain.common
Class ServerDetails

java.lang.Object
  extended by org.rhq.core.domain.common.ServerDetails
All Implemented Interfaces:
Serializable

public class ServerDetails
extends Object
implements Serializable

Provides simple strings to describe certain server details, useful for end users that have a need to see this data. This is meant to be used as a read-only pojo to be shared to clients. Some of the fields in this pojo may be empty if the user didn't have permissions to see those fields.

See Also:
Serialized Form

Nested Class Summary
static class ServerDetails.Detail
           
 
Constructor Summary
ServerDetails()
           
 
Method Summary
 HashMap<ServerDetails.Detail,String> getDetails()
          Returns details about the server that returned this object.
 ProductInfo getProductInfo()
           
 void setDetails(HashMap<ServerDetails.Detail,String> details)
           
 void setProductInfo(ProductInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerDetails

public ServerDetails()
Method Detail

getProductInfo

public ProductInfo getProductInfo()
Returns:
information about the product itself (like its version).

setProductInfo

public void setProductInfo(ProductInfo info)

getDetails

public HashMap<ServerDetails.Detail,String> getDetails()
Returns details about the server that returned this object. The keys are one of the ServerDetails.Detail enums. You are not guaranteed to have all details in the returned map; if the user doesn't have the permissions necessary, some details will not be available.


setDetails

public void setDetails(HashMap<ServerDetails.Detail,String> details)


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