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 RegistryLocaleNode

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.RegistryLocaleNode
All Implemented Interfaces:
java.io.Serializable, JDOMable, INameable, INamed
Direct Known Subclasses:
ContentFolderNode, ContentNode

@Entity
public class RegistryLocaleNode
extends AbstractRegistryNode

a subdivision of the ContentRegistry representing a Locale. These RegistryLocaleNodes are used internally for structuring purposes.

Version:
$Revision: 2071 $
Author:
Daniel Dietz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.torweg.pulse.site.content.AbstractRegistryNode
LOGGER
 
Constructor Summary
protected RegistryLocaleNode()
          Deprecated. 
  RegistryLocaleNode(java.util.Locale l)
          creates a new RegistryLocaleNode with the given Locale.
 
Method Summary
 void addChild(int pos, Node n)
          adds a child to the children list at the given position.
 void addChild(Node n)
          adds a child to the children list.
 org.jdom.Element deserializeToJDOM(ServiceRequest req)
          serializes the RegistryLocaleNode to JDOM.
 java.util.Map<java.lang.String,java.lang.String> getActionURLs(ServiceRequest req)
          returns the createFolder action URL.
 java.lang.String getDisabledActions()
          returns MOVE.EDIT.REMOVE:ENABLE_CREATEFOLDER.
 java.util.Locale getLocale()
           
<E extends Node>
void
setChildren(java.util.List<E> nodeList)
          sets the children list.
 void setLocale(java.util.Locale l)
          sets the Locale for the RegistryLocaleNode.
 net.sf.json.JSONObject toJSON()
          /** returns a JSONObject representation of the RegistryBundleNode.
 
Methods inherited from class org.torweg.pulse.site.content.AbstractRegistryNode
deserializeToJDOM, getBundle, getChildByName, getName, getPathBuilder, setBundle, setName
 
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, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryLocaleNode

@Deprecated
protected RegistryLocaleNode()
Deprecated. 

default constructor for HibernateTM.


RegistryLocaleNode

public RegistryLocaleNode(java.util.Locale l)
creates a new RegistryLocaleNode with the given Locale.

Parameters:
l - the Locale of the node
Method Detail

setLocale

public final void setLocale(java.util.Locale l)
sets the Locale for the RegistryLocaleNode.

Parameters:
l - the Locale to be set

getLocale

public final java.util.Locale getLocale()
Returns:
the locale

addChild

public void addChild(int pos, Node n)
adds a child to the children list at the given position.

If the child is an instance of RegistryLocaleNode, its Locale is checked to equal the RegistryLocaleNode's Locale.

Overrides:
addChild in class AbstractRegistryNode
Parameters:
pos - the position
n - the node
See Also:
Node.addChild(int, Node)

addChild

public void addChild(Node n)
adds a child to the children list.

If the child is an instance of RegistryLocaleNode, its Locale is checked to equal the RegistryLocaleNode's Locale.

Overrides:
addChild in class AbstractRegistryNode
Parameters:
n - the node
See Also:
Node.addChild(Node)

setChildren

public <E extends Node> void setChildren(java.util.List<E> nodeList)
sets the children list.

If a child is an instance of RegistryLocaleNode, its Locale is checked to equal the RegistryLocaleNode's Locale.

Overrides:
setChildren in class AbstractRegistryNode
Type Parameters:
E - extends Node
Parameters:
nodeList - the list of children
See Also:
Node.setChildren(List)

deserializeToJDOM

public org.jdom.Element deserializeToJDOM(ServiceRequest req)
serializes the RegistryLocaleNode to JDOM.

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

getDisabledActions

public java.lang.String getDisabledActions()
returns MOVE.EDIT.REMOVE:ENABLE_CREATEFOLDER.

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

getActionURLs

public java.util.Map<java.lang.String,java.lang.String> getActionURLs(ServiceRequest req)
returns the createFolder action URL.

Specified by:
getActionURLs in class AbstractRegistryNode
Parameters:
req - the current request
Returns:
the createFolder action URL

toJSON

public net.sf.json.JSONObject toJSON()
/** returns a JSONObject representation of the RegistryBundleNode.

Overrides:
toJSON in class AbstractRegistryNode
Returns:
a JSONObject representation of the RegistryBundleNode