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 java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
A bean which represents a resource in the VFS.- Since:
- 8.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsVfsEntryBean()
Hidden default constructor.CmsVfsEntryBean(java.lang.String path, java.lang.String name, java.lang.String resourceType, boolean isFolder, boolean hasChildren)
Constructs a new bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Returns the name of the resource.java.lang.String
getPath()
Returns the path of the resource.java.lang.String
getResourceType()
Returns the resource type.boolean
hasChildren()
Returns true if the resource has children, i.e.boolean
isFolder()
Returns true if the resource is a folder.
-
-
-
Constructor Detail
-
CmsVfsEntryBean
public CmsVfsEntryBean(java.lang.String path, java.lang.String name, java.lang.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 Detail
-
getName
public java.lang.String getName()
Returns the name of the resource.- Returns:
- the name of the resource
-
getPath
public java.lang.String getPath()
Returns the path of the resource.- Returns:
- the path of the resource
-
getResourceType
public java.lang.String getResourceType()
Returns the resource type.- Returns:
- the resource type
-
hasChildren
public boolean hasChildren()
Returns true if the resource has children, i.e. is a non-empty folder.- Returns:
- true if the resource has children
-
isFolder
public boolean isFolder()
Returns true if the resource is a folder.- Returns:
- true if the resource is a folder
-
-