Package org.opencms.gwt.shared
Class CmsVfsEntryBean
java.lang.Object
org.opencms.gwt.shared.CmsVfsEntryBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsVfsEntryBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
A bean which represents a resource in the VFS.
- Since:
- 8.0.0
-
Constructor Summary
ModifierConstructorDescriptionprotected
Hidden default constructor.CmsVfsEntryBean
(String path, String name, String resourceType, boolean isFolder, boolean hasChildren) Constructs a new bean. -
Method Summary
-
Constructor Details
-
CmsVfsEntryBean
public CmsVfsEntryBean(String path, String name, String resourceType, boolean isFolder, boolean hasChildren) Constructs a new bean.- Parameters:
path
- the path of the resourcename
- the name of the resourceresourceType
- the resource type of the resourceisFolder
- true if the resource is a folderhasChildren
- true if the resource is a folder which isn't empty
-
CmsVfsEntryBean
protected CmsVfsEntryBean()Hidden default constructor.
-
-
Method Details
-
getName
Returns the name of the resource.- Returns:
- the name of the resource
-
getPath
Returns the path of the resource.- Returns:
- the path of the resource
-
getResourceType
Returns the resource type.- Returns:
- the resource type
-
hasChildren
Returns true if the resource has children, i.e. is a non-empty folder.- Returns:
- true if the resource has children
-
isFolder
Returns true if the resource is a folder.- Returns:
- true if the resource is a folder
-