|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.HierarchyManagerWrapper
public abstract class HierarchyManagerWrapper
A HierarchyManager
wrapping an other hierarchy manager. Subclassed to manipulate the hierarchy.
Constructor Summary | |
---|---|
protected |
HierarchyManagerWrapper(HierarchyManager wrappedHM)
|
Method Summary | |
---|---|
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)
|
Content |
getPage(String path,
String templateName)
Deprecated. since 4.0 - use getContent().isNodeType() instead. (not used currently) |
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)
|
boolean |
isNodeType(String path,
ItemType type)
Deprecated. since 4.0 - use getContent().isNodeType() instead. (not used currently) |
boolean |
isNodeType(String path,
String type)
Deprecated. since 4.0 - use getContent().isNodeType() instead. |
boolean |
isPage(String path)
Deprecated. since 4.0 - use getContent().isNodeType() instead. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected HierarchyManagerWrapper(HierarchyManager wrappedHM)
Method Detail |
---|
public HierarchyManager getWrappedHierarchyManager()
@Deprecated public HierarchyManager getDelegate()
public String toString()
toString
in class Object
protected Content wrap(Content content)
content
- unwrapped content
protected NodeData wrap(NodeData nodeData)
nodeData
- unwrapped node data
protected String transformPath(String path)
path
- unaltered path
public 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
@Deprecated public Content getPage(String path, String templateName) throws javax.jcr.RepositoryException
getPage
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
@Deprecated public boolean isPage(String path) throws AccessDeniedException
isPage
in interface HierarchyManager
AccessDeniedException
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 mask
@Deprecated public boolean isNodeType(String path, String type)
isNodeType
in interface HierarchyManager
@Deprecated public boolean isNodeType(String path, ItemType type)
isNodeType
in interface HierarchyManager
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |