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 FilterRulesEditor

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

public class FilterRulesEditor
extends Controller
implements DeprecatedConfigurable

the editor for the filter-rules.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
FilterRulesEditor()
           
 
Method Summary
 void createFilterRule(Bundle bundle, ServiceRequest request)
          creates a FilterRule for a Filter specified by parameter id within the request.
 void createFilterRuleProperty(Bundle bundle, ServiceRequest request)
          creates a FilterRuleProperty with name specified by parameter "name" in request for a FilterRule specified by parameter "id" in request.
 void init(ConfigBean c)
          initializes this controller.
 FilterRulesEditorResult initEditor(Bundle bundle, ServiceRequest request)
          starts the editor for a FilterRule specified by parameter id within the request.
 void loadFilterRuleLocalizations(Bundle bundle, ServiceRequest request)
          returns the localizations for a FilterRule as JSONResponse.
 void loadFilterRuleProperties(Bundle bundle, ServiceRequest request)
          returns the FilterRuleProperty-localizations for a FilterRule as JSONResponse.
 void loadFilterRules(Bundle bundle, ServiceRequest request)
          loads the requested FilterRules of a Filter specified by parameter id within the request.
 void moveFilterRule(Bundle bundle, ServiceRequest request)
          moves a FilterRule specified by parameter "id", "dir" within the request.
 void moveFilterRuleProperty(Bundle bundle, ServiceRequest request)
          moves a FilterRuleProperty specified by parameter "id", "dir", "ruleid" within the request.
 void removeFilterRule(Bundle bundle, ServiceRequest request)
          removes a FilterRule specified by parameter id within the request.
 void removeFilterRuleProperty(Bundle bundle, ServiceRequest request)
          removes a FilterRuleProperty specified by parameter "id" in request from a FilterRule specified by parameter "id" in request.
 void saveFilterRule(Bundle bundle, ServiceRequest request)
          saves a FilterRule specified by parameter "id" in.
 
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

FilterRulesEditor

public FilterRulesEditor()
Method Detail

loadFilterRules

@RequireToken
@Action(value="loadFilterRules", generate=true)
@Permission(value="viewFilterRules")
@Groups(values={"FilterPropertyEditor","FilterRuleEditor","FilterEditor"})
public final void loadFilterRules(Bundle bundle, ServiceRequest request)
loads the requested FilterRules of a Filter specified by parameter id within the request.

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

createFilterRule

@RequireToken
@Action(value="createFilterRule", generate=true)
@Permission(value="editFilterRules")
@Groups(values={"FilterRuleEditor","FilterEditor"})
public final void createFilterRule(Bundle bundle, ServiceRequest request)
creates a FilterRule for a Filter specified by parameter id within the request.

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

moveFilterRule

@RequireToken
@Action(value="moveFilterRule", generate=true)
@Permission(value="editFilterRules")
@Groups(values={"FilterRuleEditor","FilterEditor"})
public final void moveFilterRule(Bundle bundle, ServiceRequest request)
moves a FilterRule specified by parameter "id", "dir" within the request.

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

removeFilterRule

@RequireToken
@Action(value="removeFilterRule", generate=true)
@Permission(value="editFilterRules")
@Groups(values={"FilterRuleEditor","FilterEditor"})
public final void removeFilterRule(Bundle bundle, ServiceRequest request)
removes a FilterRule specified by parameter id within the request.

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

initEditor

@RequireToken
@Action(value="initFilterRuleEditor", generate=true)
@Permission(value="viewFilterRules")
@Groups(values={"FilterPropertyEditor","FilterRuleEditor","FilterEditor"})
public final FilterRulesEditorResult initEditor(Bundle bundle, ServiceRequest request)
starts the editor for a FilterRule specified by parameter id within the request.

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

loadFilterRuleLocalizations

@RequireToken
@Action(value="loadFilterRuleLocalizations", generate=true)
@Permission(value="viewFilterRuleLocalizations")
@Groups(values={"FilterPropertyEditor","FilterRuleEditor","FilterEditor"})
public final void loadFilterRuleLocalizations(Bundle bundle, ServiceRequest request)
returns the localizations for a FilterRule as JSONResponse.

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

loadFilterRuleProperties

@RequireToken
@Action(value="loadFilterRuleProperties", generate=true)
@Permission(value="viewFilterRuleProperties")
@Groups(values={"FilterPropertyEditor","FilterRuleEditor","FilterEditor"})
public final void loadFilterRuleProperties(Bundle bundle, ServiceRequest request)
returns the FilterRuleProperty-localizations for a FilterRule as JSONResponse.

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

createFilterRuleProperty

@RequireToken
@Action(value="createFilterRuleProperty", generate=true)
@Permission(value="editFilterRuleProperties")
@Groups(values={"FilterPropertyEditor","FilterRuleEditor","FilterEditor"})
public final void createFilterRuleProperty(Bundle bundle, ServiceRequest request)
creates a FilterRuleProperty with name specified by parameter "name" in request for a FilterRule specified by parameter "id" in request.

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

removeFilterRuleProperty

@RequireToken
@Action(value="removeFilterRuleProperty", generate=true)
@Permission(value="editFilterRuleProperties")
@Groups(values={"FilterPropertyEditor","FilterRuleEditor","FilterEditor"})
public final void removeFilterRuleProperty(Bundle bundle, ServiceRequest request)
removes a FilterRuleProperty specified by parameter "id" in request from a FilterRule specified by parameter "id" in request.

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

saveFilterRule

@RequireToken
@Action(value="saveFilterRule", generate=true)
@Permission(value="editFilterRules")
@Groups(values={"FilterRuleEditor","FilterEditor"})
public final void saveFilterRule(Bundle bundle, ServiceRequest request)
saves a FilterRule specified by parameter "id" in.

saves: - name - rule-localizations - rule-property-localizations

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

moveFilterRuleProperty

@RequireToken
@Action(value="moveFilterRuleProperty", generate=true)
@Permission(value="editFilterRuleProperties")
@Groups(values={"FilterPropertyEditor","FilterRuleEditor","FilterEditor"})
public final void moveFilterRuleProperty(Bundle bundle, ServiceRequest request)
moves a FilterRuleProperty specified by parameter "id", "dir", "ruleid" within the 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