pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site.content
Class ContentRegistry

java.lang.Object
  extended by org.torweg.pulse.site.content.ContentRegistry
All Implemented Interfaces:
JDOMable

@Entity
public class ContentRegistry
extends java.lang.Object
implements JDOMable

The base of the ContentRegistry.

TODO: explain

Version:
$Revision: 1398 $
Author:
Thomas Weber

Constructor Summary
ContentRegistry()
          builds a new empty ContentRegistry.
 
Method Summary
 void addBundleNode(RegistryBundleNode n)
          adds a new Bundle to the ContentRegistry.
 org.jdom.Element deserializeToJDOM()
          this will deserialize the state of the JDOMable as a JDOM Element.
 org.jdom.Content deserializeToJDOM(ServiceRequest request)
          return the ContentRegistry as a JDOM with the action URLs of all children initialised.
 RegistryBundleNode getBundleNode(java.lang.String bundleName)
          get the RegistryBundleNode for the named Bundle .
 long getId()
          returns the primary key.
 java.util.Set<RegistryBundleNode> getRootNodes()
           
 void setRootNode(java.util.Set<RegistryBundleNode> n)
          set the set of RegistryBundleNodes of the ContentRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentRegistry

public ContentRegistry()
builds a new empty ContentRegistry.

Method Detail

setRootNode

public final void setRootNode(java.util.Set<RegistryBundleNode> n)
set the set of RegistryBundleNodes of the ContentRegistry.

Parameters:
n - the set of RegistryBundleNodes

getRootNodes

public final java.util.Set<RegistryBundleNode> getRootNodes()
Returns:
returns the root RegistryBundleNodes of the ContentRegistry

addBundleNode

public final void addBundleNode(RegistryBundleNode n)
adds a new Bundle to the ContentRegistry.

Parameters:
n - the Node of the Bundle to be added

getBundleNode

public final RegistryBundleNode getBundleNode(java.lang.String bundleName)
get the RegistryBundleNode for the named Bundle .

Parameters:
bundleName - the name of the Bundle
Returns:
the RegistryBundleNode for the named Bundle, or null, if no matching RegistryBundleNode could be found in the ContentRegistry

getId

public final long getId()
returns the primary key.

Returns:
returns the id of the ContentRegistry

deserializeToJDOM

public final org.jdom.Element deserializeToJDOM()
Description copied from interface: JDOMable
this will deserialize the state of the JDOMable as a JDOM Element.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the root node and the first child level of the ContentRegistry as an Element

deserializeToJDOM

public org.jdom.Content deserializeToJDOM(ServiceRequest request)
return the ContentRegistry as a JDOM with the action URLs of all children initialised.

Parameters:
request - the current request
Returns:
the ContentRegistry as a JDOM with the action URLs of all children initialised.