@Deprecated public class DefaultHierarchyManager extends Object implements HierarchyManager, Serializable
HierarchyManager
.Constructor and Description |
---|
DefaultHierarchyManager(javax.jcr.Session jcrSession,
RepositoryManager repositoryManager)
Deprecated.
|
DefaultHierarchyManager(javax.jcr.Session jcrSession,
String ignored,
RepositoryManager repositoryManager)
Deprecated.
since 5.4 not used !?
|
DefaultHierarchyManager(String userId,
javax.jcr.Session jcrSession,
AccessManager ignoredAccessManager,
RepositoryManager repositoryManager)
Deprecated.
since 5.4 not used
|
DefaultHierarchyManager(String ignoredUserId,
javax.jcr.Session jcrSession,
RepositoryManager repositoryManager)
Deprecated.
since 5.4 not used
|
Modifier and Type | Method and Description |
---|---|
void |
copyTo(String source,
String destination)
Deprecated.
copy content to the specified location.
|
Content |
createContent(String path,
String label,
String contentType)
Deprecated.
Creates contentNode of type contentType. contentType must be defined in item type definition of Magnolia
as well as JCR implementation.
|
void |
delete(String path)
Deprecated.
removes specified path, it can be either node or property.
|
boolean |
equals(Object obj)
Deprecated.
|
AccessManager |
getAccessManager()
Deprecated.
Get access manager.
|
Content |
getContent(String path)
Deprecated.
get content object of the requested URI.
|
Content |
getContent(String path,
boolean create,
ItemType type)
Deprecated.
Like getContent() but creates the node if not yet existing.
|
Content |
getContentByUUID(String uuid)
Deprecated.
This method can be used to retrieve Content which has UUID assigned to it, in other words only those nodes which
has mixin type mix:referenceable.
|
protected javax.jcr.Session |
getJcrSession()
Deprecated.
|
String |
getName()
Deprecated.
|
NodeData |
getNodeData(String path)
Deprecated.
get NodeData object of the requested URI.
|
Content |
getPage(String path,
String templateName)
Deprecated.
since 4.0 - only used by taglibs - should go/move.
|
QueryManager |
getQueryManager()
Deprecated.
|
Content |
getRoot()
Deprecated.
|
javax.jcr.Workspace |
getWorkspace()
Deprecated.
gets currently used workspace for this hierarchy manager.
|
int |
hashCode()
Deprecated.
|
boolean |
hasPendingChanges()
Deprecated.
Returns true if the session has pending (unsaved) changes.
|
boolean |
isExist(String path)
Deprecated.
check is either the node or property exists with the specified path and user has access to it.
|
boolean |
isGranted(String path,
long oldPermissions)
Deprecated.
Checks for the allowed access rights.
|
boolean |
isNodeData(String path)
Deprecated.
checks if the requested resource is an NodeData (Property).
|
void |
moveTo(String source,
String destination)
Deprecated.
move content to the specified location.
|
void |
refresh(boolean keepChanges)
Deprecated.
Refreshes this session.
|
void |
save()
Deprecated.
Persists all changes to the repository if validation succeeds.
|
protected void |
setAccessManager(AccessManager accessManager)
Deprecated.
Set access manager for this hierarchy.
|
protected void |
setJcrSession(javax.jcr.Session jcrSession)
Deprecated.
since 5.4 not used
|
protected void |
setMetaData(MetaData md)
Deprecated.
Helper method to set page properties, create page calls this method. you could call this method anytime to create
working page properties.
|
protected void |
setQueryManager(QueryManager queryManager)
Deprecated.
Set query manager for this hierarchy.
|
protected Content |
wrapAsContent(javax.jcr.Node node)
Deprecated.
|
Content |
wrapAsContent(javax.jcr.Node rootNode,
String path)
Deprecated.
|
protected Content |
wrapAsContent(javax.jcr.Node rootNode,
String path,
String contentType)
Deprecated.
|
public DefaultHierarchyManager(javax.jcr.Session jcrSession, RepositoryManager repositoryManager)
@Deprecated public DefaultHierarchyManager(String userId, javax.jcr.Session jcrSession, AccessManager ignoredAccessManager, RepositoryManager repositoryManager) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Deprecated public DefaultHierarchyManager(String ignoredUserId, javax.jcr.Session jcrSession, RepositoryManager repositoryManager) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Deprecated public DefaultHierarchyManager(javax.jcr.Session jcrSession, String ignored, RepositoryManager repositoryManager)
protected void setAccessManager(AccessManager accessManager)
public AccessManager getAccessManager()
getAccessManager
in interface HierarchyManager
protected void setQueryManager(QueryManager queryManager)
public QueryManager getQueryManager()
getQueryManager
in interface HierarchyManager
protected javax.jcr.Session getJcrSession()
@Deprecated protected void setJcrSession(javax.jcr.Session jcrSession)
public Content createContent(String path, String label, String contentType) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
createContent
in interface HierarchyManager
path
- absolute (primary) path to this Node
label
- page namecontentType
- , JCR node type as configuredjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
protected Content wrapAsContent(javax.jcr.Node rootNode, String path, String contentType) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
protected void setMetaData(MetaData md) throws javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.RepositoryException
AccessDeniedException
public Content getContent(String path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
getContent
in interface HierarchyManager
path
- of the content to be initializedjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
public Content wrapAsContent(javax.jcr.Node rootNode, String path) throws AccessDeniedException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public Content getContent(String path, boolean create, ItemType type) throws AccessDeniedException, javax.jcr.RepositoryException
getContent
in interface HierarchyManager
path
- the path of the nodecreate
- true if the node should get createdtype
- the node type of the created nodeAccessDeniedException
javax.jcr.RepositoryException
public NodeData getNodeData(String path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
getNodeData
in interface HierarchyManager
path
- of the atom to be initializedjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
@Deprecated public Content getPage(String path, String templateName) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
path
- handle of the page from where the search should starttemplateName
- template name to search forjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
public void delete(String path) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
delete
in interface HierarchyManager
path
- to be removedjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
public Content getRoot() throws javax.jcr.RepositoryException, AccessDeniedException
getRoot
in interface HierarchyManager
javax.jcr.RepositoryException
AccessDeniedException
public boolean isExist(String path)
isExist
in interface HierarchyManager
public boolean isGranted(String path, long oldPermissions)
HierarchyManager
isGranted
in interface HierarchyManager
path
- path to content to be checkedoldPermissions
- permission maskpublic boolean isNodeData(String path) throws AccessDeniedException
isNodeData
in interface HierarchyManager
path
- of the requested NodeDataAccessDeniedException
public Content getContentByUUID(String uuid) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
getContentByUUID
in interface HierarchyManager
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
protected Content wrapAsContent(javax.jcr.Node node)
public javax.jcr.Workspace getWorkspace()
getWorkspace
in interface HierarchyManager
public void moveTo(String source, String destination) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
moveTo
in interface HierarchyManager
source
- source node pathdestination
- node where the node has to be movedjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
public void copyTo(String source, String destination) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
copyTo
in interface HierarchyManager
source
- source node pathdestination
- node where the node has to be copiedjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
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
Session.refresh(boolean)
public String getName()
getName
in interface HierarchyManager
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.