@Deprecated public abstract class AbstractNodeData extends Object implements NodeData
Modifier and Type | Field and Description |
---|---|
protected String |
name
Deprecated.
|
MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED
Modifier | Constructor and Description |
---|---|
protected |
AbstractNodeData(Content parent,
String name)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute(String name)
Deprecated.
get attribute, available only if NodeData is of type
Binary . |
Collection<String> |
getAttributeNames()
Deprecated.
get all attribute names.
|
protected abstract Content |
getContentFromJCRReference()
Deprecated.
Specific implementation for retrieving the referenced node when using a property of type REFERENCE.
|
String |
getHandle()
Deprecated.
get a handle representing path relative to the content repository.
|
HierarchyManager |
getHierarchyManager()
Deprecated.
|
String |
getName()
Deprecated.
|
Content |
getParent()
Deprecated.
returns Parent node.
|
Content |
getReferencedContent()
Deprecated.
Returns the Content that this NodeData references (if its type is PropertyType.REFERENCE).
|
protected Content |
getReferencedContent(HierarchyManager hm)
Deprecated.
|
Content |
getReferencedContent(String repositoryId)
Deprecated.
Same as
NodeData.getReferencedContent() but achieves the referenced node from a different workspace. |
String |
getString(String lineBreak)
Deprecated.
Returns the
String representation of the value: decodes like breaks with the specified regular
expression. |
boolean |
isGranted(long permissions)
Deprecated.
checks for the allowed access rights.
|
int |
isMultiValue()
Deprecated.
for multi-value controls.
|
void |
setAttribute(String name,
Calendar value)
Deprecated.
set attribute, available only if NodeData is of type
Binary . |
void |
setAttribute(String name,
String value)
Deprecated.
set attribute, available only if NodeData is of type
Binary . |
String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
delete, getBoolean, getContentLength, getDate, getDouble, getJCRProperty, getLong, getStream, getString, getType, getValue, getValues, isExist, refresh, save, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue
protected String name
public HierarchyManager getHierarchyManager()
getHierarchyManager
in interface NodeData
public String getName()
public String getHandle()
NodeData
public boolean isGranted(long permissions)
NodeData
public String getString(String lineBreak)
NodeData
String
representation of the value: decodes like breaks with the specified regular
expression.public Content getParent()
NodeData
public Content getReferencedContent(String repositoryId) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
NodeData
NodeData.getReferencedContent()
but achieves the referenced node from a different workspace.getReferencedContent
in interface NodeData
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
public Content getReferencedContent() throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
NodeData
getReferencedContent
in interface NodeData
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
protected Content getReferencedContent(HierarchyManager hm) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
protected abstract Content getContentFromJCRReference() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public int isMultiValue()
NodeData
isMultiValue
in interface NodeData
public String getAttribute(String name)
NodeData
Binary
.getAttribute
in interface NodeData
public Collection<String> getAttributeNames() throws javax.jcr.RepositoryException
NodeData
getAttributeNames
in interface NodeData
javax.jcr.RepositoryException
public void setAttribute(String name, String value) throws javax.jcr.RepositoryException, AccessDeniedException, UnsupportedOperationException
NodeData
Binary
.setAttribute
in interface NodeData
UnsupportedOperationException
- if its not a Binary typejavax.jcr.RepositoryException
AccessDeniedException
public void setAttribute(String name, Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException, UnsupportedOperationException
NodeData
Binary
.setAttribute
in interface NodeData
UnsupportedOperationException
- if its not a Binary typejavax.jcr.RepositoryException
AccessDeniedException
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.