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.site.view
Class ViewEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.site.view.ViewEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class ViewEditor
extends Controller
implements DeprecatedConfigurable

the editor for a SitemapNodes View.

Version:
$Revision: 2013 $ *
Author:
Daniel Dietz
See Also:
View

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
ViewEditor()
           
 
Method Summary
 void createNewView(Bundle bundle, ServiceRequest request)
           
 void createSitemapSectionTag(ServiceRequest request)
          Creates a new SitemapSectionTag with the given name.
 void deleteSitemapSectionTag(ServiceRequest request)
          Deletes a SitemapSectionTag by given id.
 void editSitemapSectionTag(ServiceRequest request)
          Renames a SitemapSectionTag by given id to given text.
 void init(ConfigBean c)
          initializes the ViewEditor.
 ViewEditorResult initEditor(ServiceRequest request)
          Returns a Result.
 ViewEditorResult initSitemapDurationEditor(ServiceRequest request)
          Returns a Result to initialise the duration-editor.
 ViewEditorResult initSitemapSectionTagEditor(ServiceRequest request)
          Returns a Result to initialise the SitemapSectionTag -editor.
 void loadRolesViewEditor(ServiceRequest request)
          Loads the Roles of a View specified by request-parameter "id" for the roles-assorter of the view-editor within the pulse -web-site-administration.
 void removeSitemapDuration(ServiceRequest request)
          Removes the Duration form a SitemapNode specified by given id in request.
 void removeView(Bundle bundle, ServiceRequest request)
           
 void saveViewEditor(Bundle bundle, ServiceRequest request)
          returns a JSONResponse.
 
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

ViewEditor

public ViewEditor()
Method Detail

initEditor

@RequireToken
@Action(value="initViewEditor", generate=true)
@Permission(value="editViews")
@Groups(values="ViewEditor")
public final ViewEditorResult initEditor(ServiceRequest request)
Returns a Result.

Parameters:
request - the current ServiceRequest
Returns:
a Result

saveViewEditor

@RequireToken
@Action(value="saveViewEditor", generate=true)
@Permission(value="saveViewEditor")
@Groups(values="ViewEditor")
public final void saveViewEditor(Bundle bundle, ServiceRequest request)
returns a JSONResponse.

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

removeView

@RequireToken
@Action(value="sitemapNodeRemoveView", generate=true)
@Permission(value="editViews")
@Groups(values="ViewEditor")
public final void removeView(Bundle bundle, ServiceRequest request)
Parameters:
bundle - the Bundle we belong to
request - the current ServiceRequest

createNewView

@RequireToken
@Action(value="viewEditorCreateNewView", generate=true)
@Permission(value="editViews")
@Groups(values="ViewEditor")
public final void createNewView(Bundle bundle, ServiceRequest request)
Parameters:
bundle - the Bundle we belong to
request - the current ServiceRequest

loadRolesViewEditor

@RequireToken
@Action(value="loadRolesViewEditor", generate=true)
@Permission(value="loadRolesViewEditor")
@Groups(values="ViewEditor")
public final void loadRolesViewEditor(ServiceRequest request)
Loads the Roles of a View specified by request-parameter "id" for the roles-assorter of the view-editor within the pulse -web-site-administration.

Use: load the associated and the un-associated roles of the view according to given request-parameter "unasoc" (default false).

Parameters:
request - the current ServiceRequest

initSitemapSectionTagEditor

@RequireToken
@Action(value="initSitemapSectionTagEditor", generate=true)
@Permission(value="initSitemapSectionTagEditor")
@Groups(values="ViewEditor")
public final ViewEditorResult initSitemapSectionTagEditor(ServiceRequest request)
Returns a Result to initialise the SitemapSectionTag -editor.

Parameters:
request - the current ServiceRequest
Returns:
a Result

createSitemapSectionTag

@RequireToken
@Action(value="createSitemapSectionTag", generate=true)
@Permission(value="createSitemapSectionTag")
@Groups(values="ViewEditor")
public final void createSitemapSectionTag(ServiceRequest request)
Creates a new SitemapSectionTag with the given name.

Parameters:
request - the current ServiceRequest

deleteSitemapSectionTag

@RequireToken
@Action(value="deleteSitemapSectionTag", generate=true)
@Permission(value="deleteSitemapSectionTag")
@Groups(values="ViewEditor")
public final void deleteSitemapSectionTag(ServiceRequest request)
Deletes a SitemapSectionTag by given id.

Parameters:
request - the current ServiceRequest

editSitemapSectionTag

@RequireToken
@Action(value="editSitemapSectionTag", generate=true)
@Permission(value="editSitemapSectionTag")
@Groups(values="ViewEditor")
public final void editSitemapSectionTag(ServiceRequest request)
Renames a SitemapSectionTag by given id to given text.

Parameters:
request - the current ServiceRequest

initSitemapDurationEditor

@RequireToken
@Action(value="initSitemapDurationEditor", generate=true)
@Permission(value="initSitemapDurationEditor")
@Groups(values="ViewEditor")
public final ViewEditorResult initSitemapDurationEditor(ServiceRequest request)
Returns a Result to initialise the duration-editor.

Parameters:
request - the current ServiceRequest
Returns:
a ViewEditorResult

removeSitemapDuration

@RequireToken
@Action(value="removeSitemapDuration", generate=true)
@Permission(value="removeSitemapDuration")
@Groups(values="ViewEditor")
public final void removeSitemapDuration(ServiceRequest request)
Removes the Duration form a SitemapNode specified by given id in request.

Parameters:
request - the current ServiceRequest

init

public final void init(ConfigBean c)
initializes the ViewEditor.

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