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 RegistryBundleNode

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.Node
          extended by org.torweg.pulse.site.content.AbstractRegistryNode
              extended by org.torweg.pulse.site.content.RegistryBundleNode
All Implemented Interfaces:
java.io.Serializable, JDOMable, INameable, INamed

@Entity
public class RegistryBundleNode
extends AbstractRegistryNode

a Node in the ContentRegistry representing a Bundle . These RegistryBundleNodes are used internally for structuring purposes.

Version:
$Revision: 1501 $
Author:
Thomas Weber, Daniel Dietz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.torweg.pulse.site.content.AbstractRegistryNode
LOGGER
 
Constructor Summary
protected RegistryBundleNode()
          Deprecated. 
  RegistryBundleNode(Bundle b)
          creates a new RegistryBundleNode for the given Bundle.
 
Method Summary
 org.jdom.Element deserializeToJDOM(ServiceRequest request)
          serializes the RegistryBundleNode to JDOM with the action URLs of the children fully initialised.
 boolean equals(java.lang.Object o)
          compares this instance with another Object.
 java.util.Map<java.lang.String,java.lang.String> getActionURLs(ServiceRequest req)
          returns an empty map.
 java.lang.String getDisabledActions()
          returns MOVE.EDIT.REMOVE.CREATE.
 int hashCode()
          Returns a hashCode for this AbstractBasicEntity.
 void setBundle(Bundle bundle)
          sets the Bundle of the RegistryBundleNode and updates the node's name to the name of the Bundle.
 
Methods inherited from class org.torweg.pulse.site.content.AbstractRegistryNode
addChild, addChild, deserializeToJDOM, getBundle, getChildByName, getName, getPathBuilder, setChildren, setName, toJSON
 
Methods inherited from class org.torweg.pulse.util.entity.Node
getChild, getChildIndex, getChildren, getParent, hasChildren, removeChild
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, getFullQualifiedClassNameJAXB, getId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryBundleNode

@Deprecated
protected RegistryBundleNode()
Deprecated. 

default contructor for HibernateTM.


RegistryBundleNode

public RegistryBundleNode(Bundle b)
creates a new RegistryBundleNode for the given Bundle.

Parameters:
b - the Bundle
Method Detail

setBundle

public final void setBundle(Bundle bundle)
sets the Bundle of the RegistryBundleNode and updates the node's name to the name of the Bundle.

Overrides:
setBundle in class AbstractRegistryNode
Parameters:
bundle - the Bundle

deserializeToJDOM

public org.jdom.Element deserializeToJDOM(ServiceRequest request)
serializes the RegistryBundleNode to JDOM with the action URLs of the children fully initialised.

Specified by:
deserializeToJDOM in class AbstractRegistryNode
Parameters:
request - the current request
Returns:
an Element representing the RegistryBundleNode.

equals

public boolean equals(java.lang.Object o)
compares this instance with another Object.

Overrides:
equals in class AbstractBasicEntity
Parameters:
o - the Object to compare with
Returns:
true, if the Object is a RegistryBundleNode with the same name. Otherwise false.

hashCode

public int hashCode()
Description copied from class: AbstractBasicEntity
Returns a hashCode for this AbstractBasicEntity.

Overrides:
hashCode in class AbstractBasicEntity
Returns:
a hash code for this object.
See Also:
AbstractBasicEntity.hashCode()

getDisabledActions

public final java.lang.String getDisabledActions()
returns MOVE.EDIT.REMOVE.CREATE.

Specified by:
getDisabledActions in class AbstractRegistryNode
Returns:
MOVE.EDIT.REMOVE.CREATE

getActionURLs

public final java.util.Map<java.lang.String,java.lang.String> getActionURLs(ServiceRequest req)
returns an empty map.

Specified by:
getActionURLs in class AbstractRegistryNode
Parameters:
req - is ignored
Returns:
an empty map