Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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
    • 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