info.magnolia.cms.core
Class DefaultNodeData

java.lang.Object
  extended by info.magnolia.cms.core.AbstractNodeData
      extended by info.magnolia.cms.core.DefaultNodeData
All Implemented Interfaces:
NodeData, Cloneable

Deprecated. since 4.5, use jcr.Property instead.

@Deprecated
public class DefaultNodeData
extends AbstractNodeData

Wrapper class for a jcr property.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.cms.core.AbstractNodeData
name
 
Fields inherited from interface info.magnolia.cms.core.NodeData
MULTIVALUE_FALSE, MULTIVALUE_TRUE, MULTIVALUE_UNDEFINED
 
Constructor Summary
protected DefaultNodeData(Content parent, String name)
          Deprecated.  
 
Method Summary
 void delete()
          Deprecated. Remove this path.
 boolean getBoolean()
          Deprecated. Returns the boolean representation of the value.
protected  Content getContentFromJCRReference()
          Deprecated. Specific implementation for retrieving the referenced node when using a property of type REFERENCE.
 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.
protected  javax.jcr.Node getJCRNode()
          Deprecated.  
 javax.jcr.Property getJCRProperty()
          Deprecated. Access to property at the JCR level.
 long getLong()
          Deprecated. Returns the long representation of the value.
 InputStream getStream()
          Deprecated. Returns the InputStream representation of the value.
 String getString()
          Deprecated. Returns the String representation of the value.
 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.
 void refresh(boolean keepChanges)
          Deprecated. Refreshes current node keeping all changes.
 void save()
          Deprecated. Persists all changes to the repository if validation succeeds.
 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[].
 
Methods inherited from class info.magnolia.cms.core.AbstractNodeData
getAttribute, getAttributeNames, getHandle, getHierarchyManager, getName, getParent, getReferencedContent, getReferencedContent, getReferencedContent, getString, isGranted, isMultiValue, setAttribute, setAttribute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultNodeData

protected DefaultNodeData(Content parent,
                          String name)
Deprecated. 
Method Detail

getValue

public javax.jcr.Value getValue()
Deprecated. 
Description copied from interface: NodeData
Returns the value of this NodeData. One of type:

Returns:
Value

getValues

public javax.jcr.Value[] getValues()
Deprecated. 
Description copied from interface: NodeData
For multi-value properties.

Returns:
Value[]

getString

public String getString()
Deprecated. 
Description copied from interface: NodeData
Returns the String representation of the value.

Returns:
String

getLong

public long getLong()
Deprecated. 
Description copied from interface: NodeData
Returns the long representation of the value.

Returns:
long

getDouble

public double getDouble()
Deprecated. 
Description copied from interface: NodeData
Returns the double representation of the value.

Returns:
double

getDate

public Calendar getDate()
Deprecated. 
Description copied from interface: NodeData
Returns the Calendar representation of the value.

Returns:
Calendar

getBoolean

public boolean getBoolean()
Deprecated. 
Description copied from interface: NodeData
Returns the boolean representation of the value.

Returns:
boolean

getStream

public InputStream getStream()
Deprecated. 
Description copied from interface: NodeData
Returns the InputStream representation of the value.

Returns:
boolean

getType

public int getType()
Deprecated. 
Description copied from interface: NodeData
Returns the type of this NodeData. One of:

Returns:
PropertyType

getContentLength

public long getContentLength()
Deprecated. 
Description copied from interface: NodeData
returns size in bytes.

Returns:
content length

getJCRProperty

public javax.jcr.Property getJCRProperty()
Deprecated. 
Description copied from interface: NodeData
Access to property at the JCR level. Available only to be available, should not be used in normal circumstances!

Returns:
Property

getJCRNode

protected javax.jcr.Node getJCRNode()
Deprecated. 

getContentFromJCRReference

protected Content getContentFromJCRReference()
                                      throws javax.jcr.RepositoryException
Deprecated. 
Description copied from class: AbstractNodeData
Specific implementation for retrieving the referenced node when using a property of type REFERENCE.

Specified by:
getContentFromJCRReference in class AbstractNodeData
Throws:
javax.jcr.RepositoryException

setValue

public void setValue(String value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type String.

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

setValue

public void setValue(int value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type int.

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

setValue

public void setValue(long value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type long.

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

setValue

public void setValue(double value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type double.

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

setValue

public void setValue(boolean value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type boolean.

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

setValue

public void setValue(Calendar value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type Calendar.

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

setValue

public void setValue(javax.jcr.Value value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type Value.

Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

public void setValue(javax.jcr.Value[] value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type Value[].

Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

public void setValue(Content value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
Sets a reference value.

Throws:
javax.jcr.RepositoryException
AccessDeniedException

setValue

public void setValue(InputStream value)
              throws javax.jcr.RepositoryException,
                     AccessDeniedException
Deprecated. 
Description copied from interface: NodeData
set value of type InputStream.

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

isExist

public boolean isExist()
Deprecated. 
Description copied from interface: NodeData
checks if the atom exists in the repository.

Returns:
boolean

save

public void save()
          throws javax.jcr.RepositoryException
Deprecated. 
Description copied from interface: NodeData
Persists all changes to the repository if validation succeeds.

Throws:
javax.jcr.RepositoryException

delete

public void delete()
            throws javax.jcr.RepositoryException
Deprecated. 
Description copied from interface: NodeData
Remove this path.

Throws:
javax.jcr.RepositoryException

refresh

public void refresh(boolean keepChanges)
             throws javax.jcr.RepositoryException
Deprecated. 
Description copied from interface: NodeData
Refreshes current node keeping all changes.

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


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.