public abstract class Folder extends HierarchyNode
| Modifier and Type | Field and Description |
|---|---|
protected Folder |
defaultSubfolder
The default subfolder.
|
protected ThreadLocal<Set<File>> |
files
The files.
|
protected ThreadLocal<Set<Folder>> |
subfolders
The subfolders.
|
EMPTY, fullPath, hashCode, lastModified, lastModifier, LOG, MODIFIED_FORMAT, name, node, parentPath, path, PATH_SEPARATOR, pathLabel, ROOT_PATH_LABEL, title, url, webdavUrl| Constructor and Description |
|---|
Folder(Folder parent,
javax.jcr.Node node)
Instantiates a new folder.
|
Folder(String parentPath,
javax.jcr.Node node)
Instantiates a new folder.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Folder |
addSubfolder(String name)
Adds the subfolder.
|
Set<HierarchyNode> |
getChildren()
Gets the children.
|
Folder |
getDefaultSubfolder()
Gets the default subfolder.
|
Set<File> |
getFiles()
Gets the files.
|
Set<Folder> |
getSubfolders()
Gets the subfolders.
|
boolean |
hasFiles()
Checks for files.
|
boolean |
hasSubfolders()
Checks for subfolders.
|
boolean |
isFolder()
Checks if is folder.
|
boolean |
isRoot()
Checks if is root.
|
protected abstract File |
newFile(Folder parent,
javax.jcr.Node node)
New file.
|
protected abstract Folder |
newFolder(Folder parent,
javax.jcr.Node node)
New folder.
|
protected abstract Folder |
newFolder(String rootPath,
javax.jcr.Node node)
New folder.
|
protected void |
readChildNodes()
Read child nodes.
|
protected Set<File> |
readFiles()
Read files.
|
protected Set<Folder> |
readSubnodes()
Read subnodes.
|
equals, fullPath, getFullPath, getLastModified, getLastModifier, getName, getNode, getPath, getPath, getPathLabel, getTitle, getUrl, getWebdavUrl, getWorkspace, hashCode, isFile, isFolder, nodeTitle, pathLabel, setUrl, setWebdavUrl, userLocaleprotected final ThreadLocal<Set<Folder>> subfolders
protected final ThreadLocal<Set<File>> files
protected Folder defaultSubfolder
public Folder(Folder parent, javax.jcr.Node node) throws javax.jcr.RepositoryException, OutlookException
parent - the parentnode - the nodejavax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic Folder(String parentPath, javax.jcr.Node node) throws javax.jcr.RepositoryException, OutlookException
parentPath - the parent pathnode - the nodejavax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic boolean isRoot()
public Folder getDefaultSubfolder()
public boolean hasSubfolders()
throws javax.jcr.RepositoryException,
OutlookException
javax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic Set<Folder> getSubfolders() throws javax.jcr.RepositoryException, OutlookException
javax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic boolean hasFiles()
throws javax.jcr.RepositoryException,
OutlookException
javax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic Set<File> getFiles() throws javax.jcr.RepositoryException, OutlookException
javax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic Set<HierarchyNode> getChildren() throws javax.jcr.RepositoryException, OutlookException
javax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic final boolean isFolder()
isFolder in class HierarchyNodeprotected Set<Folder> readSubnodes() throws javax.jcr.RepositoryException, OutlookException
javax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionprotected Set<File> readFiles() throws javax.jcr.RepositoryException, OutlookException
javax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionprotected void readChildNodes()
throws javax.jcr.RepositoryException,
OutlookException
javax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionprotected abstract Folder newFolder(Folder parent, javax.jcr.Node node) throws javax.jcr.RepositoryException, OutlookException
parent - the parentnode - the nodejavax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionprotected abstract Folder newFolder(String rootPath, javax.jcr.Node node) throws javax.jcr.RepositoryException, OutlookException
rootPath - the root pathnode - the nodejavax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionprotected abstract File newFile(Folder parent, javax.jcr.Node node) throws javax.jcr.RepositoryException, OutlookException
parent - the parentnode - the nodejavax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic abstract Folder addSubfolder(String name) throws javax.jcr.RepositoryException, OutlookException
name - the namejavax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionCopyright © 2003–2016 eXo Platform SAS. All rights reserved.