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 ThemesEditor

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

public class ThemesEditor
extends Controller
implements DeprecatedConfigurable

the editor for the themes that can be assigned to a sitemapnode.

Version:
$Revision: 2043 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
ThemesEditor()
           
 
Method Summary
 void applyTheme(Bundle bundle, ServiceRequest request)
          returns a JSONResponse.
 ThemesEditorResult findTheme(Bundle bundle, ServiceRequest request)
           
 void init(ConfigBean c)
          initializes the ThemesEditor.
 ThemesEditorResult initEditor(Bundle bundle, ServiceRequest request)
          returns an AJAX Result (the initialized themes-editor).
 ThemesEditorResult loadTheme(Bundle bundle, ServiceRequest request)
          returns an AJAX Result.
 void removeTheme(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

ThemesEditor

public ThemesEditor()
Method Detail

findTheme

@AnyAction
public ThemesEditorResult findTheme(Bundle bundle, ServiceRequest request)
Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the ThemesEditorResult

initEditor

@RequireToken
@Action(value="initThemesEditor", generate=true)
@Permission(value="editThemes")
@Groups(values="Styling")
public final ThemesEditorResult initEditor(Bundle bundle, ServiceRequest request)
returns an AJAX Result (the initialized themes-editor).

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX Result

removeTheme

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

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

applyTheme

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

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

loadTheme

@RequireToken
@Action(value="loadTheme", generate=true)
@Permission(value="editThemes")
@Groups(values="Styling")
public final ThemesEditorResult loadTheme(Bundle bundle, ServiceRequest request)
returns an AJAX Result.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX Result

init

public void init(ConfigBean c)
initializes the ThemesEditor.

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