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.cms.admin
Class CMSContentEditor

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.cms.admin.CMSContentEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class CMSContentEditor
extends AbstractBasicContentEditor

the editor for the CMSContent as used by the ext-admin.

Version:
$Revision: 1543 $
Author:
Daniel Dietz
See Also:
CMSContent

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
CMSContentEditor()
           
 
Method Summary
 void copyContent(Bundle bundle, ServiceRequest request)
          creates a copy of a CMSContent specified by parameter "id" in request in a folder specified by parameter "toid" in request using the locale of the folder.
 CMSContentEditorResult initEditor(Bundle bundle, ServiceRequest request)
          returns the initialized CMSContentEditor for a Content which is determined by a given id in the request.
 Result loadPages(Bundle bundle, ServiceRequest request)
          returns the initialized pages-panel of the current content.
 void pageToSummary(Bundle bundle, ServiceRequest request)
          sets a given page as summary of the current content.
 void saveContent(Bundle bundle, ServiceRequest request)
          saves the basic properties of a content (name, suffix, keywords), as well as the page-order.
 
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

CMSContentEditor

public CMSContentEditor()
Method Detail

initEditor

@RequireToken
@Action(value="initEditor", generate=true)
@Permission(value="viewCMSContent")
@Groups(values="CMSAdministrator")
public final CMSContentEditorResult initEditor(Bundle bundle, ServiceRequest request)
returns the initialized CMSContentEditor for a Content which is determined by a given id in the request.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result: the initialized CMSContentEditor

saveContent

@RequireToken
@Action(value="saveContent", generate=true)
@Permission(value="editCMSContent")
@Groups(values="CMSAdministrator")
public final void saveContent(Bundle bundle, ServiceRequest request)
saves the basic properties of a content (name, suffix, keywords), as well as the page-order.

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

copyContent

@RequireToken
@Action(value="copyContent", generate=true)
@Permission(value="editCMSContent")
@Groups(values="CMSAdministrator")
public final void copyContent(Bundle bundle, ServiceRequest request)
creates a copy of a CMSContent 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

loadPages

@RequireToken
@Action(value="loadPages", generate=true)
@Permission(value="viewCMSContent")
@Groups(values="CMSAdministrator")
public final Result loadPages(Bundle bundle, ServiceRequest request)
returns the initialized pages-panel of the current content.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialized CMSContentEditor

pageToSummary

@RequireToken
@Action(value="pageToSummary", generate=true)
@Permission(value="editCMSContent")
@Groups(values="CMSAdministrator")
public final void pageToSummary(Bundle bundle, ServiceRequest request)
sets a given page as summary of the current content.

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