net.sourceforge.fixagora.basis.server.control.spreadsheet
Class SpreadSheetHandler

java.lang.Object
  extended by net.sourceforge.fixagora.basis.server.control.spreadsheet.SpreadSheetHandler

public class SpreadSheetHandler
extends java.lang.Object

The Class SpreadSheetHandler.


Constructor Summary
SpreadSheetHandler(BasisPersistenceHandler basisPersistenceHandler, BusinessComponentHandler businessComponentHandler)
          Instantiates a new spread sheet handler.
 
Method Summary
 void addSpreadSheet(SpreadSheet spreadSheet, boolean init)
          Adds the spread sheet.
 void addSpreadSheet(SpreadSheet spreadSheet, java.util.Set<org.jboss.netty.channel.Channel> channels, boolean init)
          Adds the spread sheet.
 void addSpreadSheetCellContentUpdate(SpreadSheetCellContent spreadSheetCellContent)
          Adds the spread sheet cell content update.
 void addSpreadSheetConditionalFormatUpdate(SpreadSheetConditionalFormat spreadSheetConditionalFormat)
          Adds the spread sheet conditional format update.
 void close()
          Close.
 BasisPersistenceHandler getBasisPersistenceHandler()
          Gets the basis persistence handler.
 FUser getUser(org.jboss.netty.channel.Channel channel)
          Gets the user.
 void handleFIXMessage(SpreadSheet spreadSheet, java.util.List<MDInputEntry> mdInputEntries)
          Handle fix message.
 void handleMDOutputEntries(java.util.Set<MDOutputEntry> mdOutputEntries, SpreadSheet spreadSheet)
          Handle md output entries.
 void onCloseSpreadSheetRequest(CloseSpreadSheetRequest closeSpreadSheetRequest, org.jboss.netty.channel.Channel channel)
          On close spread sheet request.
 void onCopySpreadSheetCellRequest(CopySpreadSheetCellRequest copySpreadSheetCellRequest, org.jboss.netty.channel.Channel channel)
          On copy spread sheet cell request.
 void onCutSpreadSheetCellRequest(CutSpreadSheetCellRequest cutSpreadSheetCellRequest, org.jboss.netty.channel.Channel channel)
          On cut spread sheet cell request.
 void onDeleteColumnRequest(DeleteColumnRequest deleteColumnRequest, org.jboss.netty.channel.Channel channel)
          On delete column request.
 void onDeleteRowRequest(DeleteRowRequest deleteRowRequest, org.jboss.netty.channel.Channel channel)
          On delete row request.
 void onFillSpreadSheetCellRequest(FillSpreadSheetCellRequest fillSpreadSheetCellRequest, org.jboss.netty.channel.Channel channel)
          On fill spread sheet cell request.
 void onInsertColumnRequest(InsertColumnRequest insertColumnRequest, org.jboss.netty.channel.Channel channel)
          On insert column request.
 void onInsertRowRequest(InsertRowRequest insertRowRequest, org.jboss.netty.channel.Channel channel)
          On insert row request.
 void onModifyColumnVisibleRequest(ModifyColumnVisibleRequest modifyColumnVisibleRequest, org.jboss.netty.channel.Channel channel)
          On modify column visible request.
 void onModifyColumnWidthRequest(ModifyColumnWidthRequest modifyColumnWidthRequest, org.jboss.netty.channel.Channel channel)
          On modify column width request.
 void onModifyRowVisibleResponse(ModifyRowVisibleRequest modifyRowVisibleRequest, org.jboss.netty.channel.Channel channel)
          On modify row visible response.
 void onModifySheetCellRequest(ModifySheetCellRequest modifySheetCellRequest, org.jboss.netty.channel.Channel channel)
          On modify sheet cell request.
 void onModifySpreadSheetCellFormatRequest(ModifySpreadSheetCellFormatRequest modifySpreadSheetCellFormatRequest, org.jboss.netty.channel.Channel channel)
          On modify spread sheet cell format request.
 void onModifySpreadSheetConditionalFormatResponse(ModifySpreadSheetConditionalFormatRequest modifySpreadSheetConditionalFormatRequest, org.jboss.netty.channel.Channel channel)
          On modify spread sheet conditional format response.
 void onOpenSpreadSheetRequest(OpenSpreadSheetRequest openSpreadSheetRequest, org.jboss.netty.channel.Channel channel)
          On open spread sheet request.
 void onPasteSpreadSheetCellRequest(PasteSpreadSheetCellRequest pasteSpreadSheetCellRequest, org.jboss.netty.channel.Channel channel)
          On paste spread sheet cell request.
 void onSolverRequest(SolverRequest solverRequest, org.jboss.netty.channel.Channel channel)
          On solver request.
 void processFIXMessage(SpreadSheet spreadSheet)
          Process fix message.
 java.util.Set<org.jboss.netty.channel.Channel> removeSpreadSheet(SpreadSheet spreadSheet)
          Removes the spread sheet.
 void updateAffected(SpreadSheetWorker spreadSheetWorker)
          Update affected.
 void updateSpreadSheet(SpreadSheet spreadSheet)
          Update spread sheet.
 void updateSpreadSheetCellFormat(SpreadSheetCellFormat spreadSheetCellFormat)
          Update spread sheet cell format.
 void updateSpreadSheetColumnFormat(SpreadSheetColumnFormat spreadSheetColumnFormat)
          Update spread sheet column format.
 void updateSpreadSheetRowFormat(SpreadSheetRowFormat spreadSheetRowFormat)
          Update spread sheet row format.
 void writeLogEntry(LogEntry logEntry)
          Write log entry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpreadSheetHandler

public SpreadSheetHandler(BasisPersistenceHandler basisPersistenceHandler,
                          BusinessComponentHandler businessComponentHandler)
Instantiates a new spread sheet handler.

Parameters:
basisPersistenceHandler - the basis persistence handler
businessComponentHandler - the business component handler
Method Detail

addSpreadSheet

public void addSpreadSheet(SpreadSheet spreadSheet,
                           boolean init)
Adds the spread sheet.

Parameters:
spreadSheet - the spread sheet
init - the init

addSpreadSheet

public void addSpreadSheet(SpreadSheet spreadSheet,
                           java.util.Set<org.jboss.netty.channel.Channel> channels,
                           boolean init)
Adds the spread sheet.

Parameters:
spreadSheet - the spread sheet
channels - the channels
init - the init

close

public void close()
Close.


onCloseSpreadSheetRequest

public void onCloseSpreadSheetRequest(CloseSpreadSheetRequest closeSpreadSheetRequest,
                                      org.jboss.netty.channel.Channel channel)
On close spread sheet request.

Parameters:
closeSpreadSheetRequest - the close spread sheet request
channel - the channel

onOpenSpreadSheetRequest

public void onOpenSpreadSheetRequest(OpenSpreadSheetRequest openSpreadSheetRequest,
                                     org.jboss.netty.channel.Channel channel)
On open spread sheet request.

Parameters:
openSpreadSheetRequest - the open spread sheet request
channel - the channel

onModifySheetCellRequest

public void onModifySheetCellRequest(ModifySheetCellRequest modifySheetCellRequest,
                                     org.jboss.netty.channel.Channel channel)
On modify sheet cell request.

Parameters:
modifySheetCellRequest - the modify sheet cell request
channel - the channel

onCopySpreadSheetCellRequest

public void onCopySpreadSheetCellRequest(CopySpreadSheetCellRequest copySpreadSheetCellRequest,
                                         org.jboss.netty.channel.Channel channel)
On copy spread sheet cell request.

Parameters:
copySpreadSheetCellRequest - the copy spread sheet cell request
channel - the channel

onCutSpreadSheetCellRequest

public void onCutSpreadSheetCellRequest(CutSpreadSheetCellRequest cutSpreadSheetCellRequest,
                                        org.jboss.netty.channel.Channel channel)
On cut spread sheet cell request.

Parameters:
cutSpreadSheetCellRequest - the cut spread sheet cell request
channel - the channel

onPasteSpreadSheetCellRequest

public void onPasteSpreadSheetCellRequest(PasteSpreadSheetCellRequest pasteSpreadSheetCellRequest,
                                          org.jboss.netty.channel.Channel channel)
On paste spread sheet cell request.

Parameters:
pasteSpreadSheetCellRequest - the paste spread sheet cell request
channel - the channel

addSpreadSheetCellContentUpdate

public void addSpreadSheetCellContentUpdate(SpreadSheetCellContent spreadSheetCellContent)
Adds the spread sheet cell content update.

Parameters:
spreadSheetCellContent - the spread sheet cell content

updateSpreadSheetCellFormat

public void updateSpreadSheetCellFormat(SpreadSheetCellFormat spreadSheetCellFormat)
Update spread sheet cell format.

Parameters:
spreadSheetCellFormat - the spread sheet cell format

updateSpreadSheetRowFormat

public void updateSpreadSheetRowFormat(SpreadSheetRowFormat spreadSheetRowFormat)
Update spread sheet row format.

Parameters:
spreadSheetRowFormat - the spread sheet row format

updateSpreadSheetColumnFormat

public void updateSpreadSheetColumnFormat(SpreadSheetColumnFormat spreadSheetColumnFormat)
Update spread sheet column format.

Parameters:
spreadSheetColumnFormat - the spread sheet column format

removeSpreadSheet

public java.util.Set<org.jboss.netty.channel.Channel> removeSpreadSheet(SpreadSheet spreadSheet)
Removes the spread sheet.

Parameters:
spreadSheet - the spread sheet
Returns:
the sets the

onModifySpreadSheetCellFormatRequest

public void onModifySpreadSheetCellFormatRequest(ModifySpreadSheetCellFormatRequest modifySpreadSheetCellFormatRequest,
                                                 org.jboss.netty.channel.Channel channel)
On modify spread sheet cell format request.

Parameters:
modifySpreadSheetCellFormatRequest - the modify spread sheet cell format request
channel - the channel

onModifyColumnWidthRequest

public void onModifyColumnWidthRequest(ModifyColumnWidthRequest modifyColumnWidthRequest,
                                       org.jboss.netty.channel.Channel channel)
On modify column width request.

Parameters:
modifyColumnWidthRequest - the modify column width request
channel - the channel

onModifyColumnVisibleRequest

public void onModifyColumnVisibleRequest(ModifyColumnVisibleRequest modifyColumnVisibleRequest,
                                         org.jboss.netty.channel.Channel channel)
On modify column visible request.

Parameters:
modifyColumnVisibleRequest - the modify column visible request
channel - the channel

onModifyRowVisibleResponse

public void onModifyRowVisibleResponse(ModifyRowVisibleRequest modifyRowVisibleRequest,
                                       org.jboss.netty.channel.Channel channel)
On modify row visible response.

Parameters:
modifyRowVisibleRequest - the modify row visible request
channel - the channel

onModifySpreadSheetConditionalFormatResponse

public void onModifySpreadSheetConditionalFormatResponse(ModifySpreadSheetConditionalFormatRequest modifySpreadSheetConditionalFormatRequest,
                                                         org.jboss.netty.channel.Channel channel)
On modify spread sheet conditional format response.

Parameters:
modifySpreadSheetConditionalFormatRequest - the modify spread sheet conditional format request
channel - the channel

addSpreadSheetConditionalFormatUpdate

public void addSpreadSheetConditionalFormatUpdate(SpreadSheetConditionalFormat spreadSheetConditionalFormat)
Adds the spread sheet conditional format update.

Parameters:
spreadSheetConditionalFormat - the spread sheet conditional format

onInsertColumnRequest

public void onInsertColumnRequest(InsertColumnRequest insertColumnRequest,
                                  org.jboss.netty.channel.Channel channel)
On insert column request.

Parameters:
insertColumnRequest - the insert column request
channel - the channel

onInsertRowRequest

public void onInsertRowRequest(InsertRowRequest insertRowRequest,
                               org.jboss.netty.channel.Channel channel)
On insert row request.

Parameters:
insertRowRequest - the insert row request
channel - the channel

onDeleteColumnRequest

public void onDeleteColumnRequest(DeleteColumnRequest deleteColumnRequest,
                                  org.jboss.netty.channel.Channel channel)
On delete column request.

Parameters:
deleteColumnRequest - the delete column request
channel - the channel

onDeleteRowRequest

public void onDeleteRowRequest(DeleteRowRequest deleteRowRequest,
                               org.jboss.netty.channel.Channel channel)
On delete row request.

Parameters:
deleteRowRequest - the delete row request
channel - the channel

updateSpreadSheet

public void updateSpreadSheet(SpreadSheet spreadSheet)
Update spread sheet.

Parameters:
spreadSheet - the spread sheet

updateAffected

public void updateAffected(SpreadSheetWorker spreadSheetWorker)
Update affected.

Parameters:
spreadSheetWorker - the spread sheet worker

getUser

public FUser getUser(org.jboss.netty.channel.Channel channel)
Gets the user.

Parameters:
channel - the channel
Returns:
the user

writeLogEntry

public void writeLogEntry(LogEntry logEntry)
Write log entry.

Parameters:
logEntry - the log entry

handleFIXMessage

public void handleFIXMessage(SpreadSheet spreadSheet,
                             java.util.List<MDInputEntry> mdInputEntries)
Handle fix message.

Parameters:
spreadSheet - the spread sheet
mdInputEntries - the md input entries

processFIXMessage

public void processFIXMessage(SpreadSheet spreadSheet)
Process fix message.

Parameters:
spreadSheet - the spread sheet

getBasisPersistenceHandler

public BasisPersistenceHandler getBasisPersistenceHandler()
Gets the basis persistence handler.

Returns:
the basis persistence handler

onFillSpreadSheetCellRequest

public void onFillSpreadSheetCellRequest(FillSpreadSheetCellRequest fillSpreadSheetCellRequest,
                                         org.jboss.netty.channel.Channel channel)
On fill spread sheet cell request.

Parameters:
fillSpreadSheetCellRequest - the fill spread sheet cell request
channel - the channel

handleMDOutputEntries

public void handleMDOutputEntries(java.util.Set<MDOutputEntry> mdOutputEntries,
                                  SpreadSheet spreadSheet)
Handle md output entries.

Parameters:
mdOutputEntries - the md output entries
spreadSheet - the spread sheet

onSolverRequest

public void onSolverRequest(SolverRequest solverRequest,
                            org.jboss.netty.channel.Channel channel)
On solver request.

Parameters:
solverRequest - the solver request
channel - the channel