Class EsbListenerBase
java.lang.Object
edu.internet2.middleware.grouper.esb.listener.EsbListenerBase
- Direct Known Subclasses:
CompositeMembershipsChangeLogConsumer
,DigitalMarketplaceEsbPublisher
,EsbHttpPublisher
,EsbMessagingPublisher
,EsbPublisherChangeLogScript
,EsbXmppPublisher
,GrouperAttestationEsbListener
,GrouperDeprovisioningEsbListener
,GrouperObjectTypesEsbListener
,GrouperRecentMembershipsChangeLogConsumer
,MembershipRequireEsbListener
,ProvisioningSyncConsumer
,RemedyEsbPublisher
,StemViewPrivilegeEsbListener
,ZoomEsbPublisher
extend this to make an ESB processor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
some change log consumers might want to be called even if nothing happened in change log e.g.convertEventsToNoSensitiveData
(EsbEvents events, boolean noSensitiveData) convert events to events with no sensitive dataconvertEventsToString
(EsbEvents events) convert events to json.abstract void
disconnect if neededabstract boolean
dispatchEvent
(String eventJsonString, String consumerName) dispatchEventList
(List<EsbEventContainer> esbEventContainers) implement this instead of dispatchEvent if you want objects instead of json stringdispatchEventList
(List<EsbEventContainer> esbEventContainers, GrouperProvisioningProcessingResult grouperProvisioningProcessingResult) Deprecated.encryptMessage
(String message, Class<GcEncryptionInterface> encryptionImplClass, String encryptionKey, boolean dontSendFirst4) override the batch size configured in config fileget stuff like hib3 loader logref to consumerprotected boolean
return true if you want objects instead of jsonvoid
setChangeLogProcessorMetadata
(ChangeLogProcessorMetadata changeLogProcessorMetadata1) get stuff like hib3 loader logvoid
setEsbConsumer
(EsbConsumer esbConsumer1) ref to consumer
-
Constructor Details
-
EsbListenerBase
public EsbListenerBase()
-
-
Method Details
-
getEsbConsumer
ref to consumer- Returns:
- consumer
-
setEsbConsumer
ref to consumer- Parameters:
esbConsumer1
-
-
getChangeLogProcessorMetadata
get stuff like hib3 loader log- Returns:
- metadata
-
setChangeLogProcessorMetadata
get stuff like hib3 loader log- Parameters:
changeLogProcessorMetadata1
-
-
dispatchEvent
- Parameters:
eventJsonString
-consumerName
-- Returns:
- true if ok, false if not
-
dispatchEventList
@Deprecated public ProvisioningSyncConsumerResult dispatchEventList(List<EsbEventContainer> esbEventContainers, GrouperProvisioningProcessingResult grouperProvisioningProcessingResult) Deprecated.implement this instead of dispatchEvent if you want objects instead of json string- Parameters:
esbEventContainers
-grouperProvisioningProcessingResult
-consumerName
-- Returns:
- true if ok, false if not
-
dispatchEventList
implement this instead of dispatchEvent if you want objects instead of json string- Parameters:
esbEventContainers
-grouperProvisioningProcessingResult
-consumerName
-- Returns:
- true if ok, false if not
-
encryptMessage
public String encryptMessage(String message, Class<GcEncryptionInterface> encryptionImplClass, String encryptionKey, boolean dontSendFirst4) -
convertEventsToNoSensitiveData
convert events to events with no sensitive data- Parameters:
esbEvents
-noSensitiveData
-- Returns:
-
convertEventsToString
convert events to json. optionally indent- Parameters:
events
-- Returns:
- the json
-
disconnect
public abstract void disconnect()disconnect if needed -
isProcessObjectsInsteadOfJson
protected boolean isProcessObjectsInsteadOfJson()return true if you want objects instead of json- Returns:
-
getBatchSize
override the batch size configured in config file- Returns:
-
callAtLeastOnce
public boolean callAtLeastOnce()some change log consumers might want to be called even if nothing happened in change log e.g. check messages in provisioners- Returns:
-
dispatchEventList(List)