public abstract class HierarchyManagerWrapper extends Object implements HierarchyManager
HierarchyManager
wrapping an other hierarchy manager. Subclassed to manipulate the hierarchy.Modifier | Constructor and Description |
---|---|
protected |
HierarchyManagerWrapper(HierarchyManager wrappedHM) |
Modifier and Type | Method and Description |
---|---|
void |
copyTo(String source,
String destination) |
Content |
createContent(String path,
String label,
String contentType) |
void |
delete(String path) |
AccessManager |
getAccessManager() |
Content |
getContent(String path) |
Content |
getContent(String path,
boolean create,
ItemType type) |
Content |
getContentByUUID(String uuid) |
HierarchyManager |
getDelegate()
Deprecated.
since 4.3 use getWrappedHierarchyManager() instead
|
String |
getName() |
NodeData |
getNodeData(String path) |
QueryManager |
getQueryManager() |
Content |
getRoot() |
javax.jcr.Workspace |
getWorkspace() |
HierarchyManager |
getWrappedHierarchyManager() |
boolean |
hasPendingChanges() |
boolean |
isExist(String path) |
boolean |
isGranted(String path,
long permissions)
Checks for the allowed access rights.
|
boolean |
isNodeData(String path) |
void |
moveTo(String source,
String destination) |
void |
refresh(boolean keepChanges) |
void |
save() |
String |
toString() |
protected String |
transformPath(String path)
Override this method to alter all paths passed into the various hierarchy manager methods.
|
protected Content |
wrap(Content content)
Override this method to have hierarchy manager wrap every piece of content it returns.
|
protected NodeData |
wrap(NodeData nodeData)
Override this method to have hierarchy manager wrap every piece of node data it returns.
|
protected HierarchyManagerWrapper(HierarchyManager wrappedHM)
public HierarchyManager getWrappedHierarchyManager()
@Deprecated public HierarchyManager getDelegate()
protected Content wrap(Content content)
content
- unwrapped contentprotected NodeData wrap(NodeData nodeData)
nodeData
- unwrapped node dataprotected String transformPath(String path)
path
- unaltered pathpublic AccessManager getAccessManager()
getAccessManager
in interface HierarchyManager
public QueryManager getQueryManager()
getQueryManager
in interface HierarchyManager
public Content createContent(String path, String label, String contentType) throws javax.jcr.RepositoryException
createContent
in interface HierarchyManager
javax.jcr.RepositoryException
public Content getContent(String path) throws javax.jcr.RepositoryException
getContent
in interface HierarchyManager
javax.jcr.RepositoryException
public Content getContent(String path, boolean create, ItemType type) throws javax.jcr.RepositoryException
getContent
in interface HierarchyManager
javax.jcr.RepositoryException
public NodeData getNodeData(String path) throws javax.jcr.RepositoryException
getNodeData
in interface HierarchyManager
javax.jcr.RepositoryException
public void delete(String path) throws javax.jcr.RepositoryException
delete
in interface HierarchyManager
javax.jcr.RepositoryException
public Content getRoot() throws javax.jcr.RepositoryException
getRoot
in interface HierarchyManager
javax.jcr.RepositoryException
public boolean isExist(String path)
isExist
in interface HierarchyManager
public boolean isGranted(String path, long permissions)
HierarchyManager
isGranted
in interface HierarchyManager
path
- path to content to be checkedpermissions
- permission maskpublic boolean isNodeData(String path) throws AccessDeniedException
isNodeData
in interface HierarchyManager
AccessDeniedException
public Content getContentByUUID(String uuid) throws javax.jcr.RepositoryException
getContentByUUID
in interface HierarchyManager
javax.jcr.RepositoryException
public javax.jcr.Workspace getWorkspace()
getWorkspace
in interface HierarchyManager
public void moveTo(String source, String destination) throws javax.jcr.RepositoryException
moveTo
in interface HierarchyManager
javax.jcr.RepositoryException
public void copyTo(String source, String destination) throws javax.jcr.RepositoryException
copyTo
in interface HierarchyManager
javax.jcr.RepositoryException
public void save() throws javax.jcr.RepositoryException
save
in interface HierarchyManager
javax.jcr.RepositoryException
public boolean hasPendingChanges() throws javax.jcr.RepositoryException
hasPendingChanges
in interface HierarchyManager
javax.jcr.RepositoryException
public void refresh(boolean keepChanges) throws javax.jcr.RepositoryException
refresh
in interface HierarchyManager
javax.jcr.RepositoryException
public String getName()
getName
in interface HierarchyManager
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.