org.opencms.ade.galleries.shared
Class CmsVfsEntryBean

java.lang.Object
  extended by org.opencms.ade.galleries.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

Represents a single VFS resource entry for use by the VFS tab of the galleries.


Constructor Summary
protected CmsVfsEntryBean()
          Hidden default constructor.
  CmsVfsEntryBean(java.lang.String sitePath, java.lang.String title, boolean isRoot, boolean editable)
          Creates a new VFS entry bean.
 
Method Summary
 java.lang.String getDisplayName()
          Gets the name which should be displayed in the widget representing this VFS entry.
 java.lang.String getSitePath()
          Returns the site path of this VFS tree.
 boolean isEditable()
          Returns the editable flag.
 boolean isRoot()
          Returns true if this entry is a top-level entry.
 void setEditable(boolean editable)
          Sets if the user has write permissions to the 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 sitePath,
                       java.lang.String title,
                       boolean isRoot,
                       boolean editable)
Creates a new VFS entry bean.

Parameters:
sitePath - the site path
title - the folder title
isRoot - flag indicating whether this is entry should be displayed at the top level of the tree
editable - true if the user has write permissions to the folder

CmsVfsEntryBean

protected CmsVfsEntryBean()
Hidden default constructor.

Method Detail

getDisplayName

public java.lang.String getDisplayName()
Gets the name which should be displayed in the widget representing this VFS entry.

Returns:
the name to display

getSitePath

public java.lang.String getSitePath()
Returns the site path of this VFS tree.

Returns:
the site path

isEditable

public boolean isEditable()
Returns the editable flag. Indicate if the user has write permissions to the folder.

Returns:
the editable flag

isRoot

public boolean isRoot()
Returns true if this entry is a top-level entry.

Returns:
true if this is a top-level entry

setEditable

public void setEditable(boolean editable)
Sets if the user has write permissions to the folder.

Parameters:
editable - true if the user has write permissions to the folder