public interface IEventBuilder
A builder instance can only produce one Event instance safely. So, to produce multiple Event instance you need to retrieve multiple builder instances.
Mandatory fields : codeLevelA, codeLevelB, date, user, type
Modifier and Type | Method and Description |
---|---|
IEvent |
build()
Produces an Event with the information previously fed using "with..." methods
|
IEventBuilder |
withCodeLevelA(String codeLevelA)
Feeds the codeLevelA and returns the builder
|
IEventBuilder |
withCodeLevelB(String codeLevelB)
Feeds the codeLevelB and returns the builder
|
IEventBuilder |
withCodeLevelC(String codeLevelC)
Feeds the codeLevelC and returns the builder
|
IEventBuilder |
withDate(Date date)
Feeds the date and returns the builder
|
IEventBuilder |
withObjectId(Long objectId)
Feeds the objectId and returns the builder
|
IEventBuilder |
withObjectLabel(String objectLabel)
Feeds the objectLabel and returns the builder
|
IEventBuilder |
withObjectType(String objectType)
Feeds the objectType and returns the builder
|
IEventBuilder |
withType(String type)
Feeds the type and returns the builder
|
IEventBuilder |
withUser(IUser user)
Feeds the user and returns the builder
|
IEventBuilder withCodeLevelA(String codeLevelA)
codeLevelA
- StringIllegalArgumentException
- - if codeLevelA is null or blankIEventBuilder withCodeLevelB(String codeLevelB)
codeLevelB
- StringIllegalArgumentException
- - if codeLevelB is null or blankIEventBuilder withCodeLevelC(String codeLevelC)
codeLevelC
- StringIllegalArgumentException
- - if codeLevelC is null or blankIEventBuilder withDate(Date date)
date
- DateIllegalArgumentException
- - if date is nullIEventBuilder withUser(IUser user)
user
- IUserIllegalArgumentException
- - if user is nullIEventBuilder withType(String type)
type
- StringIllegalArgumentException
- - if type is null or blankIEventBuilder withObjectType(String objectType)
objectType
- StringIllegalArgumentException
- - if objectType is null or blankIEventBuilder withObjectId(Long objectId)
objectId
- LongIllegalArgumentException
- - if objectId is nullIEventBuilder withObjectLabel(String objectLabel)
objectLabel
- StringIllegalArgumentException
- - if objectLabel is null or blankIEvent build() throws EventException
EventException
- - If builder hasn't enough data to produce an EventCopyright © 2022 Visiativ. All rights reserved.