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
Class SitemapManipulator

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.site.SitemapManipulator

public class SitemapManipulator
extends Controller

Performs tasks to manipulate the Sitemap.

Version:
$Revision: 1454 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
SitemapManipulator()
           
 
Method Summary
 java.lang.Object changeVisiblityOfSitemapNodes(ServiceRequest request)
          Changes the visibility for SitemapNodes according to the given request-parameters.
 java.lang.Object manipulateRolesOfSitemapNodes(ServiceRequest request)
          Adds/removes a Role specified by given request-parameter rid to the View/s of the SitemapNode/s according to the given request-parameters.
 
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

SitemapManipulator

public SitemapManipulator()
Method Detail

manipulateRolesOfSitemapNodes

@Action(value="manipulateRolesOfSitemapNodes")
@Permission(value="manipulateRolesOfSitemapNodes")
@Groups(values="CoreAdministrator")
public final java.lang.Object manipulateRolesOfSitemapNodes(ServiceRequest request)
Adds/removes a Role specified by given request-parameter rid to the View/s of the SitemapNode/s according to the given request-parameters.

The request-parameter rid which specifies the Role to be added/removed is mandatory.

If request-parameter remove is given, the Role specified by given request-parameter rid will be removed from the View/s of the SitemapNode/s according to the given request-parameters.

The following request-parameters are being evaluated in the order below which means the first matching case will be executed:

  1. snid: the Role will be added/removed to the SitemapNodes starting at the SitemapNode specified by snid recursing through the children
  2. locale: the Role will be added/removed to the SitemapNodes with the specified locale only
  3. no further parameter given: the Role will be added/removed to all existing SitemapNodes

Parameters:
request - the ServiceRequest
Returns:
null

changeVisiblityOfSitemapNodes

@Action(value="changeVisiblityOfSitemapNodes")
@Permission(value="changeVisiblityOfSitemapNodes")
@Groups(values="CoreAdministrator")
public final java.lang.Object changeVisiblityOfSitemapNodes(ServiceRequest request)
Changes the visibility for SitemapNodes according to the given request-parameters.

Visibility: if request-parameter visible is given the visibility will be set true, otherwise the visibility will be set false.

The following request-parameters are being evaluated in the order below which means the first matching case will be executed:

  1. snid: the visibility will be set for the SitemapNodes starting at the SitemapNode specified by snid recursing through the children
  2. locale: the visibility will be set for the SitemapNodes with the specified locale only
  3. no further parameter given: the visibility will set for all existing SitemapNodes

Parameters:
request - the ServiceRequest
Returns:
null