@Deprecated public abstract class NodeDataWrapper extends Object implements NodeData
NodeData
to which it delegates. Used to manipulate node datas.MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED
Constructor and Description |
---|
NodeDataWrapper()
Deprecated.
|
NodeDataWrapper(NodeData wrappedNodeData)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deprecated.
Remove this path.
|
String |
getAttribute(String name)
Deprecated.
get attribute, available only if NodeData is of type
Binary . |
Collection<String> |
getAttributeNames()
Deprecated.
get all attribute names.
|
boolean |
getBoolean()
Deprecated.
Returns the
boolean representation of the value. |
long |
getContentLength()
Deprecated.
returns size in bytes.
|
Calendar |
getDate()
Deprecated.
Returns the
Calendar representation of the value. |
double |
getDouble()
Deprecated.
Returns the
double representation of the value. |
String |
getHandle()
Deprecated.
get a handle representing path relative to the content repository.
|
HierarchyManager |
getHierarchyManager()
Deprecated.
|
javax.jcr.Property |
getJCRProperty()
Deprecated.
Access to property at the JCR level.
|
long |
getLong()
Deprecated.
Returns the
long representation of the value. |
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).
|
Content |
getReferencedContent(String repositoryId)
Deprecated.
Same as
NodeData.getReferencedContent() but achieves the referenced node from a different workspace. |
InputStream |
getStream()
Deprecated.
Returns the
InputStream representation of the value. |
String |
getString()
Deprecated.
Returns the
String representation of the value. |
String |
getString(String lineBreak)
Deprecated.
Returns the
String representation of the value: decodes like breaks with the specified regular
expression. |
int |
getType()
Deprecated.
Returns the
type of this NodeData . |
javax.jcr.Value |
getValue()
Deprecated.
Returns the
value of this NodeData . |
javax.jcr.Value[] |
getValues()
Deprecated.
For multi-value properties.
|
NodeData |
getWrappedNodeData()
Deprecated.
|
boolean |
isExist()
Deprecated.
checks if the atom exists in the repository.
|
boolean |
isGranted(long permissions)
Deprecated.
checks for the allowed access rights.
|
int |
isMultiValue()
Deprecated.
for multi-value controls.
|
void |
refresh(boolean keepChanges)
Deprecated.
Refreshes current node keeping all changes.
|
void |
save()
Deprecated.
Persists all changes to the repository if validation succeeds.
|
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 . |
void |
setValue(boolean value)
Deprecated.
set value of type
boolean . |
void |
setValue(Calendar value)
Deprecated.
set value of type
Calendar . |
void |
setValue(Content value)
Deprecated.
Sets a reference value.
|
void |
setValue(double value)
Deprecated.
set value of type
double . |
void |
setValue(InputStream value)
Deprecated.
set value of type
InputStream . |
void |
setValue(int value)
Deprecated.
set value of type
int . |
void |
setValue(long value)
Deprecated.
set value of type
long . |
void |
setValue(String value)
Deprecated.
set value of type
String . |
void |
setValue(javax.jcr.Value value)
Deprecated.
set value of type
Value . |
void |
setValue(javax.jcr.Value[] value)
Deprecated.
set value of type
Value[] . |
void |
setWrappedNodeData(NodeData wrappedNodeData)
Deprecated.
|
String |
toString()
Deprecated.
|
protected Content |
wrap(Content content)
Deprecated.
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 String getName()
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–2018 Magnolia International Ltd.. All rights reserved.