|
|
|
|
|
||||||||||
| 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.ContentFolderNode
@Entity public class ContentFolderNode
a Node in the ContentRegistry representing a Bundle
. These ContentFolderNodes are used internally for structuring
purposes.
ContentFolderNodes can contain multiple child ContentFolderNodes and also multiple ContentNodes.
| Field Summary |
|---|
| Fields inherited from class org.torweg.pulse.site.content.AbstractRegistryNode |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
ContentFolderNode()
Deprecated. |
|
ContentFolderNode(java.lang.String n)
creates a new ContentFolderNode with the given name. |
|
ContentFolderNode(java.lang.String n, Bundle b)
creates a new ContentFolderNode with the given name and the given
bundle. |
|
ContentFolderNode(java.lang.String n, Bundle b,
java.util.Locale l)
creates a new ContentFolderNode with the given name and the given
bundle and the given locale. |
|
| Method Summary | |
|---|---|
ContentNode |
addContent(Content c)
adds a Content to the ContentFolderNode. |
ContentFolderNode |
createCopy(java.util.Locale targetLocale, User user)
creates a complete copy if the folder and its contents in the given locale. |
org.jdom.Element |
deserializeToJDOM(ServiceRequest req)
serializes the ContentFolderNode to JDOM. |
java.util.Map<java.lang.String,java.lang.String> |
getActionURLs(ServiceRequest req)
returns the delete, create and rename action
URLs. |
java.lang.String |
getDisabledActions()
returns :ENABLE_CREATEFOLDER.ENABLE_CREATECONTENT. |
boolean |
removeContent(Content c)
removes a Content from the ContentFolderNode. |
net.sf.json.JSONObject |
toJSON()
/** returns a JSONObject representation of the ContentFolderNode. |
| 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 public ContentFolderNode()
public ContentFolderNode(java.lang.String n)
ContentFolderNode with the given name.
n - the name of the new ContentFolderNodepublic ContentFolderNode(java.lang.String n, Bundle b)
ContentFolderNode with the given name and the given
bundle.
n - the nameb - the bundle
public ContentFolderNode(java.lang.String n, Bundle b,
java.util.Locale l)
ContentFolderNode with the given name and the given
bundle and the given locale.
n - the nameb - the bundlel - the locale| Method Detail |
|---|
public ContentNode addContent(Content c)
Content to the ContentFolderNode.
c - the Content to be set
ContentNodepublic boolean removeContent(Content c)
Content from the ContentFolderNode.
c - the Content to be removed
true, if and only if the Content has been removed
from the ContentFolderNode; otherwise falsepublic org.jdom.Element deserializeToJDOM(ServiceRequest req)
ContentFolderNode to JDOM.
deserializeToJDOM in class RegistryLocaleNodereq - the current request
Element representing the ContentFolderNode.AbstractRegistryNode.deserializeToJDOM()public java.lang.String getDisabledActions()
:ENABLE_CREATEFOLDER.ENABLE_CREATECONTENT.
getDisabledActions in class RegistryLocaleNode:ENABLE_CREATEFOLDER.ENABLE_CREATECONTENTpublic java.util.Map<java.lang.String,java.lang.String> getActionURLs(ServiceRequest req)
delete, create and rename action
URLs.
getActionURLs in class RegistryLocaleNodereq - the current request
delete, create and rename action URLspublic net.sf.json.JSONObject toJSON()
JSONObject representation of the ContentFolderNode.
toJSON in class RegistryLocaleNodeJSONObject representation of the ContentFolderNodepublic ContentFolderNode createCopy(java.util.Locale targetLocale, User user)
targetLocale - the target localeuser - the current User
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||