Class TeamRole

    • Constructor Detail

      • TeamRole

        public TeamRole()
    • Method Detail

      • getId

        public Long getId()
        Specified by:
        getId in interface WithId
        Returns:
        the project ID
      • setId

        public void setId​(Long id)
        Set id
        Parameters:
        id - id
      • setTrackingData

        public void setTrackingData​(Tracking trackingData)
        Set tracking data
        Specified by:
        setTrackingData in interface WithTrackingData
        Parameters:
        trackingData - new tracking data
      • setDeletionStatus

        public void setDeletionStatus​(DeletionStatus status)
        Description copied from interface: WithDeletionStatus
        Set the deletion status :

        Is it in a bin or ready to be definitely deleted.

        Null means active.

        Specified by:
        setDeletionStatus in interface WithDeletionStatus
        Parameters:
        status - null or a deletion status
      • getName

        public String getName()
        Get role name
        Returns:
        the name
      • setName

        public void setName​(String name)
        Set the name
        Parameters:
        name - new role name
      • getProject

        public Project getProject()
        Returns:
        the project
      • setProject

        public void setProject​(Project project)
        Parameters:
        project - the project
      • getProjectId

        public Long getProjectId()
        get the project id. To be sent to client
        Returns:
        id of the project or null
      • setProjectId

        public void setProjectId​(Long id)
        set the project id. For serialization only
        Parameters:
        id - the id of the project
      • getMembers

        public List<TeamMember> getMembers()
        Get members
        Returns:
        members
      • setMembers

        public void setMembers​(List<TeamMember> members)
        Set the list of members
        Parameters:
        members - list of members
      • getAssignments

        public List<Assignment> getAssignments()
        Get the list of assignments
        Returns:
        assignments list
      • setAssignments

        public void setAssignments​(List<Assignment> assignments)
        Set the list of assignments
        Parameters:
        assignments - new list of assignments
      • mergeToUpdate

        public void mergeToUpdate​(ColabEntity other)
                           throws ColabMergeException
        Description copied from interface: ColabEntity
        Update this object according to values provided by other.

        This is used when an object is prepared to be updated in database.

        Specified by:
        mergeToUpdate in interface ColabEntity
        Parameters:
        other - object to take new values from
        Throws:
        ColabMergeException - if merging is not possible
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object