|
||||||||||
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 String |
name
|
Fields inherited from interface info.magnolia.cms.core.NodeData |
---|
MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED |
Constructor Summary | |
---|---|
protected |
AbstractNodeData(Content parent,
String name)
|
Method Summary | |
---|---|
String |
getAttribute(String name)
get attribute, available only if NodeData is of type Binary . |
Collection<String> |
getAttributeNames()
get all attribute names. |
protected abstract Content |
getContentFromJCRReference()
Specific implementation for retrieving the referenced node when using a property of type REFERENCE. |
String |
getHandle()
get a handle representing path relative to the content repository. |
HierarchyManager |
getHierarchyManager()
|
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(String repositoryId)
Same as NodeData.getReferencedContent() but achieves the referenced node from a different workspace. |
String |
getString(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(String name,
Calendar value)
set attribute, available only if NodeData is of type Binary . |
void |
setAttribute(String name,
String value)
set attribute, available only if NodeData is of type Binary . |
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 String name
Constructor Detail |
---|
protected AbstractNodeData(Content parent, String name)
Method Detail |
---|
public HierarchyManager getHierarchyManager()
getHierarchyManager
in interface NodeData
public String getName()
getName
in interface NodeData
public 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 String getString(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()
NodeData
getParent
in interface 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.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 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
javax.jcr.RepositoryException
AccessDeniedException
UnsupportedOperationException
- if its not a Binary typepublic void setAttribute(String name, Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException, UnsupportedOperationException
NodeData
Binary
.
setAttribute
in interface NodeData
javax.jcr.RepositoryException
AccessDeniedException
UnsupportedOperationException
- if its not a Binary typepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |