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.accesscontrol.admin
Class CommandMatcherEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.core.accesscontrol.admin.AbstractAccessControlEditor
          extended by org.torweg.pulse.component.core.accesscontrol.admin.CommandMatcherEditor
All Implemented Interfaces:
DeprecatedConfigurable

public class CommandMatcherEditor
extends AbstractAccessControlEditor
implements DeprecatedConfigurable

the editor for the CommandMatchers of a Permission. This editor is shown in a modal Ext.Window as part of the permission-editor within the pulse-web-site-administration.

Version:
$Revision: 2013 $
Author:
Daniel Dietz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
CommandMatcherEditor()
           
 
Method Summary
 void createCommandMatcher(Bundle bundle, ServiceRequest request)
          creates a new CommandMatcher for a Permission.
 void deleteCommandMatcher(Bundle bundle, ServiceRequest request)
          removes a CommandMatcher/CommandMatchers from a Permission.
 void init(ConfigBean c)
          initializes the CommandMatcherEditor.
 AccessControlEditorResult initEditor(Bundle bundle, ServiceRequest request)
          loads a CommandMatcher specified by request-parameter "id" for the initialization of the command-matcher-editor-window within pulse-web-site-administration.
 java.lang.Object loadCommandMatchersOverviewGrid(Bundle bundle, ServiceRequest request)
          loads the grid for the command-matcher-overview for a Permission specified by request-parameter "id" within the permission-editor of the pulse-web-site-administration.
 void loadParameters(Bundle bundle, ServiceRequest request)
          loads the Parameters of the command-matcher.
 void saveCommandMatcher(Bundle bundle, ServiceRequest request)
          saves changes of the values of a CommandMatcher.
 
Methods inherited from class org.torweg.pulse.component.core.accesscontrol.admin.AbstractAccessControlEditor
buildCriterionFromRequest, buildIdCriterionFromRequest, buildLoadAssorterCriteria, buildLoadAssorterCriteria, getReqParamIgnoreEmptyValue, getReqParamOrNullIfValueEmpty, loadAssorterData, loadAssorterData, processCriteriaForPaging, retrieveAssorterObjects
 
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

CommandMatcherEditor

public CommandMatcherEditor()
Method Detail

initEditor

@RequireToken
@Action(value="initCommandMatcherEditor", generate=true)
@Permission(value="initCommandMatcherEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:CommandMatcherEditor"})
public final AccessControlEditorResult initEditor(Bundle bundle, ServiceRequest request)
loads a CommandMatcher specified by request-parameter "id" for the initialization of the command-matcher-editor-window within pulse-web-site-administration.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
an AJAX-result representing the command-matcher that is being edited

loadCommandMatchersOverviewGrid

@RequireToken
@Action(value="loadCommandMatchersOverviewGrid", generate=true)
@Permission(value="loadCommandMatchersOverviewGrid")
@Groups(values={"AccessControl:Administrator","AccessControl:CommandMatcherEditor"})
public final java.lang.Object loadCommandMatchersOverviewGrid(Bundle bundle, ServiceRequest request)
loads the grid for the command-matcher-overview for a Permission specified by request-parameter "id" within the permission-editor of the pulse-web-site-administration.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
a JSON-response as array of command-matchers or empty array if no command-matchers were found

loadParameters

@RequireToken
@Action(value="loadParametersCommandMatcherEditor", generate=true)
@Permission(value="loadParametersCommandMatcherEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:CommandMatcherEditor"})
public final void loadParameters(Bundle bundle, ServiceRequest request)
loads the Parameters of the command-matcher. Used the load the parameter-grid of the command-matcher-editor-window within pulse -web-site-administration.

possible errors:

Returns a JSON-response with the parameters of the command-matcher on success, basic JSONObject error (status=false) otherwise

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

createCommandMatcher

@RequireToken
@Action(value="createCommandMatcherEditor", generate=true)
@Permission(value="createCommandMatcherEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:CommandMatcherEditor"})
public final void createCommandMatcher(Bundle bundle, ServiceRequest request)
creates a new CommandMatcher for a Permission.

possible errors:

Sends a JSON-response with id and FQ-class-name of the new command-matcher if create succeeds, JSONObject error otherwise.

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

deleteCommandMatcher

@RequireToken
@Action(value="deleteCommandMatcherEditor", generate=true)
@Permission(value="deleteCommandMatcherEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:CommandMatcherEditor"})
public final void deleteCommandMatcher(Bundle bundle, ServiceRequest request)
removes a CommandMatcher/CommandMatchers from a Permission.

expects: request-parameter "ids" as Array of ids always

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

saveCommandMatcher

@RequireToken
@Action(value="saveCommandMatcherEditor", generate=true)
@Permission(value="saveCommandMatcherEditor")
@Groups(values={"AccessControl:Administrator","AccessControl:CommandMatcherEditor"})
public final void saveCommandMatcher(Bundle bundle, ServiceRequest request)
saves changes of the values of a CommandMatcher.

possible errors:

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

init

public final void init(ConfigBean c)
initializes the CommandMatcherEditor.

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