public interface EventBuilder<E extends Event,B extends EventBuilder<E,B>>
Modifier and Type | Method and Description |
---|---|
<CTX extends java.io.Serializable> |
addContext(CTX context)
Adds a context to the event being created
|
<CTX extends java.io.Serializable> |
addContexts(java.lang.Iterable<CTX> context)
Adds a list of context to the event being created
|
E |
emit()
Sends a event to the backend.
|
B |
withCode(java.lang.String code)
Sets the code of the Event being created
Throws an IllegalAccessError if length() of the String is more than 128 long
|
B |
withComponentName(java.lang.String componentName)
Sets the component name of the Event being created
Throws an IllegalAccessError if length() of the String is more than 128 long
|
B |
withCreationTimeStamp(java.util.Date timeStamp)
Sets the time stamp of the Event being created
Throws an IllegalAccessError if time stamp is more than an hour before current environment time
|
B |
withIdentifier(java.lang.String identifier)
Sets the identifier of the event that is currently built
|
B |
withLabel(java.lang.String label)
Sets the title of the Event being created
Throws an IllegalAccessError if length() of the String is more than 256 long
|
B withIdentifier(java.lang.String identifier)
identifier
- the identifier of the target event Event.getIdentifier()
B withCreationTimeStamp(java.util.Date timeStamp)
timeStamp
- the time stamp valueB withCode(java.lang.String code)
code
- B withComponentName(java.lang.String componentName)
code
- B withLabel(java.lang.String label)
code
- <CTX extends java.io.Serializable> B addContext(CTX context)
context
- <CTX extends java.io.Serializable> B addContexts(java.lang.Iterable<CTX> context)
context
- E emit()
event
- Copyright © 2013 Dassault Systèmes, All Rights Reserved.