public interface NodeData extends Cloneable
isExist()
returns false. As soon a value is set - null is not considered a value - the
node data starts to exist. The various value read methods (getString()
,
getBoolean()
, ..) will always return a value (default or null)Modifier and Type | Field and Description |
---|---|
static int |
MULTIVALUE_FALSE
Deprecated.
|
static int |
MULTIVALUE_TRUE
Deprecated.
|
static int |
MULTIVALUE_UNDEFINED
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
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.
|
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[] . |
static final int MULTIVALUE_UNDEFINED
static final int MULTIVALUE_TRUE
static final int MULTIVALUE_FALSE
javax.jcr.Value getValue()
value
of this NodeData
. One of type:
PropertyType.STRING
PropertyType.DATE
PropertyType.SOFTLINK
PropertyType.BINARY
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.BOOLEAN
javax.jcr.Value[] getValues()
String getString(String lineBreak)
String
representation of the value: decodes like breaks with the specified regular
expression.lineBreak
- , regular expressionString getString()
String
representation of the value.long getLong()
long
representation of the value.double getDouble()
double
representation of the value.Calendar getDate()
Calendar
representation of the value.boolean getBoolean()
boolean
representation of the value.InputStream getStream()
InputStream
representation of the value.Content getReferencedContent() throws javax.jcr.RepositoryException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException
Content getReferencedContent(String repositoryId) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
getReferencedContent()
but achieves the referenced node from a different workspace.javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
int getType()
type
of this NodeData
. One of:
PropertyType.STRING
PropertyType.DATE
PropertyType.SOFTLINK
PropertyType.BINARY
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.BOOLEAN
String getName()
long getContentLength()
javax.jcr.Property getJCRProperty() throws javax.jcr.PathNotFoundException
javax.jcr.PathNotFoundException
void setValue(String value) throws javax.jcr.RepositoryException, AccessDeniedException
String
.value
- , string to be setjavax.jcr.RepositoryException
AccessDeniedException
void setValue(int value) throws javax.jcr.RepositoryException, AccessDeniedException
int
.value
- , int value to be setjavax.jcr.RepositoryException
AccessDeniedException
void setValue(long value) throws javax.jcr.RepositoryException, AccessDeniedException
long
.value
- , long value to be setjavax.jcr.RepositoryException
AccessDeniedException
void setValue(InputStream value) throws javax.jcr.RepositoryException, AccessDeniedException
InputStream
.value
- , InputStream to be setjavax.jcr.RepositoryException
AccessDeniedException
void setValue(double value) throws javax.jcr.RepositoryException, AccessDeniedException
double
.value
- , double value to be setjavax.jcr.RepositoryException
AccessDeniedException
void setValue(boolean value) throws javax.jcr.RepositoryException, AccessDeniedException
boolean
.value
- , boolean value to be setjavax.jcr.RepositoryException
AccessDeniedException
void setValue(Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException
Calendar
.value
- , Calendar value to be setjavax.jcr.RepositoryException
AccessDeniedException
void setValue(Content value) throws javax.jcr.RepositoryException, AccessDeniedException
javax.jcr.RepositoryException
AccessDeniedException
void setValue(javax.jcr.Value value) throws javax.jcr.RepositoryException, AccessDeniedException
Value
.javax.jcr.RepositoryException
AccessDeniedException
void setValue(javax.jcr.Value[] value) throws javax.jcr.RepositoryException, AccessDeniedException
Value[]
.javax.jcr.RepositoryException
AccessDeniedException
void setAttribute(String name, String value) throws javax.jcr.RepositoryException, AccessDeniedException, UnsupportedOperationException
Binary
.UnsupportedOperationException
- if its not a Binary typejavax.jcr.RepositoryException
AccessDeniedException
void setAttribute(String name, Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException, UnsupportedOperationException
Binary
.UnsupportedOperationException
- if its not a Binary typejavax.jcr.RepositoryException
AccessDeniedException
String getAttribute(String name)
Binary
.Collection<String> getAttributeNames() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
boolean isExist()
String getHandle()
void save() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
boolean isGranted(long permissions)
permissions
- as defined in javax.jcr.Permissionvoid delete() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void refresh(boolean keepChanges) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Item.refresh(boolean)
int isMultiValue()
Content getParent() throws AccessDeniedException, javax.jcr.ItemNotFoundException, javax.jcr.AccessDeniedException, javax.jcr.RepositoryException
AccessDeniedException
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
HierarchyManager getHierarchyManager()
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.