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.util.representative.admin
Class RepresentativeEditor

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.util.admin.Editor
          extended by org.torweg.pulse.component.util.representative.admin.RepresentativeEditor
All Implemented Interfaces:
Configurable<RepresentativeEditorConfiguration>

public class RepresentativeEditor
extends Editor
implements Configurable<RepresentativeEditorConfiguration>

The main editor for the pulse website-administration of the Representative utility package.

Version:
$Revision: 2013 $
Author:
Daniel Dietz

Nested Class Summary
static class RepresentativeEditor.Error
          The Error-codes of the RepresentativeEditor.
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
RepresentativeEditor()
           
 
Method Summary
 void deleteRepresentative(Bundle bundle, ServiceRequest request)
          Deletes a Representative.
 void initialize(RepresentativeEditorConfiguration conf)
          Initialises the Configuration with the given Configuration.
 RepresentativeEditorResult initRepresentativeEditor(Bundle bundle, ServiceRequest request)
          Initialises the representative-editor-window of the pulse website-administration.
 RepresentativeEditorResult initRepresentativesEditor(Bundle bundle, ServiceRequest request)
          Initialises the representative(-overview)-editor of the pulse website-administration.
 void loadRepresentative(ServiceRequest request)
          Loads a Representative.
 void loadRepresentatives(Bundle bundle, ServiceRequest request)
          Loads the Representatives.
 void saveRepresentative(Bundle bundle, ServiceRequest request)
          Saves a Representative - either during creation or during editing.
 
Methods inherited from class org.torweg.pulse.component.util.admin.Editor
getValueFromCommand
 
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

RepresentativeEditor

public RepresentativeEditor()
Method Detail

initRepresentativesEditor

@RequireToken
@Action(value="initRepresentativesEditor", generate=true)
@Permission(value="initRepresentativesEditor")
@Groups(values="RepresentativeAdministrator")
public final RepresentativeEditorResult initRepresentativesEditor(Bundle bundle, ServiceRequest request)
Initialises the representative(-overview)-editor of the pulse website-administration.

Parameters:
bundle - the current Bundle
request - the current ServiceRequest
Returns:
a RepresentativeEditorResult

initRepresentativeEditor

@RequireToken
@Action(value="initRepresentativeEditor", generate=true)
@Permission(value="initRepresentativeEditor")
@Groups(values="RepresentativeAdministrator")
public final RepresentativeEditorResult initRepresentativeEditor(Bundle bundle, ServiceRequest request)
Initialises the representative-editor-window of the pulse website-administration.

Parameters:
bundle - the current Bundle.
request - the current ServiceRequest.
Returns:
a RepresentativeEditorResult.

loadRepresentatives

@RequireToken
@Action(value="loadRepresentatives", generate=true)
@Permission(value="loadRepresentatives")
@Groups(values="RepresentativeAdministrator")
public final void loadRepresentatives(Bundle bundle, ServiceRequest request)
Loads the Representatives.

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

loadRepresentative

@RequireToken
@Action(value="loadRepresentative", generate=true)
@Permission(value="loadRepresentative")
@Groups(values="RepresentativeAdministrator")
public final void loadRepresentative(ServiceRequest request)
Loads a Representative.

Parameters:
request - the current ServiceRequest

deleteRepresentative

@RequireToken
@Action(value="deleteRepresentative", generate=true)
@Permission(value="deleteRepresentative")
@Groups(values="RepresentativeAdministrator")
public final void deleteRepresentative(Bundle bundle, ServiceRequest request)
Deletes a Representative.

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

saveRepresentative

@RequireToken
@Action(value="saveRepresentative", generate=true)
@Permission(value="saveRepresentative")
@Groups(values="RepresentativeAdministrator")
public final void saveRepresentative(Bundle bundle, ServiceRequest request)
Saves a Representative - either during creation or during editing.

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

initialize

public final void initialize(RepresentativeEditorConfiguration conf)
Initialises the Configuration with the given Configuration.

Specified by:
initialize in interface Configurable<RepresentativeEditorConfiguration>
Parameters:
conf - the Configuration