@Deprecated public interface Content extends Cloneable
Node
interface.Modifier and Type | Interface and Description |
---|---|
static interface |
Content.ContentFilter
Deprecated.
since 4.5 - use
Predicate instead. |
Modifier and Type | Method and Description |
---|---|
void |
addMixin(String type)
Deprecated.
add specified mixin type if allowed.
|
javax.jcr.version.Version |
addVersion()
Deprecated.
add version leaving the node checked out.
|
javax.jcr.version.Version |
addVersion(Rule rule)
Deprecated.
add version leaving the node checked out.
|
Content |
createContent(String name)
Deprecated.
Creates a Content node under the current node with the specified name.
|
Content |
createContent(String name,
ItemType contentType)
Deprecated.
Creates a Content node under the current node with the specified name.
|
Content |
createContent(String name,
String contentType)
Deprecated.
Creates a Content node under the current node with the specified name.
|
NodeData |
createNodeData(String name)
Deprecated.
since 4.3, as JCR only supports set or remove operations for properties we
recommend to use
setNodeData(String, Object) instead. |
NodeData |
createNodeData(String name,
int type)
Deprecated.
since 4.3, as JCR only supports set or remove operations for properties we
recommend to use
setNodeData(String, Object) instead. |
NodeData |
createNodeData(String name,
Object obj)
Deprecated.
since 4.3, as JCR only supports set or remove operations for properties we
recommend to use
setNodeData(String, Object) instead. |
NodeData |
createNodeData(String name,
javax.jcr.Value value)
Deprecated.
since 4.3, as JCR only supports set or remove operations for properties we
recommend to use
setNodeData(String, Value) instead. |
NodeData |
createNodeData(String name,
javax.jcr.Value[] value)
Deprecated.
since 4.3, as JCR only supports set or remove operations for properties we
recommend to use
setNodeData(String, Value[]) instead. |
void |
delete()
Deprecated.
Remove this path.
|
void |
delete(String path)
Deprecated.
Remove specified path.
|
void |
deleteNodeData(String name)
Deprecated.
Delete NodeData with the specified name.
|
AccessManager |
getAccessManager()
Deprecated.
since 4.0 - use getHierarchyManager instead
|
javax.jcr.version.VersionIterator |
getAllVersions()
Deprecated.
|
Content |
getAncestor(int level)
Deprecated.
get absolute parent object starting from the root node.
|
Collection<Content> |
getAncestors()
Deprecated.
Convenience method for taglib.
|
ContentVersion |
getBaseVersion()
Deprecated.
get the current base version of this node.
|
Content |
getChildByName(String namePattern)
Deprecated.
since 4.3, either use
getContent(String) or getChildren(String) |
Collection<Content> |
getChildren()
Deprecated.
Gets a Collection containing all child nodes of the same NodeType as "this" object.
|
Collection<Content> |
getChildren(Content.ContentFilter filter)
Deprecated.
Get a collection containing child nodes which satisfies the given filter.
|
Collection<Content> |
getChildren(Content.ContentFilter filter,
Comparator<Content> orderCriteria)
Deprecated.
Get a collection containing child nodes which satisfies the given filter.
|
Collection<Content> |
getChildren(ItemType contentType)
Deprecated.
Get collection of specified content type.
|
Collection<Content> |
getChildren(String contentType)
Deprecated.
Get collection of specified content type and its subtypes.
|
Collection<Content> |
getChildren(String contentType,
String namePattern)
Deprecated.
Get collection of specified content type.
|
Content |
getContent(String name)
Deprecated.
Gets the Content node of the current node with the specified name.
|
String |
getHandle()
Deprecated.
get a handle representing path relative to the content repository.
|
HierarchyManager |
getHierarchyManager()
Deprecated.
|
int |
getIndex()
Deprecated.
This method returns the index of this node within the ordered set of its same-name sibling
nodes.
|
ItemType |
getItemType()
Deprecated.
Get the magnolia ItemType.
|
javax.jcr.Node |
getJCRNode()
Deprecated.
utility method to get Node object used to create current content object.
|
int |
getLevel()
Deprecated.
get node level from the ROOT node.
|
javax.jcr.lock.Lock |
getLock()
Deprecated.
Returns the Lock object that applies to this node.
|
MetaData |
getMetaData()
Deprecated.
Returns the meta data of the current node.
|
javax.jcr.nodetype.NodeType[] |
getMixinNodeTypes()
Deprecated.
Returns an array of NodeType objects representing the mixin node types assigned to this node.
|
String |
getName()
Deprecated.
get node name.
|
NodeData |
getNodeData(String name)
Deprecated.
Returns a
NodeData object. |
Collection<NodeData> |
getNodeDataCollection()
Deprecated.
Gets all properties bind in NodeData object excluding JCR system properties.
|
Collection<NodeData> |
getNodeDataCollection(String namePattern)
Deprecated.
Gets all node datas matching the given pattern.
|
javax.jcr.nodetype.NodeType |
getNodeType()
Deprecated.
returns primary node type definition of the associated Node of this object.
|
String |
getNodeTypeName()
Deprecated.
returns primary node type name of the associated Node of this object.
|
Content |
getParent()
Deprecated.
get parent content object.
|
String |
getTemplate()
Deprecated.
Returns the template name which is assigned to this content.
|
String |
getTitle()
Deprecated.
|
String |
getUUID()
Deprecated.
UUID of the node referenced by this object.
|
ContentVersion |
getVersionedContent(String versionName)
Deprecated.
get content view over the jcr version object.
|
ContentVersion |
getVersionedContent(javax.jcr.version.Version version)
Deprecated.
get content view over the jcr version object.
|
javax.jcr.version.VersionHistory |
getVersionHistory()
Deprecated.
|
javax.jcr.Workspace |
getWorkspace()
Deprecated.
get workspace to which this node attached to.
|
boolean |
hasChildren()
Deprecated.
|
boolean |
hasChildren(String contentType)
Deprecated.
|
boolean |
hasContent(String name)
Deprecated.
|
boolean |
hasMetaData()
Deprecated.
checks if this node has a sub node with name MetaData.
|
boolean |
hasMixin(String mixinName)
Deprecated.
Checks whether or not given mixin is assigned to a type.
|
boolean |
hasNodeData(String name)
Deprecated.
|
boolean |
holdsLock()
Deprecated.
Returns true if this node holds a lock; otherwise returns false.
|
boolean |
isGranted(long permissions)
Deprecated.
since 4.5. Use
PermissionUtil#isGranted(String, String, long) or PermissionUtil#isGranted(javax.jcr.Session, String, String) instead. To convert old style permissions to the new ones, please see PermissionUtil#convertPermissions(long) . |
boolean |
isLocked()
Deprecated.
Returns true if this node is locked either as a result of a lock held by this node or by a
deep lock on a node above this node; otherwise returns false.
|
boolean |
isModified()
Deprecated.
Returns
true if this Item has been saved but has subsequently been
modified through the current session and therefore the state of this item as recorded in the
session differs from the state of this item as saved. |
boolean |
isNodeData(String path)
Deprecated.
checks if the requested resource is an NodeData (Property).
|
boolean |
isNodeType(String type)
Deprecated.
evaluate primary node type of the associated Node of this object.
|
javax.jcr.lock.Lock |
lock(boolean isDeep,
boolean isSessionScoped)
Deprecated.
places a lock on this object.
|
javax.jcr.lock.Lock |
lock(boolean isDeep,
boolean isSessionScoped,
long yieldFor)
Deprecated.
places a lock on this object.
|
void |
orderBefore(String srcName,
String beforeName)
Deprecated.
move current node to the specified location above the named
beforename . |
void |
refresh(boolean keepChanges)
Deprecated.
If keepChanges is false, this method discards all pending changes recorded in this session.
|
void |
removeMixin(String type)
Deprecated.
Removes the specified mixin node type from this node.
|
void |
removeVersionHistory()
Deprecated.
removes all versions of this node and associated version graph.
|
void |
restore(String versionName,
boolean removeExisting)
Deprecated.
Restores this node to the state defined by the version with the specified versionName.
|
void |
restore(javax.jcr.version.Version version,
boolean removeExisting)
Deprecated.
Restores this node to the state defined by the specified version.
|
void |
restore(javax.jcr.version.Version version,
String relPath,
boolean removeExisting)
Deprecated.
Restores the specified version to relPath, relative to this node.
|
void |
restoreByLabel(String versionLabel,
boolean removeExisting)
Deprecated.
Restores this node to the state recorded in the version specified by versionLabel.
|
void |
save()
Deprecated.
Persists all changes to the repository if validation succeeds.
|
NodeData |
setNodeData(String name,
boolean value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
Calendar value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
Content value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
double value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
InputStream value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
long value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
Object value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
String value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
javax.jcr.Value value)
Deprecated.
Sets the node data.
|
NodeData |
setNodeData(String name,
javax.jcr.Value[] value)
Deprecated.
Sets the node data.
|
void |
unlock()
Deprecated.
Removes the lock on this node.
|
void |
updateMetaData()
Deprecated.
You could call this method anytime to update working page properties - Modification date &
Author ID.
|
Content getContent(String name) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
name
- of the node acting as Content
javax.jcr.RepositoryException
- if an error occursAccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.PathNotFoundException
Content createContent(String name) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
ItemType.CONTENT
will be use as the contents primary type.name
- of the node to be created as Content
Content
javax.jcr.RepositoryException
- if an error occursAccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.PathNotFoundException
Content createContent(String name, String contentType) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
name
- of the node to be created as Content
contentType
- JCR node type as configuredContent
javax.jcr.RepositoryException
- if an error occursAccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.PathNotFoundException
Content createContent(String name, ItemType contentType) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
name
- of the node to be created as Content
contentType
- ItemTypeContent
javax.jcr.RepositoryException
- if an error occursAccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.PathNotFoundException
String getTemplate()
String getTitle()
MetaData getMetaData()
Node
NodeData getNodeData(String name)
NodeData
object. If the node data does not exist (respectively if it has no
value) an empty representation is returned whose NodeData.isExist()
will return
false.NodeData
objectString getName()
Node
@Deprecated NodeData createNodeData(String name) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
setNodeData(String, Object)
instead.javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
@Deprecated NodeData createNodeData(String name, int type) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
setNodeData(String, Object)
instead.javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
@Deprecated NodeData createNodeData(String name, javax.jcr.Value value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
setNodeData(String, Value)
instead.AccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
@Deprecated NodeData createNodeData(String name, javax.jcr.Value[] value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
setNodeData(String, Value[])
instead.AccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.PathNotFoundException
javax.jcr.RepositoryException
@Deprecated NodeData createNodeData(String name, Object obj) throws javax.jcr.RepositoryException
setNodeData(String, Object)
instead.javax.jcr.RepositoryException
NodeData setNodeData(String name, javax.jcr.Value value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, javax.jcr.Value[] value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, String value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, long value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, InputStream value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, double value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, boolean value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, Calendar value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, Content value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
NodeData setNodeData(String name, Object value) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
AccessDeniedException
void deleteNodeData(String name) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.PathNotFoundException
void updateMetaData() throws javax.jcr.RepositoryException, AccessDeniedException
AccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.RepositoryException
- if an error occursCollection<Content> getChildren()
Collection<Content> getChildren(Content.ContentFilter filter)
Collection<Content> getChildren(Content.ContentFilter filter, Comparator<Content> orderCriteria)
filter
- filter for the child nodesorderCriteria
- ordering for the selected child nodes; if null than no
particular order of the child nodesCollection<Content> getChildren(String contentType)
contentType
- JCR node type as configuredCollection<Content> getChildren(ItemType contentType)
contentType
- ItemTypeCollection<Content> getChildren(String contentType, String namePattern)
contentType
- JCR node type as configured@Deprecated Content getChildByName(String namePattern)
namePattern
- child node namenull
if not foundCollection<NodeData> getNodeDataCollection()
Collection<NodeData> getNodeDataCollection(String namePattern)
boolean hasChildren()
boolean hasChildren(String contentType)
contentType
- JCR node type as configuredcollectionType
existsboolean hasContent(String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursboolean hasNodeData(String name) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursString getHandle()
Content getParent() throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
AccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.RepositoryException
- if an error occursjavax.jcr.PathNotFoundException
Content getAncestor(int level) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException, AccessDeniedException
level
- level at which the requested node exist, relative to the ROOT nodeAccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.RepositoryException
- if an error occursjavax.jcr.PathNotFoundException
Collection<Content> getAncestors() throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.PathNotFoundException
int getLevel() throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.PathNotFoundException
void orderBefore(String srcName, String beforeName) throws javax.jcr.RepositoryException
beforename
.srcName
- where current node has to be movedbeforeName
- name of the node before the current node has to be placedjavax.jcr.RepositoryException
- if an error occursint getIndex() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.Node getJCRNode()
boolean isNodeType(String type)
javax.jcr.nodetype.NodeType getNodeType() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursString getNodeTypeName() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursItemType getItemType() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void restore(String versionName, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.version.VersionException
- if the specified versionName
does not exist in this
node's version historyjavax.jcr.RepositoryException
- if an error occursjavax.jcr.UnsupportedRepositoryOperationException
void restore(javax.jcr.version.Version version, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.version.VersionException
- if the specified version
is not part of this node's
version historyjavax.jcr.RepositoryException
- if an error occursjavax.jcr.UnsupportedRepositoryOperationException
void restore(javax.jcr.version.Version version, String relPath, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.version.VersionException
- if the specified version
is not part of this node's
version historyjavax.jcr.RepositoryException
- if an error occursjavax.jcr.UnsupportedRepositoryOperationException
void restoreByLabel(String versionLabel, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.version.VersionException
- if the specified versionLabel
does not exist in this
node's version historyjavax.jcr.RepositoryException
- if an error occursjavax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.Version addVersion() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.Version addVersion(Rule rule) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
rule
- to be used to collect contentjavax.jcr.RepositoryException
- if an error occursjavax.jcr.UnsupportedRepositoryOperationException
Rule
boolean isModified()
true
if this Item
has been saved but has subsequently been
modified through the current session and therefore the state of this item as recorded in the
session differs from the state of this item as saved. Within a transaction,
isModified
on an Item
may return false
(because the
Item
has been saved since the modification) even if the modification in question
is not in persistent storage (because the transaction has not yet been committed).
Note that in level 1 (that is, read-only) implementations, this method will always return
false
.true
if this item is modified; false
otherwise.javax.jcr.version.VersionHistory getVersionHistory() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionIterator getAllVersions() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.UnsupportedRepositoryOperationException
ContentVersion getBaseVersion() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
ContentVersion getVersionedContent(javax.jcr.version.Version version) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
ContentVersion
ContentVersion getVersionedContent(String versionName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
ContentVersion
void removeVersionHistory() throws AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
- If not allowed to do write operations on this nodejavax.jcr.RepositoryException
- if unable to remove versions from version storevoid save() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occurs@Deprecated boolean isGranted(long permissions)
PermissionUtil#isGranted(String, String, long)
or PermissionUtil#isGranted(javax.jcr.Session, String, String)
instead. To convert old style permissions to the new ones, please see PermissionUtil#convertPermissions(long)
.permissions
- as defined in javax.jcr.Permissiontrue
if the current user has specified access on this node.void delete() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursvoid delete(String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursboolean isNodeData(String path) throws AccessDeniedException, javax.jcr.RepositoryException
path
- of the requested NodeDataAccessDeniedException
- if the current session does not have sufficient access rights
to complete the operationjavax.jcr.RepositoryException
- if an error occursvoid refresh(boolean keepChanges) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursItem.refresh(boolean)
String getUUID()
void addMixin(String type) throws javax.jcr.RepositoryException
type
- mixin type to be addedjavax.jcr.RepositoryException
- if an error occursvoid removeMixin(String type) throws javax.jcr.RepositoryException
type
- , mixin type to be removedjavax.jcr.RepositoryException
- if an error occursjavax.jcr.nodetype.NodeType[] getMixinNodeTypes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.lock.Lock lock(boolean isDeep, boolean isSessionScoped) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
isDeep
- if true this lock will apply to this node and all its descendants; if false, it
applies only to this node.isSessionScoped
- if true, this lock expires with the current session; if false it
expires when explicitly or automatically unlocked for some other reason.javax.jcr.lock.LockException
- if this node is already locked or isDeep
is true and a
descendant node of this node already holds a lock.javax.jcr.RepositoryException
- if an error occursNode.lock(boolean, boolean)
javax.jcr.lock.Lock lock(boolean isDeep, boolean isSessionScoped, long yieldFor) throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
isDeep
- if true this lock will apply to this node and all its descendants; if false, it
applies only to this node.isSessionScoped
- if true, this lock expires with the current session; if false it
expires when explicitly or automatically unlocked for some other reason.yieldFor
- number of milliseconds for which this method will try to get a lockjavax.jcr.lock.LockException
- if this node is already locked or isDeep
is true and a
descendant node of this node already holds a lock.javax.jcr.RepositoryException
- if an error occursNode.lock(boolean, boolean)
javax.jcr.lock.Lock getLock() throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
javax.jcr.lock.LockException
- If no lock applies to this node, a LockException is thrown.javax.jcr.RepositoryException
- if an error occursvoid unlock() throws javax.jcr.lock.LockException, javax.jcr.RepositoryException
javax.jcr.lock.LockException
- if either does not currently hold a lock, or holds a lock for which
this Session does not have the correct lock tokenjavax.jcr.RepositoryException
- if an error occursboolean holdsLock() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursboolean isLocked() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if an error occursjavax.jcr.Workspace getWorkspace() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if unable to get this node session@Deprecated AccessManager getAccessManager()
HierarchyManager getHierarchyManager()
boolean hasMetaData()
boolean hasMixin(String mixinName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.