Class CommunityProfileOutboundEvent
java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.events.CommunityProfileEventHeader
org.odpi.openmetadata.accessservices.communityprofile.events.CommunityProfileOutboundEvent
CommunityProfileOutboundEvent describes the structure of the events emitted by the Community Profile OMAS.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the name of the classification that has changed.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStubReturn the element at end one of the relationship that is described in the principleElement.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStubReturn the element at end two of the relationship that is described in the principleElement.Return the type of event.booleanReturn whether this award can be shared with colleagues.longReturn the current karma point plateau for this individual.longReturn the total number of karma points that an individual has achieved.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStubReturn the element that is the subject of the event.Return user identity of associated user.inthashCode()Return hash code for this objectvoidsetClassificationName(String classificationName) Set up the name of the classification that has changed.voidsetEndOneElement(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub endOneElement) Set up the element at end one of the relationship that is described in the principleElement.voidsetEndTwoElement(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub endTwoElement) Set up the element at end two of the relationship that is described in the principleElement.voidsetEventType(CommunityProfileOutboundEventType eventType) Set up the type of event.voidsetIsPublic(boolean isPublic) Set up whether this award can be shared by colleagues.voidsetPlateau(long plateau) Set up the current karma point plateau for this individual.voidsetPointsTotal(long pointsTotal) Set up the total number of karma points that an individual has achieved.voidsetPrincipleElement(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub principleElement) Set up the element that is the subject of the event.voidSet up the user id of the associated user.toString()JSON-style toStringMethods inherited from class org.odpi.openmetadata.accessservices.communityprofile.events.CommunityProfileEventHeader
getEventVersionId, setEventVersionId
-
Constructor Details
-
CommunityProfileOutboundEvent
public CommunityProfileOutboundEvent()Default constructor -
CommunityProfileOutboundEvent
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getEventType
Return the type of event.- Returns:
- event type enum
-
setEventType
Set up the type of event.- Parameters:
eventType- - event type enum
-
getPrincipleElement
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub getPrincipleElement()Return the element that is the subject of the event.- Returns:
- element identifiers
-
setPrincipleElement
public void setPrincipleElement(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub principleElement) Set up the element that is the subject of the event.- Parameters:
principleElement- element identifiers
-
getClassificationName
Return the name of the classification that has changed. Only set up for classify, reclassify and declassify events.- Returns:
- string name
-
setClassificationName
Set up the name of the classification that has changed. Only set up for classify, reclassify and declassify events.- Parameters:
classificationName- string name
-
getEndOneElement
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub getEndOneElement()Return the element at end one of the relationship that is described in the principleElement. This is only set up on events about relationships.- Returns:
- stub
-
setEndOneElement
public void setEndOneElement(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub endOneElement) Set up the element at end one of the relationship that is described in the principleElement. This is only set up on events about relationships.- Parameters:
endOneElement- stub
-
getEndTwoElement
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub getEndTwoElement()Return the element at end two of the relationship that is described in the principleElement. This is only set up on events about relationships.- Returns:
- stub
-
setEndTwoElement
public void setEndTwoElement(org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementStub endTwoElement) Set up the element at end two of the relationship that is described in the principleElement. This is only set up on events about relationships.- Parameters:
endTwoElement- stub
-
getUserId
Return user identity of associated user.- Returns:
- user id
-
setUserId
Set up the user id of the associated user.- Parameters:
userId- user id
-
getIsPublic
public boolean getIsPublic()Return whether this award can be shared with colleagues.- Returns:
- flag
-
setIsPublic
public void setIsPublic(boolean isPublic) Set up whether this award can be shared by colleagues.- Parameters:
isPublic- flag
-
getPointsTotal
public long getPointsTotal()Return the total number of karma points that an individual has achieved.- Returns:
- long
-
setPointsTotal
public void setPointsTotal(long pointsTotal) Set up the total number of karma points that an individual has achieved.- Parameters:
pointsTotal- long
-
getPlateau
public long getPlateau()Return the current karma point plateau for this individual.- Returns:
- long
-
setPlateau
public void setPlateau(long plateau) Set up the current karma point plateau for this individual.- Parameters:
plateau- long
-
toString
JSON-style toString- Overrides:
toStringin classCommunityProfileEventHeader- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equalsin classCommunityProfileEventHeader- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classCommunityProfileEventHeader- Returns:
- int hash code
-