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 CMSPageEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.cms.admin.CMSPageEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class CMSPageEditor
extends Controller
implements DeprecatedConfigurable

the editor for a CMS Page.

Version:
$Revision: 1984 $
Author:
Daniel Dietz
See Also:
Page

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
CMSPageEditor()
           
 
Method Summary
 void deletePage(Bundle bundle, ServiceRequest request)
          deletes a given page from the current content.
 void init(ConfigBean c)
          initializes the CMSContentEditor.
 FCKEditorResult initEditor(Bundle bundle, ServiceRequest request)
          starts the FCKEditor for the page determined by the request.
 CMSPageEditorResult loadPage(Bundle bundle, ServiceRequest request)
          loads/returns the contents of a specific page.
 void savePage(Bundle bundle, ServiceRequest request)
          saves either existing or creates a new page for the current content.
 
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

CMSPageEditor

public CMSPageEditor()
Method Detail

initEditor

@RequireToken
@Action(value="initPageEditor", generate=true)
@Permission(value="viewPages")
@Groups(values="CMSAdministrator")
public final FCKEditorResult initEditor(Bundle bundle, ServiceRequest request)
starts the FCKEditor for the page determined by the request.

If the request doesn't contain a parameter named 'id' the FCKEditor will opoen with an empty (new) page.

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

savePage

@RequireToken
@Action(value="savePage", generate=true)
@Permission(value="editPages")
@Groups(values="CMSAdministrator")
public final void savePage(Bundle bundle, ServiceRequest request)
saves either existing or creates a new page for the current content.

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

deletePage

@RequireToken
@Action(value="deletePage", generate=true)
@Permission(value="editPages")
@Groups(values="CMSAdministrator")
public final void deletePage(Bundle bundle, ServiceRequest request)
deletes a given page from the current content.

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

loadPage

@RequireToken
@Action(value="loadPage", generate=true)
@Permission(value="viewPages")
@Groups(values="CMSAdministrator")
public final CMSPageEditorResult loadPage(Bundle bundle, ServiceRequest request)
loads/returns the contents of a specific page.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialised pages-pane of the CMSContentEditor

init

public void init(ConfigBean c)
initializes the CMSContentEditor.

Does nothing.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
c - the ConfigBean of this Controller