|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.Node
org.torweg.pulse.site.content.AbstractRegistryNode
@Entity public abstract class AbstractRegistryNode
a AbstractRegistryNode is an entry in the websites
ContentRegistry.
ContentRegistry, Serialized Form| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOGGER
the logger. |
| Constructor Summary | |
|---|---|
protected |
AbstractRegistryNode()
needed for HibernateTM. |
| Method Summary | ||
|---|---|---|
void |
addChild(int pos, Node n)
adds a new AbstractRegistryNode at a given position to the list
children of this AbstractRegistryNode if Locales match. |
|
void |
addChild(Node n)
Adds a new AbstractRegistryNode to the children of this
AbstractRegistryNode if Locales match. |
|
org.jdom.Element |
deserializeToJDOM()
calls deserializeToJDOM(ServiceRequest) with
null. |
|
abstract org.jdom.Element |
deserializeToJDOM(ServiceRequest request)
|
|
abstract java.util.Map<java.lang.String,java.lang.String> |
getActionURLs(ServiceRequest req)
returns a map of all the possible actions and their corresponding URLs for the AbstractRegistryNode. |
|
Bundle |
getBundle()
returns the Bundle of the RegistryBundleNode. |
|
AbstractRegistryNode |
getChildByName(java.lang.String n)
Returns a child by name if exists. |
|
abstract java.lang.String |
getDisabledActions()
returns a string with the disabled tree actions delimited by colons. |
|
java.lang.String |
getName()
returns the name. |
|
java.lang.StringBuilder |
getPathBuilder()
Returns a StringBuilder with the ContentRegistry-path of
the AbstractRegistryNode. |
|
void |
setBundle(Bundle b)
sets the Bundle of the RegistryBundleNode. |
|
|
setChildren(java.util.List<E> nodeList)
sets the children of the AbstractRegistryNode if Locales
match. |
|
void |
setName(java.lang.String n)
sets a new name for the AbstractRegistryNode. |
|
net.sf.json.JSONObject |
toJSON()
/** returns a JSONObject representation of the
AbstractRegistryNode. |
|
| 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 |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOGGER
| Constructor Detail |
|---|
protected AbstractRegistryNode()
| Method Detail |
|---|
public final java.lang.String getName()
INamed
getName in interface INamedAbstractRegistryNode.public final void setName(java.lang.String n)
AbstractRegistryNode.
setName in interface INameablen - the name to be setpublic void setBundle(Bundle b)
Bundle of the RegistryBundleNode. The name
of the RegistryBundleNode is set to Bundle#getName().
b - the Bundlepublic final Bundle getBundle()
Bundle of the RegistryBundleNode.
Bundle of the RegistryBundleNodepublic void addChild(Node n)
AbstractRegistryNode to the children of this
AbstractRegistryNode if Locales match.
addChild in class Noden - the AbstractRegistryNode to be added.public void addChild(int pos, Node n)
AbstractRegistryNode at a given position to the list
children of this AbstractRegistryNode if Locales match.
addChild in class Nodepos - the position in the list of childrenn - the AbstractRegistryNode to become a child of this
AbstractRegistryNode.public <E extends Node> void setChildren(java.util.List<E> nodeList)
AbstractRegistryNode if Locales
match.
setChildren in class NodeE - a class extending NodenodeList - the list of child AbstractRegistryNodespublic final AbstractRegistryNode getChildByName(java.lang.String n)
n - the name to look for
AbstractRegistryNode if found, null otherwisepublic final java.lang.StringBuilder getPathBuilder()
StringBuilder with the ContentRegistry-path of
the AbstractRegistryNode.
System.getProperty("file.separator") will be used as
path-separator.
StringBuilder with the ContentRegistry-path of
the AbstractRegistryNodepublic abstract java.lang.String getDisabledActions()
public abstract java.util.Map<java.lang.String,java.lang.String> getActionURLs(ServiceRequest req)
AbstractRegistryNode.
req - the current request
AbstractRegistryNodepublic final org.jdom.Element deserializeToJDOM()
deserializeToJDOM(ServiceRequest) with
null.
deserializeToJDOM in interface JDOMableAbstractRegistryNode as an Elementpublic abstract org.jdom.Element deserializeToJDOM(ServiceRequest request)
request - the current request
AbstractRegistryNode as an Elementpublic net.sf.json.JSONObject toJSON()
JSONObject representation of the
AbstractRegistryNode.
toJSON in class NodeJSONObject representation of the
AbstractRegistryNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||