|
||||||||||
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(java.lang.String source,
java.lang.String destination)
|
Content |
createContent(java.lang.String path,
java.lang.String label,
java.lang.String contentType)
|
void |
delete(java.lang.String path)
|
AccessManager |
getAccessManager()
|
Content |
getContent(java.lang.String path)
|
Content |
getContent(java.lang.String path,
boolean create,
ItemType type)
|
Content |
getContentByUUID(java.lang.String uuid)
|
HierarchyManager |
getDelegate()
Deprecated. since 4.3 use getWrappedHierarchyManager() instead |
java.lang.String |
getName()
|
NodeData |
getNodeData(java.lang.String path)
|
Content |
getPage(java.lang.String path,
java.lang.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(java.lang.String path)
|
boolean |
isGranted(java.lang.String path,
long permissions)
Checks for the allowed access rights. |
boolean |
isNodeData(java.lang.String path)
|
boolean |
isNodeType(java.lang.String path,
ItemType type)
Deprecated. since 4.0 - use getContent().isNodeType() instead. (not used currently) |
boolean |
isNodeType(java.lang.String path,
java.lang.String type)
Deprecated. since 4.0 - use getContent().isNodeType() instead. |
boolean |
isPage(java.lang.String path)
Deprecated. since 4.0 - use getContent().isNodeType() instead. |
void |
moveTo(java.lang.String source,
java.lang.String destination)
|
void |
refresh(boolean keepChanges)
|
void |
save()
|
java.lang.String |
toString()
|
protected java.lang.String |
transformPath(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
protected Content wrap(Content content)
content
- unwrapped content
protected NodeData wrap(NodeData nodeData)
nodeData
- unwrapped node data
protected java.lang.String transformPath(java.lang.String path)
path
- unaltered path
public AccessManager getAccessManager()
getAccessManager
in interface HierarchyManager
public QueryManager getQueryManager()
getQueryManager
in interface HierarchyManager
public Content createContent(java.lang.String path, java.lang.String label, java.lang.String contentType) throws javax.jcr.RepositoryException
createContent
in interface HierarchyManager
javax.jcr.RepositoryException
public Content getContent(java.lang.String path) throws javax.jcr.RepositoryException
getContent
in interface HierarchyManager
javax.jcr.RepositoryException
public Content getContent(java.lang.String path, boolean create, ItemType type) throws javax.jcr.RepositoryException
getContent
in interface HierarchyManager
javax.jcr.RepositoryException
public NodeData getNodeData(java.lang.String path) throws javax.jcr.RepositoryException
getNodeData
in interface HierarchyManager
javax.jcr.RepositoryException
@Deprecated public Content getPage(java.lang.String path, java.lang.String templateName) throws javax.jcr.RepositoryException
getPage
in interface HierarchyManager
javax.jcr.RepositoryException
public void delete(java.lang.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(java.lang.String path) throws AccessDeniedException
isPage
in interface HierarchyManager
AccessDeniedException
public boolean isExist(java.lang.String path)
isExist
in interface HierarchyManager
public boolean isGranted(java.lang.String path, long permissions)
HierarchyManager
isGranted
in interface HierarchyManager
path
- path to content to be checkedpermissions
- permission mask
@Deprecated public boolean isNodeType(java.lang.String path, java.lang.String type)
isNodeType
in interface HierarchyManager
@Deprecated public boolean isNodeType(java.lang.String path, ItemType type)
isNodeType
in interface HierarchyManager
public boolean isNodeData(java.lang.String path) throws AccessDeniedException
isNodeData
in interface HierarchyManager
AccessDeniedException
public Content getContentByUUID(java.lang.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(java.lang.String source, java.lang.String destination) throws javax.jcr.RepositoryException
moveTo
in interface HierarchyManager
javax.jcr.RepositoryException
public void copyTo(java.lang.String source, java.lang.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 java.lang.String getName()
getName
in interface HierarchyManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |