org.opencms.gwt.shared
Class CmsVfsEntryBean

java.lang.Object
  extended by 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
protected CmsVfsEntryBean()
          Hidden default constructor.
  CmsVfsEntryBean(String path, String name, String resourceType, boolean isFolder, boolean hasChildren)
          Constructs a new bean.
 
Method Summary
 String getName()
          Returns the name of the resource.
 String getPath()
          Returns the path of the resource.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsVfsEntryBean

public CmsVfsEntryBean(String path,
                       String name,
                       String resourceType,
                       boolean isFolder,
                       boolean hasChildren)
Constructs a new bean.

Parameters:
path - the path of the resource
name - the name of the resource
resourceType - the resource type of the resource
isFolder - true if the resource is a folder
hasChildren - true if the resource is a folder which isn't empty

CmsVfsEntryBean

protected CmsVfsEntryBean()
Hidden default constructor.

Method Detail

getName

public String getName()
Returns the name of the resource.

Returns:
the name of the resource

getPath

public String getPath()
Returns the path of the resource.

Returns:
the path of the resource

getResourceType

public 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