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.retailer.admin
Class RetailerEditor

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.retailer.admin.RetailerEditor
All Implemented Interfaces:
Configurable<RetailerEditorConfiguration>

public class RetailerEditor
extends Editor
implements Configurable<RetailerEditorConfiguration>

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

Version:
$Revision: 2043 $
Author:
Daniel Dietz

Nested Class Summary
static class RetailerEditor.Error
          The Error-codes of the RetailerEditor.
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
RetailerEditor()
           
 
Method Summary
 void deleteRetailer(ServiceRequest request)
          Deletes a Retailer.
 java.lang.Object exportRetailersCSV(ServiceRequest request)
          Exports all Retailers from a certain country to a CSV-download.
 java.lang.Object exportRetailersXLSX(ServiceRequest request)
          Exports all Retailers from a certain country to a XLSX-download.
 void initialize(RetailerEditorConfiguration conf)
          Initialises the RetailerEditor with the given Configuration.
 java.lang.Object initRetailerEditor(ServiceRequest request)
          Initialises the retailer-editor-window of the pulse website-administration.
 java.lang.Object initRetailersEditor(ServiceRequest request)
          Initialises the retailer(-overview)-editor of the pulse website-administration.
 void loadRetailer(ServiceRequest request)
          Loads a single Retailer.
 void loadRetailers(ServiceRequest request)
          Loads the Retailers.
 void saveRetailer(ServiceRequest request)
          Saves a Retailer - 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

RetailerEditor

public RetailerEditor()
Method Detail

initRetailersEditor

@RequireToken
@Action(value="initRetailersEditor", generate=true)
@Permission(value="initRetailersEditor")
@Groups(values="RetailerAdministrator")
public final java.lang.Object initRetailersEditor(ServiceRequest request)
Initialises the retailer(-overview)-editor of the pulse website-administration.

Parameters:
request - the current ServiceRequest.
Returns:
a RetailerEditorResult.

initRetailerEditor

@RequireToken
@Action(value="initRetailerEditor", generate=true)
@Permission(value="initRetailerEditor")
@Groups(values="RetailerAdministrator")
public final java.lang.Object initRetailerEditor(ServiceRequest request)
Initialises the retailer-editor-window of the pulse website-administration.

Parameters:
request - the current ServiceRequest.
Returns:
a RetailerEditorResult.

loadRetailers

@RequireToken
@Action(value="loadRetailers", generate=true)
@Permission(value="loadRetailers")
@Groups(values="RetailerAdministrator")
public final void loadRetailers(ServiceRequest request)
Loads the Retailers.

Parameters:
request - the current ServiceRequest.

loadRetailer

@RequireToken
@Action(value="loadRetailer", generate=true)
@Permission(value="loadRetailer")
@Groups(values="RetailerAdministrator")
public final void loadRetailer(ServiceRequest request)
Loads a single Retailer.

Parameters:
request - the current ServiceRequest.

deleteRetailer

@RequireToken
@Action(value="deleteRetailer", generate=true)
@Permission(value="deleteRetailer")
@Groups(values="RetailerAdministrator")
public final void deleteRetailer(ServiceRequest request)
Deletes a Retailer.

Parameters:
request - the current ServiceRequest.

saveRetailer

@RequireToken
@Action(value="saveRetailer", generate=true)
@Permission(value="saveRetailer")
@Groups(values="RetailerAdministrator")
public final void saveRetailer(ServiceRequest request)
Saves a Retailer - either during creation or during editing.

Parameters:
request - the current ServiceRequest.

exportRetailersCSV

@RequireToken
@Action(value="exportRetailersCSV", generate=true)
@Permission(value="exportRetailersCSV")
@Groups(values="RetailerAdministrator")
public final java.lang.Object exportRetailersCSV(ServiceRequest request)
Exports all Retailers from a certain country to a CSV-download.

Parameters:
request - the current ServiceRequest.
Returns:
null.

exportRetailersXLSX

@RequireToken
@Action(value="exportRetailersXLSX", generate=true)
@Permission(value="exportRetailersXLSX")
@Groups(values="RetailerAdministrator")
public final java.lang.Object exportRetailersXLSX(ServiceRequest request)
Exports all Retailers from a certain country to a XLSX-download.

Parameters:
request - the current ServiceRequest.
Returns:
null.

initialize

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

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