Class ProjectMemberManager.ProjectMember

    • Constructor Detail

      • ProjectMember

        public ProjectMember​(String title,
                             String sortableTitle,
                             Group group)
        Create a project member as a group
        Parameters:
        title - the member's title (user's full name or group's label)
        sortableTitle - the sortable title
        group - the group attached to this member. Cannot be null.
      • ProjectMember

        public ProjectMember​(String title,
                             String sortableTitle,
                             User user,
                             String role,
                             boolean isManager)
        Create a project member as a group
        Parameters:
        title - the member's title (user's full name or group's label)
        sortableTitle - the sortable title
        role - the role
        isManager - true if the member is a manager of the project
        user - the user attached to this member. Cannot be null.
    • Method Detail

      • getTitle

        public String getTitle()
        Get the title of the member.
        Returns:
        The title of the member
      • getSortableTitle

        public String getSortableTitle()
        Get the sortable title of the member.
        Returns:
        The sortable title of the member
      • getRole

        public String getRole()
        Get the role of the member.
        Returns:
        The role of the member
      • isManager

        public boolean isManager()
        Test if the member is a manager of the project
        Returns:
        True if this user is a manager of the project
      • getUser

        public User getUser()
        Get the user of the member.
        Returns:
        The user of the member
      • getGroup

        public Group getGroup()
        Get the group of the member.
        Returns:
        The group of the member