org.rhq.enterprise.gui.content
Class ListPackageHistoryUIBean

java.lang.Object
  extended by org.rhq.enterprise.gui.common.framework.EnterpriseFacesContextUIBean
      extended by org.rhq.enterprise.gui.common.framework.PagedDataTableUIBean
          extended by org.rhq.enterprise.gui.content.ListPackageHistoryUIBean

public class ListPackageHistoryUIBean
extends PagedDataTableUIBean

Bean used to handle artifact revision requests.

Author:
Jason Dobies

Nested Class Summary
 class ListPackageHistoryUIBean.PackageTableDataValue
          Holder class used to combine first class revision data (i.e.
 
Field Summary
 
Fields inherited from class org.rhq.enterprise.gui.common.framework.PagedDataTableUIBean
dataModel
 
Fields inherited from class org.rhq.enterprise.gui.common.framework.EnterpriseFacesContextUIBean
OUTCOME_CANCELLED, OUTCOME_CREATE, OUTCOME_EDIT, OUTCOME_FAILURE, OUTCOME_SAVE, OUTCOME_SUCCESS
 
Constructor Summary
ListPackageHistoryUIBean()
           
 
Method Summary
 org.rhq.core.domain.content.InstalledPackage getCurrentPackage()
           
 javax.faces.model.DataModel getDataModel()
           
 List<ListPackageHistoryUIBean.PackageTableDataValue> getPackageValues()
          Wraps the package values side by side with an older package if one was selected so they can be displayed in the same table.
 void loadCurrentPackage()
          Lazily loads the current package referenced in the request into this instance of the bean.
 
Methods inherited from class org.rhq.enterprise.gui.common.framework.PagedDataTableUIBean
clearDataModel, getDatascroller, getDataTable, getDefaultPageControl, getMinimumPageSize, getPageControl, getPageSizes, setDataModel, setDatascroller, setDataTable, setPageControl
 
Methods inherited from class org.rhq.enterprise.gui.common.framework.EnterpriseFacesContextUIBean
getResource, getResourceGroup, getResourceType, getSubject, getWebUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListPackageHistoryUIBean

public ListPackageHistoryUIBean()
Method Detail

getCurrentPackage

public org.rhq.core.domain.content.InstalledPackage getCurrentPackage()

getPackageValues

public List<ListPackageHistoryUIBean.PackageTableDataValue> getPackageValues()
Wraps the package values side by side with an older package if one was selected so they can be displayed in the same table. We no longer support comparing old and new packages since InstalledPackage no longer keeps any form of historical data. This still remains in case we decide to port it later to support comparing versions.

Returns:

getDataModel

public javax.faces.model.DataModel getDataModel()
Specified by:
getDataModel in class PagedDataTableUIBean

loadCurrentPackage

public void loadCurrentPackage()
Lazily loads the current package referenced in the request into this instance of the bean.



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