Package org.opencms.ade.galleries.shared
Class CmsVfsEntryBean
java.lang.Object
org.opencms.ade.galleries.shared.CmsVfsEntryBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
,I_CmsGalleryTreeEntry<CmsVfsEntryBean>
,I_CmsHasIconClasses
public class CmsVfsEntryBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable, I_CmsGalleryTreeEntry<CmsVfsEntryBean>, I_CmsHasIconClasses
Represents a single VFS resource entry for use by the VFS tab of the galleries.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Hidden default constructor.CmsVfsEntryBean
(String rootPath, CmsUUID structureId, String title, String iconClasses, boolean isRoot, boolean editable, List<CmsVfsEntryBean> preloadedChildren, boolean isMatch) Creates a new VFS entry bean. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(CmsVfsEntryBean child) Adds a new child to the node.Returns the big icon CSS classes.Gets the children of this node.Gets the name which should be displayed in the widget representing this VFS entry.Gets the root path of the VFS entry.Gets the site root of this tree entry.Returns the small icon CSS classes.Returns the structure id.boolean
Returns the editable flag.boolean
isRoot()
Returns true if this entry is a top-level entry.boolean
Returns true if this entry bean is a search match.void
setChildren
(List<CmsVfsEntryBean> children) Sets the list of children.void
setEditable
(boolean editable) Sets if the user has write permissions to the folder.void
setSiteRoot
(String siteRoot) Sets the site root of this tree entry.
-
Constructor Details
-
CmsVfsEntryBean
public CmsVfsEntryBean(String rootPath, CmsUUID structureId, String title, String iconClasses, boolean isRoot, boolean editable, List<CmsVfsEntryBean> preloadedChildren, boolean isMatch) Creates a new VFS entry bean.- Parameters:
rootPath
- the root pathstructureId
- the structure idtitle
- the folder titleiconClasses
- the resource icon classesisRoot
- flag indicating whether this is entry should be displayed at the top level of the treeeditable
-true
if the user has write permissions to the folderpreloadedChildren
- the preloaded child nodesisMatch
- true if this entry bean is a search match for the filter string the user entered
-
CmsVfsEntryBean
protected CmsVfsEntryBean()Hidden default constructor.
-
-
Method Details
-
getBigIconClasses
Description copied from interface:I_CmsHasIconClasses
Returns the big icon CSS classes.- Specified by:
getBigIconClasses
in interfaceI_CmsHasIconClasses
- Returns:
- the big icon CSS classes
- See Also:
-
getChildren
Description copied from interface:I_CmsGalleryTreeEntry
Gets the children of this node.- Specified by:
getChildren
in interfaceI_CmsGalleryTreeEntry<CmsVfsEntryBean>
- Returns:
- the children of this node
- See Also:
-
getDisplayName
Gets the name which should be displayed in the widget representing this VFS entry.- Returns:
- the name to display
-
getRootPath
Gets the root path of the VFS entry.- Returns:
- the root path of the VFS entry
-
getSiteRoot
Gets the site root of this tree entry.- Returns:
- the site root of this entry
-
getSmallIconClasses
Description copied from interface:I_CmsHasIconClasses
Returns the small icon CSS classes.- Specified by:
getSmallIconClasses
in interfaceI_CmsHasIconClasses
- Returns:
- the small icon CSS classes
- See Also:
-
getStructureId
Returns the structure id.- Returns:
- the structure id
-
isEditable
Returns the editable flag. Indicate if the user has write permissions to the folder.- Returns:
- the editable flag
-
isRoot
Returns true if this entry is a top-level entry.- Returns:
- true if this is a top-level entry
-
isSearchMatch
Returns true if this entry bean is a search match.- Returns:
- true if this is a search match
-
setChildren
Sets the list of children.- Parameters:
children
- the list of children
-
setEditable
Sets if the user has write permissions to the folder.- Parameters:
editable
-true
if the user has write permissions to the folder
-
setSiteRoot
Sets the site root of this tree entry.- Parameters:
siteRoot
- the site root of this tree entry