public abstract class HierarchyNode extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EMPTY |
protected String |
fullPath |
protected int |
hashCode |
protected Calendar |
lastModified |
protected String |
lastModifier |
protected static org.exoplatform.services.log.Log |
LOG |
static String |
MODIFIED_FORMAT |
protected String |
name |
protected javax.jcr.Node |
node |
protected String |
parentPath |
protected String |
path |
static String |
PATH_SEPARATOR |
protected String |
pathLabel |
static String |
ROOT_PATH_LABEL |
protected String |
title |
protected String |
url |
protected String |
webdavUrl |
| Modifier | Constructor and Description |
|---|---|
protected |
HierarchyNode(Folder parent,
javax.jcr.Node node) |
protected |
HierarchyNode(String parentPath,
javax.jcr.Node node)
New hierarchy node instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static String |
fullPath(String workspace,
String path) |
String |
getFullPath() |
String |
getLastModified() |
String |
getLastModifier() |
String |
getName() |
javax.jcr.Node |
getNode() |
String |
getPath() |
static String |
getPath(String fullPath) |
String |
getPathLabel() |
String |
getTitle() |
String |
getUrl() |
String |
getWebdavUrl() |
static String |
getWorkspace(String fullPath) |
int |
hashCode() |
static boolean |
isFile(javax.jcr.Node node) |
abstract boolean |
isFolder() |
static boolean |
isFolder(javax.jcr.Node node) |
protected static String |
nodeTitle(javax.jcr.Node node) |
protected static String |
pathLabel(String rootPath,
javax.jcr.Node node) |
void |
setUrl(String url) |
void |
setWebdavUrl(String webdavUrl) |
protected abstract Locale |
userLocale() |
public static final String MODIFIED_FORMAT
public static final String PATH_SEPARATOR
public static final String ROOT_PATH_LABEL
protected static final String EMPTY
protected static final org.exoplatform.services.log.Log LOG
protected final String parentPath
protected final String path
protected final String name
protected final String fullPath
protected final String title
protected String pathLabel
protected final String lastModifier
protected final Calendar lastModified
protected final javax.jcr.Node node
protected final int hashCode
protected String url
protected String webdavUrl
protected HierarchyNode(String parentPath, javax.jcr.Node node) throws javax.jcr.RepositoryException, BadParameterException
parentPath - Stringnode - Nodejavax.jcr.RepositoryException - storage errorBadParameterException - when parent path is nullprotected HierarchyNode(Folder parent, javax.jcr.Node node) throws javax.jcr.RepositoryException, OutlookException
javax.jcr.RepositoryExceptionOutlookExceptionpublic static boolean isFolder(javax.jcr.Node node)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic static boolean isFile(javax.jcr.Node node)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic String getUrl()
public void setUrl(String url)
url - the url to setpublic String getWebdavUrl()
public void setWebdavUrl(String webdavUrl)
webdavUrl - the webdavUrl to setpublic javax.jcr.Node getNode()
public String getFullPath()
public String getPath()
public String getName()
public String getTitle()
public String getPathLabel()
public String getLastModifier()
public String getLastModified()
protected static String nodeTitle(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected static String pathLabel(String rootPath, javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic static String getPath(String fullPath) throws BadParameterException
BadParameterExceptionpublic static String getWorkspace(String fullPath) throws BadParameterException
BadParameterExceptionpublic abstract boolean isFolder()
protected abstract Locale userLocale()
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.