|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.core.AbstractNodeData
public abstract class AbstractNodeData
Implementing some default behavior.
Field Summary | |
---|---|
protected java.lang.String |
name
|
protected Content |
parent
|
Fields inherited from interface info.magnolia.cms.core.NodeData |
---|
MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED |
Constructor Summary | |
---|---|
protected |
AbstractNodeData(Content parent,
java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
get attribute, available only if NodeData is of type Binary . |
java.util.Collection<java.lang.String> |
getAttributeNames()
get all attribute names. |
protected abstract Content |
getContentFromJCRReference()
Specific implementation for retrieving the referenced node when using a property of type REFERENCE. |
java.lang.String |
getHandle()
get a handle representing path relative to the content repository. |
HierarchyManager |
getHierarchyManager()
|
java.lang.String |
getName()
|
Content |
getParent()
returns Parent node. |
Content |
getReferencedContent()
Returns the Content that this NodeData references (if its type is PropertyType.REFERENCE). |
protected Content |
getReferencedContent(HierarchyManager hm)
|
Content |
getReferencedContent(java.lang.String repositoryId)
Same as NodeData.getReferencedContent() but achieves the referenced node from a different workspace. |
java.lang.String |
getString(java.lang.String lineBreak)
Returns the String representation of the value: decodes like breaks with the specified regular
expression. |
boolean |
isGranted(long permissions)
checks for the allowed access rights. |
int |
isMultiValue()
for multi-value controls. |
void |
setAttribute(java.lang.String name,
java.util.Calendar value)
set attribute, available only if NodeData is of type Binary . |
void |
setAttribute(java.lang.String name,
java.lang.String value)
set attribute, available only if NodeData is of type Binary . |
void |
setParent(Content parent)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface info.magnolia.cms.core.NodeData |
---|
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 |
Field Detail |
---|
protected java.lang.String name
protected Content parent
Constructor Detail |
---|
protected AbstractNodeData(Content parent, java.lang.String name)
Method Detail |
---|
public HierarchyManager getHierarchyManager()
getHierarchyManager
in interface NodeData
public java.lang.String getName()
getName
in interface NodeData
public java.lang.String getHandle()
NodeData
getHandle
in interface NodeData
public boolean isGranted(long permissions)
NodeData
isGranted
in interface NodeData
permissions
- as defined in javax.jcr.Permission
public java.lang.String getString(java.lang.String lineBreak)
NodeData
String
representation of the value: decodes like breaks with the specified regular
expression.
getString
in interface NodeData
lineBreak
- , regular expression
public Content getParent() throws AccessDeniedException, javax.jcr.ItemNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
NodeData
getParent
in interface NodeData
AccessDeniedException
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public void setParent(Content parent)
public Content getReferencedContent(java.lang.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.RepositoryException
javax.jcr.PathNotFoundException
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 java.lang.String getAttribute(java.lang.String name)
NodeData
Binary
.
getAttribute
in interface NodeData
public java.util.Collection<java.lang.String> getAttributeNames() throws javax.jcr.RepositoryException
NodeData
getAttributeNames
in interface NodeData
javax.jcr.RepositoryException
public void setAttribute(java.lang.String name, java.lang.String value) throws javax.jcr.RepositoryException, AccessDeniedException, java.lang.UnsupportedOperationException
NodeData
Binary
.
setAttribute
in interface NodeData
javax.jcr.RepositoryException
AccessDeniedException
java.lang.UnsupportedOperationException
- if its not a Binary typepublic void setAttribute(java.lang.String name, java.util.Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException, java.lang.UnsupportedOperationException
NodeData
Binary
.
setAttribute
in interface NodeData
javax.jcr.RepositoryException
AccessDeniedException
java.lang.UnsupportedOperationException
- if its not a Binary typepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |