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 Details

    • 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 Details

    • 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

      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