|
|
|
|
|
||||||||||
| 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
org.torweg.pulse.site.content.RegistryLocaleNode
org.torweg.pulse.site.content.ContentNode
@Entity public class ContentNode
a ContentNode is an entry in the websites ContentRegistry
which can hold Content.
| Field Summary |
|---|
| Fields inherited from class org.torweg.pulse.site.content.AbstractRegistryNode |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
protected |
ContentNode()
Deprecated. |
|
ContentNode(Content c)
creates a new ContentNode with a given AbstractBasicContent. |
|
ContentNode(Content c, Bundle bundle)
creates a new StoreContentNode with a given Content for the given
Bundle. |
| Method Summary | |
|---|---|
ContentNode |
createCopy(java.util.Locale targetLocale, User user)
creates a copy of this node and its content in the given locale. |
org.jdom.Element |
deserializeToJDOM(ServiceRequest req)
serializes the StoreContentNode to JDOM. |
java.util.Map<java.lang.String,java.lang.String> |
getActionURLs(ServiceRequest req)
returns the delete and edit action URLs. |
Content |
getContent()
|
java.lang.String |
getDisabledActions()
returns CREATE:ENABLE_DELETECONTENT. |
void |
setContent(Content v)
|
net.sf.json.JSONObject |
toJSON()
/** returns a JSONObject representation of the ContentNode. |
| Methods inherited from class org.torweg.pulse.site.content.RegistryLocaleNode |
|---|
addChild, addChild, getLocale, setChildren, setLocale |
| 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 |
|---|
@Deprecated protected ContentNode()
public ContentNode(Content c)
AbstractBasicContent.
c - the Contentpublic ContentNode(Content c, Bundle bundle)
Content for the given
Bundle.
c - the Contentbundle - the Bundle| Method Detail |
|---|
public final Content getContent()
public final void setContent(Content v)
v - The content to set.public org.jdom.Element deserializeToJDOM(ServiceRequest req)
StoreContentNode to JDOM.
deserializeToJDOM in class RegistryLocaleNodereq - the current request
Element representing the StoreContentNode.AbstractRegistryNode.deserializeToJDOM()public java.lang.String getDisabledActions()
CREATE:ENABLE_DELETECONTENT.
getDisabledActions in class RegistryLocaleNodeCREATE:ENABLE_DELETECONTENTpublic java.util.Map<java.lang.String,java.lang.String> getActionURLs(ServiceRequest req)
delete and edit action URLs.
getActionURLs in class RegistryLocaleNodereq - the current request
delete and edit action URLspublic net.sf.json.JSONObject toJSON()
JSONObject representation of the ContentNode.
toJSON in class RegistryLocaleNodeJSONObject representation of the ContentNode
public ContentNode createCopy(java.util.Locale targetLocale, User user)
throws java.lang.UnsupportedOperationException
targetLocale - the target localeuser - the current User
java.lang.UnsupportedOperationException - if the content of the node does not support
Content.createCopy(Locale, User)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||