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(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)
           
 String getName()
           
 NodeData getNodeData(String path)
           
 Content getPage(String path, 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(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. (not used currently)
 boolean isPage(String path)
          Deprecated. since 4.0 - use getContent().isNodeType() instead.
 void moveTo(String source, String destination)
           
 void refresh(boolean keepChanges)
           
 void save()
           
 

Method Detail

getAccessManager

AccessManager getAccessManager()

getQueryManager

QueryManager getQueryManager()

createContent

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

getContent

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

getContent

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

getNodeData

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

getPage

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

Throws:
javax.jcr.RepositoryException

delete

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

getRoot

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

isPage

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

Throws:
AccessDeniedException

isExist

boolean isExist(String path)

isGranted

boolean isGranted(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(String path,
                   String type)
Deprecated. since 4.0 - use getContent().isNodeType() instead. (not used currently)


isNodeType

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


isNodeData

boolean isNodeData(String path)
                   throws AccessDeniedException
Throws:
AccessDeniedException

getContentByUUID

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

getWorkspace

javax.jcr.Workspace getWorkspace()

moveTo

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

copyTo

void copyTo(String source,
            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

String getName()


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