Class TeamMembershipElement
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.metadataelement.PersonalRoleElement
-
- org.odpi.openmetadata.accessservices.communityprofile.metadataelement.TeamMembershipElement
-
- All Implemented Interfaces:
Serializable,MetadataElement
public class TeamMembershipElement extends PersonalRoleElement
TeamMembershipElement contains the properties and header for a role that shows a person is a leader or a member of a team as retrieved from the metadata repository.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TeamMembershipElement()Default constructorTeamMembershipElement(TeamMembershipElement template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.booleangetLeadershipRole()Return the properties of the userId.StringgetPosition()Return the name of the special position (if any) in the team.ElementStubgetTeam()Return the unique identifier (guid) of the team.inthashCode()Return hash code for this objectvoidsetLeadershipRole(boolean leadershipRole)Set up the userId properties.voidsetPosition(String position)Set up the name of the special position (if any) in the team.voidsetTeam(ElementStub team)Set up the unique identifier (guid) of the team.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.metadataelement.PersonalRoleElement
getElementHeader, getProperties, setElementHeader, setProperties
-
-
-
-
Constructor Detail
-
TeamMembershipElement
public TeamMembershipElement()
Default constructor
-
TeamMembershipElement
public TeamMembershipElement(TeamMembershipElement template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getPosition
public String getPosition()
Return the name of the special position (if any) in the team.- Returns:
- string name
-
setPosition
public void setPosition(String position)
Set up the name of the special position (if any) in the team.- Parameters:
position- string name
-
getLeadershipRole
public boolean getLeadershipRole()
Return the properties of the userId.- Returns:
- flag
-
setLeadershipRole
public void setLeadershipRole(boolean leadershipRole)
Set up the userId properties.- Parameters:
leadershipRole- flag
-
getTeam
public ElementStub getTeam()
Return the unique identifier (guid) of the team.- Returns:
- description of team profile
-
setTeam
public void setTeam(ElementStub team)
Set up the unique identifier (guid) of the team.- Parameters:
team- string guid
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classPersonalRoleElement- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classPersonalRoleElement- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classPersonalRoleElement- Returns:
- int hash code
-
-