|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.file.CmsResource
org.opencms.file.CmsFile
org.opencms.file.history.CmsHistoryFile
public class CmsHistoryFile
A historical version of a file in the OpenCms VFS resource history.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.opencms.file.CmsResource |
|---|
CmsResource.CmsResourceCopyMode, CmsResource.CmsResourceDeleteMode, CmsResource.CmsResourceUndoMode |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this Objects instance. |
CmsUUID |
getBackupId()
Deprecated. this field has been removed |
java.lang.String |
getCreatedByName()
Deprecated. use getUserCreatedName(CmsObject) instead |
java.lang.String |
getLastModifiedByName()
Deprecated. use getUserLastModifiedName(CmsObject) instead |
CmsUUID |
getParentId()
Returns the structure id of the parent resource. |
int |
getPublishTag()
Returns the publish tag of this historical resource. |
int |
getPublishTagId()
Deprecated. use getPublishTag() instead |
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()
|
| Methods inherited from class org.opencms.file.CmsFile |
|---|
getContents, getLength, isFile, isFolder, setContents, upgrade |
| 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 |
|---|
public CmsHistoryFile(CmsResource resource)
resource - the resource to wrappublic CmsHistoryFile(I_CmsHistoryResource resource)
resource - the base history resource
public 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 resource| Method Detail |
|---|
public java.lang.Object clone()
clone in class CmsFilepublic CmsUUID getBackupId()
I_CmsHistoryResource
getBackupId in interface I_CmsHistoryResourceI_CmsHistoryResource.getBackupId()public java.lang.String getCreatedByName()
getUserCreatedName(CmsObject) instead
I_CmsHistoryResource
getCreatedByName in interface I_CmsHistoryResourceI_CmsHistoryResource.getCreatedByName()public java.lang.String getLastModifiedByName()
getUserLastModifiedName(CmsObject) instead
I_CmsHistoryResource
getLastModifiedByName in interface I_CmsHistoryResourceI_CmsHistoryResource.getLastModifiedByName()public CmsUUID getParentId()
I_CmsHistoryResource
getParentId in interface I_CmsHistoryResourceI_CmsHistoryResource.getParentId()public int getPublishTag()
I_CmsHistoryResource
getPublishTag in interface I_CmsHistoryResourceI_CmsHistoryResource.getPublishTag()public int getPublishTagId()
getPublishTag() instead
I_CmsHistoryResource
getPublishTagId in interface I_CmsHistoryResourceI_CmsHistoryResource.getPublishTagId()public java.lang.String getUserCreatedName(CmsObject cms)
cms - the current cms context
public java.lang.String getUserLastModifiedName(CmsObject cms)
cms - the current cms context
public int getResourceVersion()
I_CmsHistoryResource
getResourceVersion in interface I_CmsHistoryResourceI_CmsHistoryResource.getResourceVersion()public int getStructureVersion()
I_CmsHistoryResource
getStructureVersion in interface I_CmsHistoryResourceI_CmsHistoryResource.getStructureVersion()public java.lang.String toString()
toString in class CmsResourceCmsResource.toString()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||