org.rhq.core.domain.dashboard
Class Dashboard

java.lang.Object
  extended by org.rhq.core.domain.dashboard.Dashboard
All Implemented Interfaces:
Serializable

public class Dashboard
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String CFG_BACKGROUND
           
static String CFG_COLUMNS
           
static String CFG_REFRESH_RATE
           
static String CFG_WIDTHS
           
 
Constructor Summary
Dashboard()
           
 
Method Summary
 void addPortlet(DashboardPortlet storedPortlet)
          This can be used to safely add a portlet without knowing the current portlet positioning on the Dashboard.
 void addPortlet(DashboardPortlet storedPortlet, int column, int index)
          Call this only if you are sure the column and index are valid, not already used and not leaving gaps.
 Dashboard deepCopy(boolean keepIds)
           
 DashboardCategory getCategory()
           
 int getColumns()
           
 String[] getColumnWidths()
           
 Configuration getConfiguration()
           
 ResourceGroup getGroup()
           
 int getId()
           
 String getName()
           
 Subject getOwner()
           
 Set<DashboardPortlet> getPortlets()
           
 List<DashboardPortlet> getPortlets(int column)
           
 Resource getResource()
           
 boolean isShared()
           
 boolean removePortlet(DashboardPortlet storedPortlet)
           
 void setCategory(DashboardCategory category)
           
 void setColumns(int columns)
           
 void setColumnWidths(String... columnWidths)
           
 void setConfiguration(Configuration configuration)
           
 void setGroup(ResourceGroup group)
           
 void setId(int id)
           
 void setName(String name)
           
 void setOwner(Subject owner)
           
 void setResource(Resource resource)
           
 void setShared(boolean shared)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CFG_COLUMNS

public static final String CFG_COLUMNS
See Also:
Constant Field Values

CFG_WIDTHS

public static final String CFG_WIDTHS
See Also:
Constant Field Values

CFG_BACKGROUND

public static final String CFG_BACKGROUND
See Also:
Constant Field Values

CFG_REFRESH_RATE

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

Dashboard

public Dashboard()
Method Detail

getId

public int getId()

setId

public void setId(int id)

getName

public String getName()

setName

public void setName(String name)

isShared

public boolean isShared()

setShared

public void setShared(boolean shared)

getOwner

public Subject getOwner()

setOwner

public void setOwner(Subject owner)

getCategory

public DashboardCategory getCategory()

setCategory

public void setCategory(DashboardCategory category)

getResource

public Resource getResource()

setResource

public void setResource(Resource resource)

getGroup

public ResourceGroup getGroup()

setGroup

public void setGroup(ResourceGroup group)

getColumns

public int getColumns()

setColumns

public void setColumns(int columns)

getColumnWidths

public String[] getColumnWidths()

setColumnWidths

public void setColumnWidths(String... columnWidths)

getConfiguration

public Configuration getConfiguration()

setConfiguration

public void setConfiguration(Configuration configuration)

getPortlets

public Set<DashboardPortlet> getPortlets()

getPortlets

public List<DashboardPortlet> getPortlets(int column)

removePortlet

public boolean removePortlet(DashboardPortlet storedPortlet)

addPortlet

public void addPortlet(DashboardPortlet storedPortlet)
This can be used to safely add a portlet without knowing the current portlet positioning on the Dashboard. It adds the portlet to the bottom of column with the least portlets.

Parameters:
storedPortlet, - MODIFIED with assigned column, index

addPortlet

public void addPortlet(DashboardPortlet storedPortlet,
                       int column,
                       int index)
Call this only if you are sure the column and index are valid, not already used and not leaving gaps.

Parameters:
storedPortlet, - MODIFIED with assigned column, index
column -
index -

deepCopy

public Dashboard deepCopy(boolean keepIds)


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