org.silverpeas.node.web
Class NodeEntity

java.lang.Object
  extended by org.silverpeas.node.web.NodeEntity
All Implemented Interfaces:
Exposable, Serializable

public class NodeEntity
extends Object
implements Exposable

See Also:
Serialized Form

Constructor Summary
NodeEntity()
           
 
Method Summary
static NodeEntity fromNodeDetail(NodeDetail node, String uri)
           
static NodeEntity fromNodeDetail(NodeDetail node, String uri, String lang)
           
static NodeEntity fromNodeDetail(NodeDetail node, URI uri)
          Creates a new node entity from the specified node.
static NodeEntity fromNodeDetail(NodeDetail node, URI uri, String lang)
           
 NodeAttrEntity getAttr()
           
 NodeEntity[] getChildren()
           
 URI getChildrenURI()
           
 URI getChildrenURI(URI uri)
           
 String getData()
           
 String getState()
           
 NodeTranslationEntity[] getTranslations()
           
 URI getURI()
          Gets the URI at which this resource is published and can be accessed.
 void setAttr(NodeAttrEntity attr)
           
 void setChildren(NodeEntity[] children)
           
 void setChildrenURI(URI childrenURI)
           
 void setData(String data)
           
 void setState(String state)
           
 void setTranslations(NodeTranslationEntity[] translations)
           
 void setURI(URI uri)
           
 NodePK toNodePK()
          Gets the node pk objet that this entity represents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeEntity

public NodeEntity()
Method Detail

fromNodeDetail

public static NodeEntity fromNodeDetail(NodeDetail node,
                                        URI uri)
Creates a new node entity from the specified node.

Parameters:
node - the node to entitify.
Returns:
the entity representing the specified node.

fromNodeDetail

public static NodeEntity fromNodeDetail(NodeDetail node,
                                        URI uri,
                                        String lang)

fromNodeDetail

public static NodeEntity fromNodeDetail(NodeDetail node,
                                        String uri)

fromNodeDetail

public static NodeEntity fromNodeDetail(NodeDetail node,
                                        String uri,
                                        String lang)

getURI

public URI getURI()
Description copied from interface: Exposable
Gets the URI at which this resource is published and can be accessed.

Specified by:
getURI in interface Exposable
Returns:
the web resource URI.

setURI

public void setURI(URI uri)

setChildren

public void setChildren(NodeEntity[] children)

getChildren

public NodeEntity[] getChildren()

setData

public final void setData(String data)

getData

public String getData()

setAttr

public final void setAttr(NodeAttrEntity attr)

getAttr

public NodeAttrEntity getAttr()

setState

public void setState(String state)

getState

public String getState()

setChildrenURI

public final void setChildrenURI(URI childrenURI)

getChildrenURI

public final URI getChildrenURI(URI uri)

getChildrenURI

public URI getChildrenURI()

setTranslations

public final void setTranslations(NodeTranslationEntity[] translations)

getTranslations

public NodeTranslationEntity[] getTranslations()

toNodePK

public NodePK toNodePK()
Gets the node pk objet that this entity represents.

Returns:
a node PK.


Copyright © 2016 Silverpeas. All Rights Reserved.