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 Object
implements com.google.gwt.user.client.rpc.IsSerializable
A collection of historical versions of a resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CmsHistoryResourceBean historyBean) Adds the information for a historical resource version.Gets the information bean for the current resource version.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 Details
-
CmsHistoryResourceCollection
public CmsHistoryResourceCollection()Creates a new instance.
-
-
Method Details
-
getContentInfo
Gets the information bean for the current resource version.- Returns:
- the information bean for the current version
-
getResources
Gets the list of historical versions.- Returns:
- the list of historical versions
-
isEmpty
Returns true if there are no historical versions.- Returns:
- true if there are no historical versions