public abstract class HierarchyNode extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EMPTY
The Constant EMPTY.
|
protected String |
fullPath
The full path.
|
protected int |
hashCode
The hash code.
|
protected Calendar |
lastModified
The last modified.
|
protected String |
lastModifier
The last modifier.
|
protected static org.exoplatform.services.log.Log |
LOG
The Constant LOG.
|
static String |
MODIFIED_FORMAT
The Constant MODIFIED_FORMAT.
|
protected String |
name
The name.
|
protected javax.jcr.Node |
node
The node.
|
protected String |
parentPath
The parent path.
|
protected String |
path
The path.
|
static String |
PATH_SEPARATOR
The Constant PATH_SEPARATOR.
|
protected String |
pathLabel
The path label.
|
static String |
ROOT_PATH_LABEL
The Constant ROOT_PATH_LABEL.
|
protected String |
title
The title.
|
protected String |
url
The url.
|
protected String |
webdavUrl
The webdav url.
|
| Modifier | Constructor and Description |
|---|---|
protected |
HierarchyNode(Folder parent,
javax.jcr.Node node)
Instantiates a new hierarchy 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)
Full path.
|
String |
getFullPath()
Gets the full path.
|
String |
getLastModified()
Gets the last modified.
|
String |
getLastModifier()
Gets the last modifier.
|
String |
getName()
Gets the name.
|
javax.jcr.Node |
getNode()
Gets the node.
|
String |
getPath()
Gets the path.
|
static String |
getPath(String fullPath)
Gets the path.
|
String |
getPathLabel()
Gets the path label.
|
String |
getTitle()
Gets the title.
|
String |
getUrl()
Gets the url.
|
String |
getWebdavUrl()
Gets the webdav url.
|
static String |
getWorkspace(String fullPath)
Gets the workspace.
|
int |
hashCode() |
static boolean |
isFile(javax.jcr.Node node)
Checks if is file.
|
abstract boolean |
isFolder()
Checks if is folder.
|
static boolean |
isFolder(javax.jcr.Node node)
Checks if is folder.
|
protected static String |
nodeTitle(javax.jcr.Node node)
Node title.
|
protected static String |
pathLabel(String rootPath,
javax.jcr.Node node)
Path label.
|
void |
setUrl(String url)
Sets the url.
|
void |
setWebdavUrl(String webdavUrl)
Sets the webdav url.
|
protected abstract Locale |
userLocale()
User locale.
|
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
parent - the parentnode - the nodejavax.jcr.RepositoryException - the repository exceptionOutlookException - the outlook exceptionpublic static boolean isFolder(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - the repository exceptionpublic static boolean isFile(javax.jcr.Node node)
throws javax.jcr.RepositoryException
node - the nodejavax.jcr.RepositoryException - the repository exceptionpublic 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
node - the nodejavax.jcr.RepositoryException - the repository exceptionprotected static String pathLabel(String rootPath, javax.jcr.Node node) throws javax.jcr.RepositoryException
rootPath - the root pathnode - the nodejavax.jcr.RepositoryException - the repository exceptionpublic static String fullPath(String workspace, String path)
workspace - the workspacepath - the pathpublic static String getPath(String fullPath) throws BadParameterException
fullPath - the full pathBadParameterException - the bad parameter exceptionpublic static String getWorkspace(String fullPath) throws BadParameterException
fullPath - the full pathBadParameterException - the bad parameter exceptionpublic abstract boolean isFolder()
protected abstract Locale userLocale()
Copyright © 2003–2017 eXo Platform SAS. All rights reserved.