MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED
Constructor and Description |
---|
NodeDataWrapper() |
NodeDataWrapper(NodeData wrappedNodeData) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
Remove this path.
|
String |
getAttribute(String name)
get attribute, available only if NodeData is of type
Binary . |
Collection<String> |
getAttributeNames()
get all attribute names.
|
boolean |
getBoolean()
Returns the
boolean representation of the value. |
long |
getContentLength()
returns size in bytes.
|
Calendar |
getDate()
Returns the
Calendar representation of the value. |
double |
getDouble()
Returns the
double representation of the value. |
String |
getHandle()
get a handle representing path relative to the content repository.
|
HierarchyManager |
getHierarchyManager() |
javax.jcr.Property |
getJCRProperty()
Access to property at the JCR level.
|
long |
getLong()
Returns the
long representation of the value. |
String |
getName() |
Content |
getParent()
returns Parent node.
|
Content |
getReferencedContent()
Returns the Content that this NodeData references (if its type is PropertyType.REFERENCE).
|
Content |
getReferencedContent(String repositoryId)
Same as
NodeData.getReferencedContent() but achieves the referenced node from a different workspace. |
InputStream |
getStream()
Returns the
InputStream representation of the value. |
String |
getString()
Returns the
String representation of the value. |
String |
getString(String lineBreak)
Returns the
String representation of the value: decodes like breaks with the specified regular
expression. |
int |
getType()
Returns the
type of this NodeData . |
javax.jcr.Value |
getValue()
Returns the
value of this NodeData . |
javax.jcr.Value[] |
getValues()
For multi-value properties.
|
NodeData |
getWrappedNodeData() |
boolean |
isExist()
checks if the atom exists in the repository.
|
boolean |
isGranted(long permissions)
checks for the allowed access rights.
|
int |
isMultiValue()
for multi-value controls.
|
void |
refresh(boolean keepChanges)
Refreshes current node keeping all changes.
|
void |
save()
Persists all changes to the repository if validation succeeds.
|
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 . |
void |
setValue(boolean value)
set value of type
boolean . |
void |
setValue(Calendar value)
set value of type
Calendar . |
void |
setValue(Content value)
Sets a reference value.
|
void |
setValue(double value)
set value of type
double . |
void |
setValue(InputStream value)
set value of type
InputStream . |
void |
setValue(int value)
set value of type
int . |
void |
setValue(long value)
set value of type
long . |
void |
setValue(String value)
set value of type
String . |
void |
setValue(javax.jcr.Value value)
set value of type
Value . |
void |
setValue(javax.jcr.Value[] value)
set value of type
Value[] . |
void |
setWrappedNodeData(NodeData wrappedNodeData) |
String |
toString() |
protected Content |
wrap(Content content)
Default implementation of content wrapping for cases where NodeData needs to return content.
|
public NodeDataWrapper()
public NodeDataWrapper(NodeData wrappedNodeData)
public NodeData getWrappedNodeData()
public void setWrappedNodeData(NodeData wrappedNodeData)
protected Content wrap(Content content)
public void delete() throws javax.jcr.RepositoryException
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 boolean getBoolean()
NodeData
boolean
representation of the value.getBoolean
in interface NodeData
public long getContentLength()
NodeData
getContentLength
in interface NodeData
public Calendar getDate()
NodeData
Calendar
representation of the value.public double getDouble()
NodeData
double
representation of the value.public String getHandle()
NodeData
public HierarchyManager getHierarchyManager()
getHierarchyManager
in interface NodeData
public javax.jcr.Property getJCRProperty() throws javax.jcr.PathNotFoundException
NodeData
getJCRProperty
in interface NodeData
javax.jcr.PathNotFoundException
public long getLong()
NodeData
long
representation of the value.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 Content getReferencedContent() throws javax.jcr.RepositoryException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
NodeData
getReferencedContent
in interface NodeData
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
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 InputStream getStream()
NodeData
InputStream
representation of the value.public String getString()
NodeData
String
representation of the value.public String getString(String lineBreak)
NodeData
String
representation of the value: decodes like breaks with the specified regular
expression.public int getType()
NodeData
type
of this NodeData
. One of:
PropertyType.STRING
PropertyType.DATE
PropertyType.SOFTLINK
PropertyType.BINARY
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.BOOLEAN
public javax.jcr.Value getValue()
NodeData
value
of this NodeData
. One of type:
PropertyType.STRING
PropertyType.DATE
PropertyType.SOFTLINK
PropertyType.BINARY
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.BOOLEAN
public javax.jcr.Value[] getValues()
NodeData
public boolean isExist()
NodeData
public boolean isGranted(long permissions)
NodeData
public int isMultiValue()
NodeData
isMultiValue
in interface NodeData
public void refresh(boolean keepChanges) throws javax.jcr.RepositoryException
NodeData
public void save() throws javax.jcr.RepositoryException
NodeData
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
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 setValue(boolean value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
boolean
.setValue
in interface NodeData
value
- , boolean value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
Calendar
.setValue
in interface NodeData
value
- , Calendar value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(double value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
double
.setValue
in interface NodeData
value
- , double value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(InputStream value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
InputStream
.setValue
in interface NodeData
value
- , InputStream to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(int value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
int
.setValue
in interface NodeData
value
- , int value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(long value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
long
.setValue
in interface NodeData
value
- , long value to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(String value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
String
.setValue
in interface NodeData
value
- , string to be setjavax.jcr.RepositoryException
AccessDeniedException
public void setValue(Content value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
setValue
in interface NodeData
javax.jcr.RepositoryException
AccessDeniedException
public void setValue(javax.jcr.Value value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
Value
.setValue
in interface NodeData
javax.jcr.RepositoryException
AccessDeniedException
public void setValue(javax.jcr.Value[] value) throws javax.jcr.RepositoryException, AccessDeniedException
NodeData
Value[]
.setValue
in interface NodeData
javax.jcr.RepositoryException
AccessDeniedException
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.