Package dev.cdevents.events
Class ServiceRolledbackCDEvent
- java.lang.Object
-
- dev.cdevents.models.service.rolledback.Servicerolledback
-
- dev.cdevents.events.ServiceRolledbackCDEvent
-
- All Implemented Interfaces:
CDEvent
public class ServiceRolledbackCDEvent extends Servicerolledback implements CDEvent
-
-
Constructor Summary
Constructors Constructor Description ServiceRolledbackCDEvent()Constructor to init CDEvent and set the Subject forServiceRolledbackCDEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcurrentCDEventType()StringeventSchema()StringeventSource()voidinitCDEvent()Initialize the CDEvent with the context values.StringschemaURL()voidsetSource(URI source)voidsetSubjectArtifactId(String artifactId)voidsetSubjectEnvironmentId(String id)voidsetSubjectEnvironmentSource(String source)voidsetSubjectId(String subjectId)voidsetSubjectSource(URI subjectSource)-
Methods inherited from class dev.cdevents.models.service.rolledback.Servicerolledback
equals, getContext, getCustomData, getCustomDataContentType, getSubject, hashCode, setContext, setCustomData, setCustomDataContentType, setSubject
-
-
-
-
Constructor Detail
-
ServiceRolledbackCDEvent
public ServiceRolledbackCDEvent()
Constructor to init CDEvent and set the Subject forServiceRolledbackCDEvent.
-
-
Method Detail
-
initCDEvent
public void initCDEvent()
Initialize the CDEvent with the context values.- Specified by:
initCDEventin interfaceCDEvent
-
eventSource
public String eventSource()
- Specified by:
eventSourcein interfaceCDEvent- Returns:
- the event source
-
currentCDEventType
public String currentCDEventType()
- Specified by:
currentCDEventTypein interfaceCDEvent- Returns:
- the current CDEvent type
-
schemaURL
public String schemaURL()
-
eventSchema
public String eventSchema()
- Specified by:
eventSchemain interfaceCDEvent- Returns:
- the servicerolledback.json schema Json
-
setSubjectId
public void setSubjectId(String subjectId)
- Parameters:
subjectId- sets the subject Id
-
setSubjectSource
public void setSubjectSource(URI subjectSource)
- Parameters:
subjectSource- sets the subject source
-
setSubjectArtifactId
public void setSubjectArtifactId(String artifactId)
- Parameters:
artifactId-
-
setSubjectEnvironmentId
public void setSubjectEnvironmentId(String id)
- Parameters:
id-
-
setSubjectEnvironmentSource
public void setSubjectEnvironmentSource(String source)
- Parameters:
source-
-
-