public class CmsHistoryFile extends CmsFile implements I_CmsHistoryResource
CmsResource.CmsResourceCopyMode, CmsResource.CmsResourceDeleteMode, CmsResource.CmsResourceUndoModeI_CmsResource.CmsResourceAttributeCOPY_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, TEMP_FILE_PREFIX, TOUCH_DATE_UNCHANGED, UNDO_CONTENT, UNDO_CONTENT_RECURSIVE, UNDO_MOVE_CONTENT, UNDO_MOVE_CONTENT_RECURSIVE, VFS_FOLDER_SITES, VFS_FOLDER_SYSTEMCOMPARE_DATE_LAST_MODIFIED, COMPARE_DATE_RELEASED, COMPARE_ROOT_PATH, COMPARE_ROOT_PATH_IGNORE_CASE, COMPARE_ROOT_PATH_IGNORE_CASE_FOLDERS_FIRST| Constructor and Description |
|---|
CmsHistoryFile(CmsResource resource)
Creates a dummy historical file from the given resource.
|
CmsHistoryFile(I_CmsHistoryResource resource)
Constructor from a history resource.
|
CmsHistoryFile(int publishTag,
CmsUUID structureId,
CmsUUID resourceId,
java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a clone of this Objects instance.
|
CmsUUID |
getParentId()
Returns the structure id of the parent resource.
|
int |
getPublishTag()
Returns the publish tag of this historical resource.
|
int |
getResourceVersion()
Returns the version number of the resource part for this historical resource.
|
int |
getStructureVersion()
Returns the version number of the structure part for this historical resource.
|
java.lang.String |
getUserCreatedName(CmsObject cms)
Returns the name of the user that created this resource.
|
java.lang.String |
getUserLastModifiedName(CmsObject cms)
Returns the name of the user that last modified this resource.
|
java.lang.String |
toString() |
getContents, getLength, isFile, isFolder, isTemporaryFile, setContentscheckResourceName, compareTo, equals, getCopy, getDateContent, getDateCreated, getDateExpired, getDateLastModified, getDateReleased, getExtension, getFlags, getFolderPath, getName, getName, getParentFolder, getPathLevel, getPathPart, getProjectLastModified, getResourceId, getRootPath, getSiblingCount, getState, getStructureId, getTypeId, getUserCreated, getUserLastModified, getVersion, hashCode, isExpired, isFolder, isInternal, isLabeled, isReleased, isReleasedAndNotExpired, isTemporaryFileName, isTouched, setDateExpired, setDateLastModified, setDateReleased, setFlags, setInternal, setState, setType, setUserLastModifiedfinalize, getClass, notify, notifyAll, wait, wait, waitgetVersiongetDateContent, getDateCreated, getDateExpired, getDateLastModified, getDateReleased, getFlags, getLength, getName, getProjectLastModified, getResourceId, getRootPath, getSiblingCount, getState, getStructureId, getTypeId, getUserCreated, getUserLastModified, isExpired, isFile, isFolder, isInternal, isLabeled, isReleased, isReleasedAndNotExpired, isTouchedpublic CmsHistoryFile(CmsResource resource)
resource - the resource to wrappublic CmsHistoryFile(I_CmsHistoryResource resource)
resource - the base history resourcepublic CmsHistoryFile(int publishTag, CmsUUID structureId, CmsUUID resourceId, java.lang.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)
publishTag - the publish tag of this historical resourcestructureId - the id of this resources structure recordresourceId - the id of this resources resource recordpath - the filename of this resoucetype - the type of this resourceflags - the flags of this resourceprojectId - the project id this resource was last modified instate - the state of this resourcedateCreated - the creation date of this resourceuserCreated - the id of the user who created this resourcedateLastModified - the date of the last modification of this resourceuserLastModified - the id of the user who did the last modification of this resourcedateReleased - the release date of this resourcedateExpired - the expiration date of this resourcesize - the size of the file content of this resourcedateContent - the date of the last modification of the content of this resourceversion - the version number of this resourceparentId - structure id of the parent of this historical resourcecontent - the content of this versionresourceVersion - the version number of the resource part for this historical resourcestructureVersion - the version number of the structure part for this historical resourcepublic java.lang.Object clone()
public CmsUUID getParentId()
I_CmsHistoryResourcegetParentId in interface I_CmsHistoryResourceI_CmsHistoryResource.getParentId()public int getPublishTag()
I_CmsHistoryResourcegetPublishTag in interface I_CmsHistoryResourceI_CmsHistoryResource.getPublishTag()public java.lang.String getUserCreatedName(CmsObject cms)
cms - the current cms contextpublic java.lang.String getUserLastModifiedName(CmsObject cms)
cms - the current cms contextpublic int getResourceVersion()
I_CmsHistoryResourcegetResourceVersion in interface I_CmsHistoryResourceI_CmsHistoryResource.getResourceVersion()public int getStructureVersion()
I_CmsHistoryResourcegetStructureVersion in interface I_CmsHistoryResourceI_CmsHistoryResource.getStructureVersion()public java.lang.String toString()
toString in class CmsResourceCmsResource.toString()