Class TeamMembershipElement

  • All Implemented Interfaces:
    java.io.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 Detail

      • TeamMembershipElement

        public TeamMembershipElement()
        Default constructor
      • TeamMembershipElement

        public TeamMembershipElement​(TeamMembershipElement template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getPosition

        public java.lang.String getPosition()
        Return the name of the special position (if any) in the team.
        Returns:
        string name
      • setPosition

        public void setPosition​(java.lang.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 java.lang.String toString()
        JSON-style toString
        Overrides:
        toString in class PersonalRoleElement
        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 class PersonalRoleElement
        Parameters:
        objectToCompare - test object
        Returns:
        result of comparison
      • hashCode

        public int hashCode()
        Return hash code for this object
        Overrides:
        hashCode in class PersonalRoleElement
        Returns:
        int hash code