org.opencms.file
Class CmsBackupResource

java.lang.Object
  extended by org.opencms.file.CmsResource
      extended by org.opencms.file.CmsFile
          extended by org.opencms.file.history.CmsHistoryFile
              extended by org.opencms.file.CmsBackupResource
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, I_CmsHistoryResource

Deprecated. use CmsHistoryFile instead

public class CmsBackupResource
extends CmsHistoryFile

A backup resource for the OpenCms VFS resource history.

Backup resources are basic resources that contain additional information used to describe the backup state. Backup resource extend CmsFile since the might contain binary content, but they can also in fact be backup resources for a folder.

Backup resources contain the names of the users that created or last modified the resource as a String because a user id might have been deleted.

Since:
6.0.0
Version:
$Revision: 1.24 $
Author:
Alexander Kandzior
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opencms.file.CmsResource
CmsResource.CmsResourceCopyMode, CmsResource.CmsResourceDeleteMode, CmsResource.CmsResourceUndoMode
 
Field Summary
 
Fields inherited from class org.opencms.file.CmsResource
COMPARE_DATE_RELEASED, COMPARE_ROOT_PATH, COMPARE_ROOT_PATH_IGNORE_CASE, COMPARE_ROOT_PATH_IGNORE_CASE_FOLDERS_FIRST, COPY_AS_NEW, COPY_AS_SIBLING, COPY_PRESERVE_SIBLING, DATE_EXPIRED_DEFAULT, DATE_RELEASED_DEFAULT, DATE_RELEASED_EXPIRED_IGNORE, DELETE_PRESERVE_SIBLINGS, DELETE_REMOVE_SIBLINGS, FLAG_INTERNAL, FLAG_LABELED, FLAG_TEMPFILE, m_dateContent, m_length, NAME_CONSTRAINTS, STATE_CHANGED, STATE_DELETED, STATE_KEEP, STATE_NEW, STATE_UNCHANGED, TOUCH_DATE_UNCHANGED, UNDO_CONTENT, UNDO_CONTENT_RECURSIVE, UNDO_MOVE_CONTENT, UNDO_MOVE_CONTENT_RECURSIVE, VFS_FOLDER_SITES, VFS_FOLDER_SYSTEM
 
Constructor Summary
CmsBackupResource(CmsUUID backupId, int tagId, int version, CmsUUID structureId, CmsUUID resourceId, java.lang.String path, int type, int flags, CmsUUID projectId, CmsResourceState state, long dateCreated, CmsUUID userCreated, java.lang.String userCreatedName, long dateLastModified, CmsUUID userLastModified, java.lang.String userLastModifiedName, long dateReleased, long dateExpired, int size, long dateContent, CmsUUID parentId, byte[] content)
          Deprecated. Constructor, creates a new CmsBackupResource object.
 
Method Summary
 CmsUUID getBackupId()
          Deprecated. Returns the history id of this historical resource.
 java.lang.String getCreatedByName()
          Deprecated. Returns the user name of the creator of this historical resource.
 java.lang.String getLastModifiedByName()
          Deprecated. Returns the name of the user who last changed this historical resource.
 
Methods inherited from class org.opencms.file.history.CmsHistoryFile
clone, getParentId, getPublishTag, getPublishTagId, getResourceVersion, getStructureVersion, getUserCreatedName, getUserLastModifiedName, toString
 
Methods inherited from class org.opencms.file.CmsFile
getContents, getLength, isFile, isFolder, setContents, upgrade
 
Methods inherited from class org.opencms.file.CmsResource
checkResourceName, compareTo, equals, getDateContent, getDateCreated, getDateExpired, getDateLastModified, getDateReleased, getFlags, getFolderPath, getName, getName, getParentFolder, getPathLevel, getPathPart, getProjectLastModified, getResourceId, getRootPath, getSiblingCount, getState, getStructureId, getTypeId, getUserCreated, getUserLastModified, getVersion, hashCode, isExpired, isFolder, isInternal, isLabeled, isReleased, isReleasedAndNotExpired, isTouched, setDateExpired, setDateLastModified, setDateReleased, setFlags, setState, setType, setUserLastModified
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opencms.file.history.I_CmsHistoryResource
getDateContent, getDateCreated, getDateExpired, getDateLastModified, getDateReleased, getFlags, getLength, getName, getProjectLastModified, getResourceId, getRootPath, getSiblingCount, getState, getStructureId, getTypeId, getUserCreated, getUserLastModified, getVersion, isExpired, isFile, isFolder, isInternal, isLabeled, isReleased, isReleasedAndNotExpired, isTouched
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

CmsBackupResource

public CmsBackupResource(CmsUUID backupId,
                         int tagId,
                         int version,
                         CmsUUID structureId,
                         CmsUUID resourceId,
                         java.lang.String path,
                         int type,
                         int flags,
                         CmsUUID projectId,
                         CmsResourceState state,
                         long dateCreated,
                         CmsUUID userCreated,
                         java.lang.String userCreatedName,
                         long dateLastModified,
                         CmsUUID userLastModified,
                         java.lang.String userLastModifiedName,
                         long dateReleased,
                         long dateExpired,
                         int size,
                         long dateContent,
                         CmsUUID parentId,
                         byte[] content)
Deprecated. 
Constructor, creates a new CmsBackupResource object.

Parameters:
backupId - the backup id of this backup resource
tagId - the tag id of this backup resource
version - the version of this backup 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
userCreatedName - the name 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
userLastModifiedName - the name 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
parentId - structure id of the parent of this historical resource
content - the binary content data of this file
Method Detail

getBackupId

public CmsUUID getBackupId()
Deprecated. 
Description copied from interface: I_CmsHistoryResource
Returns the history id of this historical resource.

Specified by:
getBackupId in interface I_CmsHistoryResource
Overrides:
getBackupId in class CmsHistoryFile
Returns:
the history id of this historical resource
See Also:
CmsHistoryFile.getBackupId()

getCreatedByName

public java.lang.String getCreatedByName()
Deprecated. 
Description copied from interface: I_CmsHistoryResource
Returns the user name of the creator of this historical resource.

Specified by:
getCreatedByName in interface I_CmsHistoryResource
Overrides:
getCreatedByName in class CmsHistoryFile
Returns:
the user name of the creator of this historical resource
See Also:
CmsHistoryFile.getCreatedByName()

getLastModifiedByName

public java.lang.String getLastModifiedByName()
Deprecated. 
Description copied from interface: I_CmsHistoryResource
Returns the name of the user who last changed this historical resource.

Specified by:
getLastModifiedByName in interface I_CmsHistoryResource
Overrides:
getLastModifiedByName in class CmsHistoryFile
Returns:
the name of the user who last changed this historical resource
See Also:
CmsHistoryFile.getLastModifiedByName()