Class CompanyInstallHandler
java.lang.Object
overit.geocall.bl.BusinessTask<CompanyInstallEvent>
overit.geocall.basic.bl.event.consumer.CompanyInstallHandler
- All Implemented Interfaces:
Serializable,Tool
@Event(value=CompanyInstallEvent.class,
priority=1)
public class CompanyInstallHandler
extends BusinessTask<CompanyInstallEvent>
This task is used to update the consumers defined only on system configurations in order to subscribe the consumers
at the topic related to the new company only if the topic segregation is enabled
ConsumerProperties.isTopicSegregation()- See Also:
- GCApi:
- task
-
Constructor Summary
ConstructorsConstructorDescriptionCompanyInstallHandler(overit.geocall.event.consumer.service.UpdateConsumerService updateConsumerService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(CompanyInstallEvent companyInstallEvent, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
CompanyInstallHandler
public CompanyInstallHandler(overit.geocall.event.consumer.service.UpdateConsumerService updateConsumerService)
-
-
Method Details
-
body
protected void body(CompanyInstallEvent companyInstallEvent, PoolKit pk) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<CompanyInstallEvent>- Parameters:
companyInstallEvent- the object upon which the task will works onpk- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-