Class AdjudicateCompanyEvent
java.lang.Object
overit.geocall.bl.GenericEvent<PrincipalCompany>
overit.geocall.bl.SystemEvent<PrincipalCompany>
overit.geocall.basic.bl.auth.event.AdjudicateCompanyEvent
Event that will be called when it is necessary to resolve the company related to a user principal
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.bl.GenericEvent
GenericEvent.Step<O> -
Field Summary
FieldsFields inherited from class overit.geocall.bl.GenericEvent
executorService, journal, streamJournal -
Constructor Summary
ConstructorsConstructorDescriptionAdjudicateCompanyEvent(String username) Create a new system event that will be called when it is necessary to resolve the company related to a user principal The first busines task defininig a valid PrincipalCompany will interrupt the seuqnce of tasks and wins. -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<Journal<PrincipalCompany>> Predicate to define an interruption over the event binded tasks elaboration.Returns the principal usernameMethods inherited from class overit.geocall.bl.SystemEvent
doLaunchMethods inherited from class overit.geocall.bl.GenericEvent
clearEvents, defineResult, getJournal, getResult, getSpouts, getStreamJournal, isInternal, launch, launch, launchAsync, launchAsync, register, registerSpouts
-
Field Details
-
username
-
-
Constructor Details
-
AdjudicateCompanyEvent
Create a new system event that will be called when it is necessary to resolve the company related to a user principal The first busines task defininig a valid PrincipalCompany will interrupt the seuqnce of tasks and wins.- Parameters:
username- the principal username
-
-
Method Details
-
getUsername
Returns the principal username- Returns:
- the principal username
-
defineInterruptor
Description copied from class:GenericEventPredicate to define an interruption over the event binded tasks elaboration. By defaultthe seuqnence of tasks is not interrupted.- Overrides:
defineInterruptorin classGenericEvent<PrincipalCompany>- Returns:
- the predicate used to decide if the elaboration sequence must be interrupted
-