info.magnolia.cms.core
Interface HierarchyManager

All Known Implementing Classes:
DefaultHierarchyManager, HierarchyManagerWrapper

public interface HierarchyManager

Main class to access content. Is retrieved by MgnlContext#getHierarchyManager(String). The DefaultHierarchyManager wraps a JCR session.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
gjoseph

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)
           
 java.lang.String getName()
           
 NodeData getNodeData(java.lang.String path)
           
 Content getPage(java.lang.String path, java.lang.String templateName)
          Deprecated. since 4.0 - only used by taglibs - should go/move.
 QueryManager getQueryManager()
           
 Content getRoot()
           
 javax.jcr.Workspace getWorkspace()
           
 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. (not used currently)
 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()
           
 

Method Detail

getAccessManager

AccessManager getAccessManager()

getQueryManager

QueryManager getQueryManager()

createContent

Content createContent(java.lang.String path,
                      java.lang.String label,
                      java.lang.String contentType)
                      throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getContent

Content getContent(java.lang.String path)
                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getContent

Content getContent(java.lang.String path,
                   boolean create,
                   ItemType type)
                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getNodeData

NodeData getNodeData(java.lang.String path)
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getPage

Content getPage(java.lang.String path,
                java.lang.String templateName)
                throws javax.jcr.RepositoryException
Deprecated. since 4.0 - only used by taglibs - should go/move.

Throws:
javax.jcr.RepositoryException

delete

void delete(java.lang.String path)
            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getRoot

Content getRoot()
                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

isPage

boolean isPage(java.lang.String path)
               throws AccessDeniedException
Deprecated. since 4.0 - use getContent().isNodeType() instead.

Throws:
AccessDeniedException

isExist

boolean isExist(java.lang.String path)

isGranted

boolean isGranted(java.lang.String path,
                  long permissions)
Checks for the allowed access rights.

Parameters:
permissions - permission mask
path - path to content to be checked
Returns:
true if the current user has access on the provided node path.

isNodeType

boolean isNodeType(java.lang.String path,
                   java.lang.String type)
Deprecated. since 4.0 - use getContent().isNodeType() instead. (not used currently)


isNodeType

boolean isNodeType(java.lang.String path,
                   ItemType type)
Deprecated. since 4.0 - use getContent().isNodeType() instead. (not used currently)


isNodeData

boolean isNodeData(java.lang.String path)
                   throws AccessDeniedException
Throws:
AccessDeniedException

getContentByUUID

Content getContentByUUID(java.lang.String uuid)
                         throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getWorkspace

javax.jcr.Workspace getWorkspace()

moveTo

void moveTo(java.lang.String source,
            java.lang.String destination)
            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

copyTo

void copyTo(java.lang.String source,
            java.lang.String destination)
            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

save

void save()
          throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

hasPendingChanges

boolean hasPendingChanges()
                          throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

refresh

void refresh(boolean keepChanges)
             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getName

java.lang.String getName()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.