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.content.filter.admin
Class FilterContentEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.site.content.filter.admin.FilterContentEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class FilterContentEditor
extends Controller
implements DeprecatedConfigurable

the edtior for a FilterContent.

Version:
$Revision: 1914 $
Author:
Daniel Dietz
See Also:
FilterContent

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
FilterContentEditor()
           
 
Method Summary
 void addFilter(Bundle bundle, ServiceRequest request)
          TODO.
 void copyContent(Bundle bundle, ServiceRequest request)
          creates a copy of a FilterContent specified by parameter "id" in request in a folder specified by parameter "toid" in request using the locale of the folder.
 void init(ConfigBean c)
          initializes the FilterContentEditor.
 FilterContentEditorResult initEditor(Bundle bundle, ServiceRequest request)
          returns the initialized FilterContentEditor for a Content which is determined by a given id in the request.
 FilterContentEditorResult loadFilter(Bundle bundle, ServiceRequest request)
          loads the Filter of a FilterContent specified by parameter "id".
 void removeFilter(Bundle bundle, ServiceRequest request)
          removes the Filter from a FilterContent specified by parameter "id".
 void saveContent(Bundle bundle, ServiceRequest request)
          saves the basic properties of a content (name, suffix, keywords), as well as the filter.
 
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

FilterContentEditor

public FilterContentEditor()
Method Detail

initEditor

@RequireToken
@Action(value="initEditor", generate=true)
@Permission(value="viewFilterContent")
@Groups(values="FilterContentEditor")
public final FilterContentEditorResult initEditor(Bundle bundle, ServiceRequest request)
returns the initialized FilterContentEditor 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 FilterContentEditor

saveContent

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

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

copyContent

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

addFilter

@RequireToken
@Action(value="filterContentAddFilter", generate=true)
@Permission(value="editFilterContent")
@Groups(values="FilterContentEditor")
public final void addFilter(Bundle bundle, ServiceRequest request)
TODO.

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

removeFilter

@RequireToken
@Action(value="filterContentRemoveFilter", generate=true)
@Permission(value="editFilterContent")
@Groups(values="FilterContentEditor")
public final void removeFilter(Bundle bundle, ServiceRequest request)
removes the Filter from a FilterContent specified by parameter "id".

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

loadFilter

@RequireToken
@Action(value="filterContentLoadFilter", generate=true)
@Permission(value="viewFilterContent")
@Groups(values="FilterContentEditor")
public final FilterContentEditorResult loadFilter(Bundle bundle, ServiceRequest request)
loads the Filter of a FilterContent specified by parameter "id".

Used for reloads of the Filter-part of the FilterContentEditor within the pulse-web-site-administration.

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

init

public void init(ConfigBean c)
initializes the FilterContentEditor.

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