it.eng.spago.cms
Class CmsNode

java.lang.Object
  extended by it.eng.spago.cms.CmsNode

public class CmsNode
extends java.lang.Object

Models a cms node


Constructor Summary
CmsNode(java.lang.String namein, java.lang.String pathin, java.lang.String versionin, java.lang.String uuidin, java.lang.String typein)
          Constructor of the class useful to create a node setting its name, path, current version name, uuid and type
CmsNode(java.lang.String namein, java.lang.String pathin, java.lang.String versionin, java.lang.String uuidin, java.lang.String typein, java.io.InputStream contin)
          Constructor of the class useful to create a node setting its name, path, current version name, uuid, type and content
CmsNode(java.lang.String namein, java.lang.String pathin, java.lang.String versionin, java.lang.String uuidin, java.lang.String typein, java.util.List childsin, java.util.List propsin, java.util.List versin)
          Constructor of the class useful to create a node setting its name, path, current version name, uuid, type, list of childs, list of properties and list of versions
CmsNode(java.lang.String namein, java.lang.String pathin, java.lang.String versionin, java.lang.String uuidin, java.lang.String typein, java.util.List childsin, java.util.List propsin, java.util.List versin, java.io.InputStream contin)
          Constructor of the class useful to create a node setting its name, path, current version name, uuid, type, list of childs, list of properties, list of versions and content
 
Method Summary
 java.util.List getChilds()
          Gets the list of the node childs
 java.io.InputStream getContent()
          Gets the content of the node
 java.lang.String getName()
          Gets the name of the node
 java.lang.String getPath()
          Gets the path of the node
 java.util.List getProperties()
          Gets the list of the node properties
 java.lang.String getType()
          Gets the type of the node
 java.lang.String getUuid()
          Gets the uuid of the node
 java.lang.String getVersion()
          Gets the current version name
 java.util.List getVersions()
          Gets the list of the node versions
 void setChilds(java.util.List childs)
          Sets the childs list
 void setContent(java.io.InputStream content)
          Sets the content of the node
 void setName(java.lang.String name)
          Sets the name of the node
 void setPath(java.lang.String path)
          Sets the path of the node
 void setProperties(java.util.List properties)
          Sets the list of node properties
 void setType(java.lang.String type)
          Sets the type
 void setUuid(java.lang.String uuid)
          Sets the uuid
 void setVersion(java.lang.String version)
          Sets tbe name of the current version
 void setVersions(java.util.List versions)
          Sets the list of the node versions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsNode

public CmsNode(java.lang.String namein,
               java.lang.String pathin,
               java.lang.String versionin,
               java.lang.String uuidin,
               java.lang.String typein)
Constructor of the class useful to create a node setting its name, path, current version name, uuid and type

Parameters:
namein - the name of the node
pathin - the path of the node
versionin - the current version name
uuidin - the uuid of the node
typein - the type of the node

CmsNode

public CmsNode(java.lang.String namein,
               java.lang.String pathin,
               java.lang.String versionin,
               java.lang.String uuidin,
               java.lang.String typein,
               java.io.InputStream contin)
Constructor of the class useful to create a node setting its name, path, current version name, uuid, type and content

Parameters:
namein - the name of the node
pathin - the path of the node
versionin - the current version name
uuidin - the uuid of the node
typein - the type of the node
contin - the InputStream content of the node

CmsNode

public CmsNode(java.lang.String namein,
               java.lang.String pathin,
               java.lang.String versionin,
               java.lang.String uuidin,
               java.lang.String typein,
               java.util.List childsin,
               java.util.List propsin,
               java.util.List versin,
               java.io.InputStream contin)
Constructor of the class useful to create a node setting its name, path, current version name, uuid, type, list of childs, list of properties, list of versions and content

Parameters:
namein - the name of the node
pathin - the path of the node
versionin - the current version name
uuidin - the uuid of the node
typein - the type of the node
chidsin - the list of the node childs Each child must be of type it.eng.spago.cms.CmsNode
propsin - the list of the node properties Each property must be of type it.eng.spago.cms.CmsProperty
verin - the list of the node versions Each version must be of type it.eng.spago.cms.CmsVersion
contin - the InputStream content of the node

CmsNode

public CmsNode(java.lang.String namein,
               java.lang.String pathin,
               java.lang.String versionin,
               java.lang.String uuidin,
               java.lang.String typein,
               java.util.List childsin,
               java.util.List propsin,
               java.util.List versin)
Constructor of the class useful to create a node setting its name, path, current version name, uuid, type, list of childs, list of properties and list of versions

Parameters:
namein - the name of the node
pathin - the path of the node
versionin - the current version name
uuidin - the uuid of the node
typein - the type of the node
chidsin - the list of the node childs Each child must be of type it.eng.spago.cms.CmsNode
propsin - the list of the node properties Each property must be of type it.eng.spago.cms.CmsProperty
verin - the list of the node versions Each version must be of type it.eng.spago.cms.CmsVersion
Method Detail

getChilds

public java.util.List getChilds()
Gets the list of the node childs

Returns:
The list of the child nodes Each child is an instance of type it.eng.spago.cms.CmsNode

setChilds

public void setChilds(java.util.List childs)
Sets the childs list

Parameters:
childs - The childs list. Each child must be an instance of type it.eng.spago.cms.CmsChild

getContent

public java.io.InputStream getContent()
Gets the content of the node

Returns:
The InputStream of the node content

setContent

public void setContent(java.io.InputStream content)
Sets the content of the node

Parameters:
content - The content of the node

getName

public java.lang.String getName()
Gets the name of the node

Returns:
the name of the node

setName

public void setName(java.lang.String name)
Sets the name of the node

Parameters:
name - The name of the node

getPath

public java.lang.String getPath()
Gets the path of the node

Returns:
the path of the node

setPath

public void setPath(java.lang.String path)
Sets the path of the node

Parameters:
path - The path of the node

getProperties

public java.util.List getProperties()
Gets the list of the node properties

Returns:
The list of the child properties Each property is an instance of type it.eng.spago.cms.CmsProperty

setProperties

public void setProperties(java.util.List properties)
Sets the list of node properties

Parameters:
properties - The list of node properties. Each property mmust be an instance of type it.eng.spago.cms.CmsProperty

getType

public java.lang.String getType()
Gets the type of the node

Returns:
the type of the node

setType

public void setType(java.lang.String type)
Sets the type

Parameters:
type - The type of the node

getUuid

public java.lang.String getUuid()
Gets the uuid of the node

Returns:
The uuid of the node

setUuid

public void setUuid(java.lang.String uuid)
Sets the uuid

Parameters:
uuid - The uuid of the node

getVersion

public java.lang.String getVersion()
Gets the current version name

Returns:
The current version name

setVersion

public void setVersion(java.lang.String version)
Sets tbe name of the current version

Parameters:
version - The name of the current version

getVersions

public java.util.List getVersions()
Gets the list of the node versions

Returns:
The list of the child versions Each version is an instance of type it.eng.spago.cms.CmsVersion

setVersions

public void setVersions(java.util.List versions)
Sets the list of the node versions

Parameters:
versions - The list of the node versions. Each version must be an instance of the type it.eng.spago.cms.CmsVersion