com.sap.aii.af.sample.adapter.ra
Class PartyChangeCallBackHandler

java.lang.Object
  extended by com.sap.aii.af.service.cpa.AbstractPartyCallBackHandler
      extended by com.sap.aii.af.sample.adapter.ra.PartyChangeCallBackHandler
All Implemented Interfaces:
com.sap.aii.af.service.cpa.CPAObjectCallbackInterface

public class PartyChangeCallBackHandler
extends com.sap.aii.af.service.cpa.AbstractPartyCallBackHandler

PartyChangeCallBackHandler handles the PartyChangeCallBack Events. This Handler is implemented as a Singleton for Demonstration purposes and for the sake of simplicity. The Real Implementations need not be a Singleton, and Multiple Instances of the Callback Handler can be registered for PartyChangeEvent of one Party and Each instance can be registered for any number of parties. Also the registration should be undone at the application stop or whenever it is not needed by calling the unregister Method on the PartyCallBackController This implementation checks the identifier for the schema "DUNS" in the party configuration.

Author:
i044316

Field Summary
static String DUNS
           
 
Method Summary
 void addParty(String partyName, String identifier)
           
 void clear()
          Clears the Registrations in the Map
static PartyChangeCallBackHandler getInstance()
           
 Set<String> getRegisteredParties()
           
 void partyrefreshEvent(com.sap.aii.af.service.cpa.Party arg0)
           
 void removeParty(String partyName)
           
 
Methods inherited from class com.sap.aii.af.service.cpa.AbstractPartyCallBackHandler
objectRefreshed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DUNS

public static final String DUNS
See Also:
Constant Field Values
Method Detail

getInstance

public static PartyChangeCallBackHandler getInstance()

partyrefreshEvent

public void partyrefreshEvent(com.sap.aii.af.service.cpa.Party arg0)
Specified by:
partyrefreshEvent in class com.sap.aii.af.service.cpa.AbstractPartyCallBackHandler

addParty

public void addParty(String partyName,
                     String identifier)

removeParty

public void removeParty(String partyName)

getRegisteredParties

public Set<String> getRegisteredParties()

clear

public void clear()
Clears the Registrations in the Map



Copyright © 2012. All Rights Reserved.