|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeData
Represents a content value object. If the node data does not have any value
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)
Field Summary | |
---|---|
static int |
MULTIVALUE_FALSE
Deprecated. |
static int |
MULTIVALUE_TRUE
Deprecated. |
static int |
MULTIVALUE_UNDEFINED
Deprecated. |
Method Summary | |
---|---|
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[] . |
Field Detail |
---|
static final int MULTIVALUE_UNDEFINED
static final int MULTIVALUE_TRUE
static final int MULTIVALUE_FALSE
Method Detail |
---|
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 set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(int value) throws javax.jcr.RepositoryException, AccessDeniedException
int
.
value
- , int value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(long value) throws javax.jcr.RepositoryException, AccessDeniedException
long
.
value
- , long value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(InputStream value) throws javax.jcr.RepositoryException, AccessDeniedException
InputStream
.
value
- , InputStream to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(double value) throws javax.jcr.RepositoryException, AccessDeniedException
double
.
value
- , double value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(boolean value) throws javax.jcr.RepositoryException, AccessDeniedException
boolean
.
value
- , boolean value to be set
javax.jcr.RepositoryException
AccessDeniedException
void setValue(Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException
Calendar
.
value
- , Calendar value to be set
javax.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
.
javax.jcr.RepositoryException
AccessDeniedException
UnsupportedOperationException
- if its not a Binary typevoid setAttribute(String name, Calendar value) throws javax.jcr.RepositoryException, AccessDeniedException, UnsupportedOperationException
Binary
.
javax.jcr.RepositoryException
AccessDeniedException
UnsupportedOperationException
- if its not a Binary typeString 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.Permission
void 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |