Class CmsHistoryFile

All Implemented Interfaces:
Serializable, Cloneable, Comparable<I_CmsResource>, I_CmsHistoryResource, I_CmsResource

public class CmsHistoryFile extends CmsFile implements I_CmsHistoryResource
A historical version of a file in the OpenCms VFS resource history.

Since:
6.9.1
See Also:
  • Constructor Details

    • CmsHistoryFile

      public CmsHistoryFile(CmsResource resource)
      Creates a dummy historical file from the given resource.

      Parameters:
      resource - the resource to wrap
    • CmsHistoryFile

      Constructor from a history resource.

      Parameters:
      resource - the base history resource
    • CmsHistoryFile

      public CmsHistoryFile(int publishTag, CmsUUID structureId, CmsUUID resourceId, String path, int type, int flags, CmsUUID projectId, CmsResourceState state, long dateCreated, CmsUUID userCreated, long dateLastModified, CmsUUID userLastModified, long dateReleased, long dateExpired, int size, long dateContent, int version, CmsUUID parentId, byte[] content, int resourceVersion, int structureVersion)
      Default Constructor.

      Parameters:
      publishTag - the publish tag of this historical resource
      structureId - the id of this resources structure record
      resourceId - the id of this resources resource record
      path - the filename of this resouce
      type - the type of this resource
      flags - the flags of this resource
      projectId - the project id this resource was last modified in
      state - the state of this resource
      dateCreated - the creation date of this resource
      userCreated - the id of the user who created this resource
      dateLastModified - the date of the last modification of this resource
      userLastModified - the id of the user who did the last modification of this resource
      dateReleased - the release date of this resource
      dateExpired - the expiration date of this resource
      size - the size of the file content of this resource
      dateContent - the date of the last modification of the content of this resource
      version - the version number of this resource
      parentId - structure id of the parent of this historical resource
      content - the content of this version
      resourceVersion - the version number of the resource part for this historical resource
      structureVersion - the version number of the structure part for this historical resource
  • Method Details