| java.lang.Object org.opencms.file.CmsResource org.opencms.file.CmsFolder
All known Subclasses: org.opencms.file.history.CmsHistoryFolder,
CmsFolder | public class CmsFolder extends CmsResource implements Cloneable,Serializable,Comparable(Code) | | A folder resource in the OpenCms VFS.
A folder resource is a CmsResource object that can contain sub-resources.
author: Alexander Kandzior author: Michael Emmerich version: $Revision: 1.29 $ since: 6.0.0 |
Constructor Summary | |
public | CmsFolder(CmsResource resource) | public | CmsFolder(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 version) |
CmsFolder | public CmsFolder(CmsResource resource)(Code) | | Constructor, creates a new CmsFolder Object from the given CmsResource.
Parameters: resource - the base resource object to create a folder from |
CmsFolder | public CmsFolder(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 version)(Code) | | Constructor, creates a new CmsFolder object.
Parameters: structureId - the id of this resources structure record Parameters: resourceId - the id of this resources resource record Parameters: path - the filename of this resouce Parameters: type - the type of this resource Parameters: flags - the flags of this resource Parameters: projectId - the project id this resource was last modified in Parameters: state - the state of this resource Parameters: dateCreated - the creation date of this resource Parameters: userCreated - the id of the user who created this resource Parameters: dateLastModified - the date of the last modification of this resource Parameters: userLastModified - the id of the user who did the last modification of this resource * @param size the size of the file content of this resource Parameters: dateReleased - the release date of this resource Parameters: dateExpired - the expiration date of this resource Parameters: version - the version number of this resource |
clone | public Object clone()(Code) | | Returns a clone of this Objects instance.
a clone of this instance |
isFolderSize | final public static boolean isFolderSize(long size)(Code) | | Returns true if the given resource size describes a folder type.
This is true in case size < 0 .
Parameters: size - the resource size to check true if the given resource size describes a folder type or false if it is no folder |
isFolderType | final public static boolean isFolderType(int typeId)(Code) | | Returns true if the given resource type id describes a folder type.
Parameters: typeId - the resource type id to check true if the given resource type id describes a folder type or false if it is no folder or an unknown type. |
isFolderType | final public static boolean isFolderType(String typeName)(Code) | | Returns true if the given resource type name describes a folder type.
Parameters: typeName - the resource type name to check true if the given resource type name describes a folder type |
|
|