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.component.core.contentregistry
Class ContentGroupEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
          extended by org.torweg.pulse.component.core.contentregistry.ContentGroupEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class ContentGroupEditor
extends AbstractBasicContentEditor

The editor for a ContentGroup within the administration.

Version:
$Revision: 2057 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Field Summary
 
Fields inherited from class org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
LOGGER
 
Constructor Summary
ContentGroupEditor()
           
 
Method Summary
 void copy(Bundle bundle, ServiceRequest request)
          Creates a copy of a ContentGroup specified by parameter "id" in request in a folder specified by parameter "toid" in request using the locale of the folder.
 FCKEditorResult initDescriptionEditor(ServiceRequest request)
          starts the FCKEditor for the description of the content determined by the request.
 AbstractBasicContentEditorResult initEditor(ServiceRequest request)
          Returns the initialised ContentGroupEditor for a ContentGroup which is determined by a given id in the request.
 AbstractBasicContentEditorResult loadDescription(ServiceRequest request)
           
 void save(Bundle bundle, ServiceRequest request)
          Saves the basic properties of a content (name, suffix, keywords).
 void saveDescription(Bundle bundle, ServiceRequest request)
           
 
Methods inherited from class org.torweg.pulse.site.content.admin.AbstractBasicContentEditor
addAttachmentToContent, addToLocalizationMap, buildDocument, editAttachmentOfContent, findSitemapNodesForContent, getConfig, init, initAttachmentDescriptionEditor, initFileBrowserForAttachmentsForContent, initHibernateSearchFix, initReferenceDurationEditor, initSummaryEditor, loadAttachmentDescription, loadAttachmentsForContent, loadContentLocalizationMap, loadSummary, removeAttachmentFromContent, removeFromLocalizationMap, removeReferenceDuration, saveAttachmentDescription, saveSummary, setBasics
 
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

ContentGroupEditor

public ContentGroupEditor()
Method Detail

initEditor

@RequireToken
@Action(value="initContentGroupEditor", generate=true)
@Permission(value="editContentGroup")
@Groups(values="CoreAdministrator")
public final AbstractBasicContentEditorResult initEditor(ServiceRequest request)
Returns the initialised ContentGroupEditor for a ContentGroup which is determined by a given id in the request.

Parameters:
request - the current ServiceRequest
Returns:
an AJAX-result: the initialized ContentGroupEditor

save

@RequireToken
@Action(value="saveContentGroup", generate=true)
@Permission(value="editContentGroup")
@Groups(values="CoreAdministrator")
public final void save(Bundle bundle, ServiceRequest request)
Saves the basic properties of a content (name, suffix, keywords).

Parameters:
bundle - the current Bundle
request - the current ServiceRequest

initDescriptionEditor

@RequireToken
@Action(value="initContentGroupDescriptionEditor", generate=true)
@Permission(value="editContentGroup")
@Groups(values="CoreAdministrator")
public final FCKEditorResult initDescriptionEditor(ServiceRequest request)
starts the FCKEditor for the description of the content determined by the request.

Parameters:
request - the current ServiceRequest
Returns:
the initialized description-editor

saveDescription

@RequireToken
@Action(value="saveContentGroupDescription", generate=true)
@Permission(value="editContentGroup")
@Groups(values="CoreAdministrator")
public final void saveDescription(Bundle bundle, ServiceRequest request)
Parameters:
bundle - the current Bundle
request - the current ServiceRequest

loadDescription

@RequireToken
@Action(value="loadContentGroupDescription", generate=true)
@Permission(value="editContentGroup")
@Groups(values="CoreAdministrator")
public final AbstractBasicContentEditorResult loadDescription(ServiceRequest request)
Parameters:
request - the current ServiceRequest
Returns:
a result representing the description of the current content

copy

@RequireToken
@Action(value="copyContentGroup", generate=true)
@Permission(value="editContentGroup")
@Groups(values="CoreAdministrator")
public final void copy(Bundle bundle, ServiceRequest request)
Creates a copy of a ContentGroup specified by parameter "id" in request in a folder specified by parameter "toid" in request using the locale of the folder.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest