net.sourceforge.fixagora.basis.server.control
Class BusinessComponentHandler

java.lang.Object
  extended by net.sourceforge.fixagora.basis.server.control.BusinessComponentHandler
All Implemented Interfaces:
TransientValueSetter

public class BusinessComponentHandler
extends java.lang.Object
implements TransientValueSetter

The Class BusinessComponentHandler.


Constructor Summary
BusinessComponentHandler(BasisPersistenceHandler basisPersistenceHandler, java.util.List<DataDictionary> dataDictionaries)
          Instantiates a new business component handler.
 
Method Summary
 void addCounterparty(Counterparty counterparty)
          Adds the counterparty.
 void addSecurity(FSecurity abstractBusinessObject)
          Adds the security.
 void close(AbstractBusinessObject abstractBusinessObject)
          Close.
 java.util.Map<java.lang.String,BankCalendar> getBankCalendarMap()
          Gets the bank calendar map.
 AbstractComponentHandler getBusinessComponentHandler(long abstractBusinessComponent)
          Gets the business component handler.
 long getCentralID()
          Gets the central id.
 int getChildCount(FSecurityGroup securityGroup)
          Gets the child count.
 Counterparty getCounterparty(long businessComponent, java.lang.String partyId, java.lang.String partyIdSource, java.lang.Integer partyRole)
          Gets the counterparty.
 java.util.Set<java.lang.String> getOpenSessions(AbstractAcceptor fixAcceptor)
          Gets the open sessions.
 SecurityDictionary getSecurityDictionary()
          Gets the security dictionary.
 SpreadSheetHandler getSpreadSheetHandler()
          Gets the spread sheet handler.
 int getStartLevel(AbstractBusinessComponent abstractBusinessComponent)
          Gets the start level.
 int getStartLevel(long abstractBusinessComponent)
          Gets the start level.
 void handleSecurityList(quickfix.Message message)
          Handle security list.
 void init(AbstractBusinessComponent abstractBusinessComponent)
          Inits the.
 void isLoggedIn(FUser fUser)
          Checks if is logged in.
 void onStartBusinessComponentRequest(StartBusinessComponentRequest startBusinessComponentRequest, org.jboss.netty.channel.Channel channel)
          On start business component request.
 void onStopBusinessComponentRequest(StopBusinessComponentRequest stopBusinessComponentRequest, org.jboss.netty.channel.Channel channel)
          On stop business component request.
 void removeCounterparty(Counterparty abstractBusinessObject)
          Removes the counterparty.
 void removeSecurity(FSecurity abstractBusinessObject)
          Removes the security.
 void update(AbstractBusinessComponent abstractBusinessComponent)
          Update.
 void updateCounterparty(Counterparty abstractBusinessObject)
          Update counterparty.
 void updateSecurity(FSecurity abstractBusinessObject)
          Update security.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessComponentHandler

public BusinessComponentHandler(BasisPersistenceHandler basisPersistenceHandler,
                                java.util.List<DataDictionary> dataDictionaries)
Instantiates a new business component handler.

Parameters:
basisPersistenceHandler - the basis persistence handler
dataDictionaries - the data dictionaries
Method Detail

onStartBusinessComponentRequest

public void onStartBusinessComponentRequest(StartBusinessComponentRequest startBusinessComponentRequest,
                                            org.jboss.netty.channel.Channel channel)
On start business component request.

Parameters:
startBusinessComponentRequest - the start business component request
channel - the channel

onStopBusinessComponentRequest

public void onStopBusinessComponentRequest(StopBusinessComponentRequest stopBusinessComponentRequest,
                                           org.jboss.netty.channel.Channel channel)
On stop business component request.

Parameters:
stopBusinessComponentRequest - the stop business component request
channel - the channel

isLoggedIn

public void isLoggedIn(FUser fUser)
Description copied from interface: TransientValueSetter
Checks if is logged in.

Specified by:
isLoggedIn in interface TransientValueSetter
Parameters:
fUser - the f user

getStartLevel

public int getStartLevel(AbstractBusinessComponent abstractBusinessComponent)
Description copied from interface: TransientValueSetter
Gets the start level.

Specified by:
getStartLevel in interface TransientValueSetter
Parameters:
abstractBusinessComponent - the abstract business component
Returns:
the start level

getStartLevel

public int getStartLevel(long abstractBusinessComponent)
Gets the start level.

Parameters:
abstractBusinessComponent - the abstract business component
Returns:
the start level

getSpreadSheetHandler

public SpreadSheetHandler getSpreadSheetHandler()
Gets the spread sheet handler.

Returns:
the spread sheet handler

close

public void close(AbstractBusinessObject abstractBusinessObject)
Close.

Parameters:
abstractBusinessObject - the abstract business object

init

public void init(AbstractBusinessComponent abstractBusinessComponent)
Inits the.

Parameters:
abstractBusinessComponent - the abstract business component

update

public void update(AbstractBusinessComponent abstractBusinessComponent)
Update.

Parameters:
abstractBusinessComponent - the abstract business component

getBusinessComponentHandler

public AbstractComponentHandler getBusinessComponentHandler(long abstractBusinessComponent)
Gets the business component handler.

Parameters:
abstractBusinessComponent - the abstract business component
Returns:
the business component handler

removeSecurity

public void removeSecurity(FSecurity abstractBusinessObject)
Removes the security.

Parameters:
abstractBusinessObject - the abstract business object

addSecurity

public void addSecurity(FSecurity abstractBusinessObject)
Adds the security.

Parameters:
abstractBusinessObject - the abstract business object

updateSecurity

public void updateSecurity(FSecurity abstractBusinessObject)
Update security.

Parameters:
abstractBusinessObject - the abstract business object

getCentralID

public long getCentralID()
Gets the central id.

Returns:
the central id

getChildCount

public int getChildCount(FSecurityGroup securityGroup)
Description copied from interface: TransientValueSetter
Gets the child count.

Specified by:
getChildCount in interface TransientValueSetter
Parameters:
securityGroup - the abstract business object
Returns:
the child count

getOpenSessions

public java.util.Set<java.lang.String> getOpenSessions(AbstractAcceptor fixAcceptor)
Description copied from interface: TransientValueSetter
Gets the open sessions.

Specified by:
getOpenSessions in interface TransientValueSetter
Parameters:
fixAcceptor - the fix acceptor
Returns:
the open sessions

getSecurityDictionary

public SecurityDictionary getSecurityDictionary()
Gets the security dictionary.

Returns:
the security dictionary

getBankCalendarMap

public java.util.Map<java.lang.String,BankCalendar> getBankCalendarMap()
Gets the bank calendar map.

Returns:
the bank calendar map

addCounterparty

public void addCounterparty(Counterparty counterparty)
Adds the counterparty.

Parameters:
counterparty - the counterparty

removeCounterparty

public void removeCounterparty(Counterparty abstractBusinessObject)
Removes the counterparty.

Parameters:
abstractBusinessObject - the abstract business object

updateCounterparty

public void updateCounterparty(Counterparty abstractBusinessObject)
Update counterparty.

Parameters:
abstractBusinessObject - the abstract business object

getCounterparty

public Counterparty getCounterparty(long businessComponent,
                                    java.lang.String partyId,
                                    java.lang.String partyIdSource,
                                    java.lang.Integer partyRole)
Gets the counterparty.

Parameters:
businessComponent - the business component
partyId - the party id
partyIdSource - the party id source
partyRole - the party role
Returns:
the counterparty

handleSecurityList

public void handleSecurityList(quickfix.Message message)
Handle security list.

Parameters:
message - the message