info.magnolia.cms.core
Interface NodeData

All Superinterfaces:
Cloneable
All Known Implementing Classes:
AbstractNodeData, BinaryNodeData, DefaultNodeData, LazyNodeDataWrapper, NodeDataWrapper, NonExistingNodeData, SystemNodeDataWrapper

Deprecated. since 4.5, use jcr.Property instead.

public interface NodeData
extends Cloneable

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

MULTIVALUE_UNDEFINED

static final int MULTIVALUE_UNDEFINED
Deprecated. 
See Also:
Constant Field Values

MULTIVALUE_TRUE

static final int MULTIVALUE_TRUE
Deprecated. 
See Also:
Constant Field Values

MULTIVALUE_FALSE

static final int MULTIVALUE_FALSE
Deprecated. 
See Also:
Constant Field Values
Method Detail

getValue

javax.jcr.Value getValue()
Deprecated. 
Returns the value of this NodeData. One of type:


getValues

javax.jcr.Value[] getValues()
Deprecated. 
For multi-value properties.

Returns:
Value[]

getString

String getString(String lineBreak)
Deprecated. 
Returns the String representation of the value: decodes like breaks with the specified regular expression.

Parameters:
lineBreak - , regular expression

getString

String getString()
Deprecated. 
Returns the String representation of the value.


getLong

long getLong()
Deprecated. 
Returns the long representation of the value.


getDouble

double getDouble()
Deprecated. 
Returns the double representation of the value.


getDate

Calendar getDate()
Deprecated. 
Returns the Calendar representation of the value.


getBoolean

boolean getBoolean()
Deprecated. 
Returns the boolean representation of the value.


getStream

InputStream getStream()
Deprecated. 
Returns the InputStream representation of the value.


getReferencedContent

Content getReferencedContent()
                             throws javax.jcr.RepositoryException,
                                    javax.jcr.PathNotFoundException,
                                    javax.jcr.RepositoryException
Deprecated. 
Returns the Content that this NodeData references (if its type is PropertyType.REFERENCE). If it is of type PATH or STRING it tries to resolve the node by using the path. The path can be relative or absolute. If the property type is STRING, it tries finally to get the node by using the value as an uuid.

Throws:
javax.jcr.RepositoryException
javax.jcr.PathNotFoundException

getReferencedContent

Content getReferencedContent(String repositoryId)
                             throws javax.jcr.PathNotFoundException,
                                    javax.jcr.RepositoryException
Deprecated. 
Same as getReferencedContent() but achieves the referenced node from a different workspace.

Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

getType

int getType()
Deprecated. 
Returns the type of this NodeData. One of:

Returns:
the type of the property

getName

String getName()
Deprecated. 
Returns:
atom name

getContentLength

long getContentLength()
Deprecated. 
returns size in bytes.

Returns:
content length

getJCRProperty

javax.jcr.Property getJCRProperty()
                                  throws javax.jcr.PathNotFoundException
Deprecated. 
Access to property at the JCR level. Available only to be available, should not be used in normal circumstances!

Throws:
javax.jcr.PathNotFoundException

setValue

void setValue(String value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type String.

Parameters:
value - , string to be set
Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(int value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type int.

Parameters:
value - , int value to be set
Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(long value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type long.

Parameters:
value - , long value to be set
Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(InputStream value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type InputStream.

Parameters:
value - , InputStream to be set
Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(double value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type double.

Parameters:
value - , double value to be set
Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(boolean value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type boolean.

Parameters:
value - , boolean value to be set
Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(Calendar value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type Calendar.

Parameters:
value - , Calendar value to be set
Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(Content value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Sets a reference value.

Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(javax.jcr.Value value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type Value.

Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

void setValue(javax.jcr.Value[] value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
set value of type Value[].

Throws:
javax.jcr.RepositoryException
AccessDeniedException

setAttribute

void setAttribute(String name,
                  String value)
                  throws javax.jcr.RepositoryException,
                         AccessDeniedException,
                         UnsupportedOperationException
Deprecated. 
set attribute, available only if NodeData is of type Binary.

Throws:
javax.jcr.RepositoryException
AccessDeniedException
UnsupportedOperationException - if its not a Binary type

setAttribute

void setAttribute(String name,
                  Calendar value)
                  throws javax.jcr.RepositoryException,
                         AccessDeniedException,
                         UnsupportedOperationException
Deprecated. 
set attribute, available only if NodeData is of type Binary.

Throws:
javax.jcr.RepositoryException
AccessDeniedException
UnsupportedOperationException - if its not a Binary type

getAttribute

String getAttribute(String name)
Deprecated. 
get attribute, available only if NodeData is of type Binary.

Returns:
string value

getAttributeNames

Collection<String> getAttributeNames()
                                     throws javax.jcr.RepositoryException
Deprecated. 
get all attribute names.

Returns:
collection of attribute names
Throws:
javax.jcr.RepositoryException

isExist

boolean isExist()
Deprecated. 
checks if the atom exists in the repository.


getHandle

String getHandle()
Deprecated. 
get a handle representing path relative to the content repository.

Returns:
String representing path (handle) of the content

save

void save()
          throws javax.jcr.RepositoryException
Deprecated. 
Persists all changes to the repository if validation succeeds.

Throws:
javax.jcr.RepositoryException

isGranted

boolean isGranted(long permissions)
Deprecated. 
checks for the allowed access rights.

Parameters:
permissions - as defined in javax.jcr.Permission
Returns:
true is the current user has specified access on this node.

delete

void delete()
            throws javax.jcr.RepositoryException
Deprecated. 
Remove this path.

Throws:
javax.jcr.RepositoryException

refresh

void refresh(boolean keepChanges)
             throws javax.jcr.RepositoryException
Deprecated. 
Refreshes current node keeping all changes.

Throws:
javax.jcr.RepositoryException
See Also:
Item.refresh(boolean)

isMultiValue

int isMultiValue()
Deprecated. 
for multi-value controls.

Returns:

getParent

Content getParent()
                  throws AccessDeniedException,
                         javax.jcr.ItemNotFoundException,
                         javax.jcr.AccessDeniedException,
                         javax.jcr.RepositoryException
Deprecated. 
returns Parent node.

Throws:
AccessDeniedException
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException

getHierarchyManager

HierarchyManager getHierarchyManager()
Deprecated. 


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.