Class CommunityProfileOutboundEvent
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.events.CommunityProfileEventHeader
-
- org.odpi.openmetadata.accessservices.communityprofile.events.CommunityProfileOutboundEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class CommunityProfileOutboundEvent extends CommunityProfileEventHeader
CommunityProfileOutboundEvent describes the structure of the events emitted by the Community Profile OMAS.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommunityProfileOutboundEvent()
Default constructorCommunityProfileOutboundEvent(CommunityProfileOutboundEvent template)
Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object objectToCompare)
Return comparison result based on the content of the properties.java.lang.String
getClassificationName()
Return the name of the classification that has changed.ElementStub
getEndOneElement()
Return the element at end one of the relationship that is described in the principleElement.ElementStub
getEndTwoElement()
Return the element at end two of the relationship that is described in the principleElement.CommunityProfileOutboundEventType
getEventType()
Return the type of event.boolean
getIsPublic()
Return whether this award can be shared with colleagues.long
getPlateau()
Return the current karma point plateau for this individual.long
getPointsTotal()
Return the total number of karma points that an individual has achieved.ElementStub
getPrincipleElement()
Return the element that is the subject of the event.java.lang.String
getUserId()
Return user identity of associated user.int
hashCode()
Return hash code for this objectvoid
setClassificationName(java.lang.String classificationName)
Set up the name of the classification that has changed.void
setEndOneElement(ElementStub endOneElement)
Set up the element at end one of the relationship that is described in the principleElement.void
setEndTwoElement(ElementStub endTwoElement)
Set up the element at end two of the relationship that is described in the principleElement.void
setEventType(CommunityProfileOutboundEventType eventType)
Set up the type of event.void
setIsPublic(boolean isPublic)
Set up whether this award can be shared by colleagues.void
setPlateau(long plateau)
Set up the current karma point plateau for this individual.void
setPointsTotal(long pointsTotal)
Set up the total number of karma points that an individual has achieved.void
setPrincipleElement(ElementStub principleElement)
Set up the element that is the subject of the event.void
setUserId(java.lang.String userId)
Set up the user id of the associated user.java.lang.String
toString()
JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.events.CommunityProfileEventHeader
getEventVersionId, setEventVersionId
-
-
-
-
Constructor Detail
-
CommunityProfileOutboundEvent
public CommunityProfileOutboundEvent()
Default constructor
-
CommunityProfileOutboundEvent
public CommunityProfileOutboundEvent(CommunityProfileOutboundEvent template)
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Detail
-
getEventType
public CommunityProfileOutboundEventType getEventType()
Return the type of event.- Returns:
- event type enum
-
setEventType
public void setEventType(CommunityProfileOutboundEventType eventType)
Set up the type of event.- Parameters:
eventType
- - event type enum
-
getPrincipleElement
public ElementStub getPrincipleElement()
Return the element that is the subject of the event.- Returns:
- element identifiers
-
setPrincipleElement
public void setPrincipleElement(ElementStub principleElement)
Set up the element that is the subject of the event.- Parameters:
principleElement
- element identifiers
-
getClassificationName
public java.lang.String getClassificationName()
Return the name of the classification that has changed. Only set up for classify, reclassify and declassify events.- Returns:
- string name
-
setClassificationName
public void setClassificationName(java.lang.String classificationName)
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 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(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 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(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
public java.lang.String getUserId()
Return user identity of associated user.- Returns:
- user id
-
setUserId
public void setUserId(java.lang.String userId)
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
public java.lang.String toString()
JSON-style toString- Overrides:
toString
in classCommunityProfileEventHeader
- Returns:
- return string containing the property names and values
-
equals
public boolean equals(java.lang.Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equals
in classCommunityProfileEventHeader
- Parameters:
objectToCompare
- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCode
in classCommunityProfileEventHeader
- Returns:
- int hash code
-
-