Package org.opencms.gwt.shared
Class CmsHistoryResourceCollection
- java.lang.Object
-
- org.opencms.gwt.shared.CmsHistoryResourceCollection
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsHistoryResourceCollection extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
A collection of historical versions of a resource.
-
-
Constructor Summary
Constructors Constructor Description CmsHistoryResourceCollection()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CmsHistoryResourceBean historyBean)
Adds the information for a historical resource version.CmsListInfoBean
getContentInfo()
Gets the information bean for the current resource version.java.util.List<CmsHistoryResourceBean>
getResources()
Gets the list of historical versions.boolean
isEmpty()
Returns true if there are no historical versions.void
setContentInfo(CmsListInfoBean contentInfo)
Sets the content information for the current version.
-
-
-
Constructor Detail
-
CmsHistoryResourceCollection
public CmsHistoryResourceCollection()
Creates a new instance.
-
-
Method Detail
-
add
public void add(CmsHistoryResourceBean historyBean)
Adds the information for a historical resource version.- Parameters:
historyBean
- bean representing a historical resource version
-
getContentInfo
public CmsListInfoBean getContentInfo()
Gets the information bean for the current resource version.- Returns:
- the information bean for the current version
-
getResources
public java.util.List<CmsHistoryResourceBean> getResources()
Gets the list of historical versions.- Returns:
- the list of historical versions
-
isEmpty
public boolean isEmpty()
Returns true if there are no historical versions.- Returns:
- true if there are no historical versions
-
setContentInfo
public void setContentInfo(CmsListInfoBean contentInfo)
Sets the content information for the current version.- Parameters:
contentInfo
- the content information
-
-