|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.bundle.Controller
org.torweg.pulse.site.content.admin.AbstractContentRegistryEditor
public abstract class AbstractContentRegistryEditor
The main, abstract ContentRegistryEditor to derive the ContentRegistryEditors for the Bundles from.
This controller provides the functions for the usage of the content-registry as shown in the west-panel of the website-administration:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller |
|---|
Controller.AlwaysRun |
| Constructor Summary | |
|---|---|
AbstractContentRegistryEditor()
|
|
| Method Summary | |
|---|---|
protected net.sf.json.JSONObject |
applyContentRegistrySettingsToEditNodeMap(ServiceRequest request, Node n,
net.sf.json.JSONObject nodeJSONObject)
Applies the ContentRegistry-edit-specific settings (e.g. |
protected net.sf.json.JSONObject |
applyContentRegistrySettingsToSelectNodeOrFolderMap(ServiceRequest request, Node node,
net.sf.json.JSONObject nodeJSONObject)
Applies the ContentRegistry-specific settings (e.g. |
java.lang.Object |
browseContentRegistryEdit(Bundle bundle, ServiceRequest request)
TODO: add a clear description! |
java.lang.Object |
browseContentRegistrySelect(Bundle bundle, ServiceRequest request)
TODO: add a clear description! |
protected net.sf.json.JSONObject |
canMoveContentOnlyToFolderCheck(RegistryLocaleNode newParentNode, RegistryLocaleNode moveNode)
The check for moving contents. |
abstract java.lang.Object |
create(Bundle bundle, ServiceRequest request)
Starts the "create-editor" for the current Bundle. |
void |
createContentFolderNode(Bundle bundle, ServiceRequest request)
creates and saves a new ContentFolderNode. |
void |
createContentGroup(Bundle bundle, ServiceRequest request)
creates and saves a new ContentGroup. |
void |
deleteAbstractContentNode(Bundle bundle, ServiceRequest request)
deletes a ContentNode. |
void |
deleteRegistryLocaleNode(Bundle bundle, ServiceRequest request)
deletes a RegistryLocale (if empty). |
protected ContentRegistryEditorConfig |
getConfig()
Returns the ContentRegistryEditorConfig. |
void |
getContentRegistryIdPath(Bundle bundle, ServiceRequest request)
returns an array of registry-node-ids which are the ids of the registry-nodes from content-registry-root down to the content-node that holds the content the id of which has been passed with the request. |
void |
init(ConfigBean c)
initializes the ContentRegistryEditor. |
RegistryEditorResult |
initEditor(Bundle bundle, ServiceRequest request)
Initialises the west-panel with the ContentRegistryEditor -tree. |
void |
moveRegistryLocaleNode(Bundle bundle, ServiceRequest request)
moves a {@code ? |
void |
renameRegistryLocaleNode(Bundle bundle, ServiceRequest request)
renames a RegistryLocaleNode. |
| Methods inherited from class org.torweg.pulse.bundle.Controller |
|---|
getAlwaysRun, isAlwaysRun, setAlwaysRun |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractContentRegistryEditor()
| Method Detail |
|---|
@RequireToken @Action(value="contentRegistryTreeInit", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final RegistryEditorResult initEditor(Bundle bundle, ServiceRequest request)
ContentRegistryEditor -tree.
bundle - the current Bundlerequest - the current ServiceRequest
Result for the ContentRegistryEditor@RequireToken @Action(value="browseContentRegistryEdit", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final java.lang.Object browseContentRegistryEdit(Bundle bundle, ServiceRequest request)
bundle - the Bundle we belong torequest - the current ServiceRequest
null@RequireToken @Action(value="browseContentRegistrySelect", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final java.lang.Object browseContentRegistrySelect(Bundle bundle, ServiceRequest request)
bundle - the Bundle we belong torequest - the current ServiceRequest
null
protected net.sf.json.JSONObject applyContentRegistrySettingsToSelectNodeOrFolderMap(ServiceRequest request, Node node,
net.sf.json.JSONObject nodeJSONObject)
ContentRegistry-specific settings (e.g.
mode='select') to the node.
request - the current ServiceRequestnode - the current NodenodeJSONObject - the node-JSON to be modified
protected net.sf.json.JSONObject applyContentRegistrySettingsToEditNodeMap(ServiceRequest request, Node n,
net.sf.json.JSONObject nodeJSONObject)
ContentRegistry-edit-specific settings (e.g. URLs) to
the node.
request - the current ServiceRequestn - the current NodenodeJSONObject - the node-JSON to be modified
@RequireToken @Action(value="moveRegistryLocaleNode", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final void moveRegistryLocaleNode(Bundle bundle, ServiceRequest request)
? extends RegistryLocaleNode. By default a RegistryLocaleNode itself is not movable.
bundle - the current Bundlerequest - the current ServiceRequestprotected net.sf.json.JSONObject canMoveContentOnlyToFolderCheck(RegistryLocaleNode newParentNode, RegistryLocaleNode moveNode)
newParentNode - the new parentmoveNode - the node to be moved
JSONObject if occurs, null otherwise@RequireToken @Action(value="getContentRegistryIdPathContent", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final void getContentRegistryIdPath(Bundle bundle, ServiceRequest request)
bundle - the Bundle we belong torequest - the current ServiceRequest@RequireToken @Action(value="deleteAbstractContentNode", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final void deleteAbstractContentNode(Bundle bundle, ServiceRequest request)
ContentNode.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="renameRegistryLocaleNode", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final void renameRegistryLocaleNode(Bundle bundle, ServiceRequest request)
RegistryLocaleNode.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="deleteRegistryLocaleNode", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final void deleteRegistryLocaleNode(Bundle bundle, ServiceRequest request)
RegistryLocale (if empty).
Used for deletion of folders within website-administration of ContentRegistry.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="createContentFolderNode", generate=true) @Permission(value="useContentRegistry") @Groups(values="Admin-UI") public final void createContentFolderNode(Bundle bundle, ServiceRequest request)
ContentFolderNode.
bundle - the current Bundlerequest - the current ServiceRequest@RequireToken @Action(value="createContentGroup") @Permission(value="useContentRegistry") @Groups(values="CoreAdministrator") public final void createContentGroup(Bundle bundle, ServiceRequest request)
ContentGroup.
bundle - the current Bundlerequest - the current ServiceRequestprotected final ContentRegistryEditorConfig getConfig()
ContentRegistryEditorConfig.
public final void init(ConfigBean c)
ContentRegistryEditor.
init in interface DeprecatedConfigurablec - the ConfigBean of this Controllerpublic abstract java.lang.Object create(Bundle bundle, ServiceRequest request)
Bundle.
bundle - the current Bundlerequest - the current ServiceRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||