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 FilterEditor

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

public class FilterEditor
extends Controller
implements DeprecatedConfigurable

the editor for the Filters.

Version:
$Revision: 1439 $
Author:
Daniel Dietz
See Also:
Filter

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
FilterEditor()
           
 
Method Summary
 void createFilter(Bundle bundle, ServiceRequest request)
          creates a new Filter with the given name.
 void createFilterCopy(Bundle bundle, ServiceRequest request)
          creates a copy of a Filter specified by parameter "id" in request with given name specified by parameter "copyName" in request.
 FilterEditorResult editFilter(Bundle bundle, ServiceRequest request)
          returns the initialisation result of the content-filter-editor for a single filter.
 void init(ConfigBean c)
          initializes this controller.
 FilterEditorResult initEditor(Bundle bundle, ServiceRequest request)
          returns the initialization result of the content-filter-editor.
 FilterEditorResult initOverview(Bundle bundle, ServiceRequest request)
          returns the initialization result of the content-filter-editor for all filters (overview-page).
 java.lang.Object loadFilters(Bundle bundle, ServiceRequest request)
          returns the filters for overview-page.
 void removeFilter(Bundle bundle, ServiceRequest request)
          removes a Filter by parameter id passed with request.
 void saveFilter(Bundle bundle, ServiceRequest request)
          sets the name of a Filter specified by parameter "id" passed with request to parameter "name" passed with request.
 
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

FilterEditor

public FilterEditor()
Method Detail

initEditor

@RequireToken
@Action(value="filterAdminInit", generate=true)
@Permission(value="editFilter")
@Groups(values={"FilterEditor","FilterMatchesEditor","FilterRuleEditor","FilterPropertyEditor"})
public final FilterEditorResult initEditor(Bundle bundle, ServiceRequest request)
returns the initialization result of the content-filter-editor.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialization result of the content-filter-editor

initOverview

@RequireToken
@Action(value="filterOverviewInit", generate=true)
@Permission(value="viewFilter")
@Groups(values={"FilterEditor","FilterMatchesEditor","FilterRuleEditor","FilterPropertyEditor"})
public final FilterEditorResult initOverview(Bundle bundle, ServiceRequest request)
returns the initialization result of the content-filter-editor for all filters (overview-page).

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialization result of the content-filter-editor

loadFilters

@RequireToken
@Action(value="loadFilters", generate=true)
@Permission(value="viewFilter")
@Groups(values={"FilterEditor","FilterMatchesEditor","FilterRuleEditor","FilterPropertyEditor"})
public final java.lang.Object loadFilters(Bundle bundle, ServiceRequest request)
returns the filters for overview-page.

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

editFilter

@RequireToken
@Action(value="editFilter", generate=true)
@Permission(value="viewFilter")
@Groups(values={"FilterEditor","FilterMatchesEditor","FilterRuleEditor","FilterPropertyEditor"})
public final FilterEditorResult editFilter(Bundle bundle, ServiceRequest request)
returns the initialisation result of the content-filter-editor for a single filter.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
the initialisation result of the content-filter-editor

createFilter

@RequireToken
@Action(value="createFilter", generate=true)
@Permission(value="editFilter")
@Groups(values="FilterEditor")
public final void createFilter(Bundle bundle, ServiceRequest request)
creates a new Filter with the given name.

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

removeFilter

@RequireToken
@Action(value="removeFilter", generate=true)
@Permission(value="editFilter")
@Groups(values="FilterEditor")
public final void removeFilter(Bundle bundle, ServiceRequest request)
removes a Filter by parameter id passed with request.

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

saveFilter

@RequireToken
@Action(value="saveFilter", generate=true)
@Permission(value="editFilter")
@Groups(values="FilterEditor")
public final void saveFilter(Bundle bundle, ServiceRequest request)
sets the name of a Filter specified by parameter "id" passed with request to parameter "name" passed with request.

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

createFilterCopy

@RequireToken
@Action(value="createFilterCopy", generate=true)
@Permission(value="viewFilter")
@Groups(values={"FilterEditor","FilterMatchesEditor","FilterRuleEditor","FilterPropertyEditor"})
public final void createFilterCopy(Bundle bundle, ServiceRequest request)
creates a copy of a Filter specified by parameter "id" in request with given name specified by parameter "copyName" in request.

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

init

public void init(ConfigBean c)
initializes this controller.

Specified by:
init in interface DeprecatedConfigurable
Parameters:
c - the configuration-bean of this controller