info.magnolia.cms.core
Interface HierarchyManager

All Known Implementing Classes:
DefaultHierarchyManager, HierarchyManagerWrapper

Deprecated. since 4.5 - use JCR-Session instead.

public interface HierarchyManager

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

Version:
$Id$

Method Summary
 void copyTo(String source, String destination)
          Deprecated.  
 Content createContent(String path, String label, String contentType)
          Deprecated.  
 void delete(String path)
          Deprecated.  
 AccessManager getAccessManager()
          Deprecated.  
 Content getContent(String path)
          Deprecated.  
 Content getContent(String path, boolean create, ItemType type)
          Deprecated.  
 Content getContentByUUID(String uuid)
          Deprecated.  
 String getName()
          Deprecated. since 4.5 - use Session#getWorkspace()#getName() instead.
 NodeData getNodeData(String path)
          Deprecated.  
 QueryManager getQueryManager()
          Deprecated.  
 Content getRoot()
          Deprecated.  
 javax.jcr.Workspace getWorkspace()
          Deprecated.  
 boolean hasPendingChanges()
          Deprecated.  
 boolean isExist(String path)
          Deprecated.  
 boolean isGranted(String path, long permissions)
          Deprecated. Checks for the allowed access rights.
 boolean isNodeData(String path)
          Deprecated.  
 void moveTo(String source, String destination)
          Deprecated.  
 void refresh(boolean keepChanges)
          Deprecated.  
 void save()
          Deprecated.  
 

Method Detail

getAccessManager

AccessManager getAccessManager()
Deprecated. 

getQueryManager

QueryManager getQueryManager()
Deprecated. 

createContent

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

getContent

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

getContent

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

getNodeData

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

delete

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

getRoot

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

isExist

boolean isExist(String path)
Deprecated. 

isGranted

boolean isGranted(String path,
                  long permissions)
Deprecated. 
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.

isNodeData

boolean isNodeData(String path)
                   throws AccessDeniedException
Deprecated. 
Throws:
AccessDeniedException

getContentByUUID

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

getWorkspace

javax.jcr.Workspace getWorkspace()
Deprecated. 

moveTo

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

copyTo

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

save

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

hasPendingChanges

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

refresh

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

getName

String getName()
Deprecated. since 4.5 - use Session#getWorkspace()#getName() instead.



Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.