Package org.apache.unomi.graphql.utils
Class EventBuilder
- java.lang.Object
-
- org.apache.unomi.graphql.utils.EventBuilder
-
public class EventBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description EventBuilder(String eventType, Profile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
build()
static EventBuilder
create(String eventType, Profile profile)
EventBuilder
setPersistent(boolean persistent)
EventBuilder
setPropertiesToAdd(Map<String,Object> propertiesToAdd)
EventBuilder
setPropertiesToDelete(List<String> propertiesToDelete)
EventBuilder
setPropertiesToUpdate(Map<String,Object> propertiesToUpdate)
EventBuilder
setProperty(String property, Object value)
-
-
-
Method Detail
-
create
public static EventBuilder create(String eventType, Profile profile)
-
setPropertiesToAdd
public EventBuilder setPropertiesToAdd(Map<String,Object> propertiesToAdd)
-
setPropertiesToUpdate
public EventBuilder setPropertiesToUpdate(Map<String,Object> propertiesToUpdate)
-
setPropertiesToDelete
public EventBuilder setPropertiesToDelete(List<String> propertiesToDelete)
-
setPersistent
public EventBuilder setPersistent(boolean persistent)
-
setProperty
public EventBuilder setProperty(String property, Object value)
-
build
public Event build()
-
-