|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.file.CmsResource
|
+--com.opencms.file.CmsFile
Describes a file in the Cms.
| Field Summary |
| Fields inherited from class com.opencms.file.CmsResource |
m_size |
| Constructor Summary | |
CmsFile(int resourceId,
int parentId,
int fileId,
String resourceName,
int resourceType,
int resourceFlags,
int user,
int group,
int projectId,
int accessFlags,
int state,
int lockedBy,
int launcherType,
String launcherClassname,
long dateCreated,
long dateLastModified,
int resourceLastModifiedBy,
byte[] fileContent,
int size,
int lockedInProject)
Constructor, creates a new CmsFile object. |
|
| Method Summary | |
Object |
clone()
Clones the CmsFile by creating a new CmsFolder. |
byte[] |
getContents()
Gets the content of this file. |
String |
getExtension()
Gets the file-extension. |
void |
setContents(byte[] value)
Sets the content of this file. |
| Methods inherited from class com.opencms.file.CmsResource |
equals, getAbsolutePath, getAbsolutePath, getAccessFlags, getDateCreated, getDateLastModified, getFileId, getFlags, getFlagString, getGroupId, getLauncherClassname, getLauncherType, getLength, getLockedInProject, getName, getOwnerId, getParent, getParent, getParentId, getPath, getPath, getPathLevel, getPathPart, getProjectId, getResourceId, getResourceLastModifiedBy, getResourceName, getRootName, getState, getType, inProject, isFile, isFolder, isLocked, isLockedBy, isTouched, setAccessFlags, setDateLastModified, setFileId, setGroupId, setLauncherType, setLocked, setLockedInProject, setParentId, setProjectId, setState, setType, setUserId, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsFile(int resourceId,
int parentId,
int fileId,
String resourceName,
int resourceType,
int resourceFlags,
int user,
int group,
int projectId,
int accessFlags,
int state,
int lockedBy,
int launcherType,
String launcherClassname,
long dateCreated,
long dateLastModified,
int resourceLastModifiedBy,
byte[] fileContent,
int size,
int lockedInProject)
resourceId - The database Id.parentId - The database Id of the parent folder.fileId - The id of the content.resourceName - The name (including complete path) of the resouce.resourceType - The type of this resource.projectId - The project id this resource belongs to.accessFlags - The access flags of this resource.state - The state of this resource.lockedBy - The user id of the user who has locked this resource.launcherType - The launcher that is require to process this recource.launcherClassname - The name of the Java class invoked by the launcher.dateCreated - The creation date of this resource.dateLastModified - The date of the last modification of the resource.fileContent - Then content of the file.resourceLastModifiedBy - The user who changed the file.size - The size of the file content.| Method Detail |
public Object clone()
clone in class CmsResourcepublic byte[] getContents()
public String getExtension()
public void setContents(byte[] value)
value - the content of this file.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||