Class ProjectMemberManager.ProjectMember

java.lang.Object
org.ametys.plugins.workspaces.members.ProjectMemberManager.ProjectMember
Enclosing class:
ProjectMemberManager

public static class ProjectMemberManager.ProjectMember extends Object
This class represents a member of a project. Could be a user or a group
  • Constructor Details

    • ProjectMember

      public ProjectMember(Group group)
      Create a project member as a group
      Parameters:
      group - the group attached to this member. Cannot be null.
    • ProjectMember

      public ProjectMember(User user, String role, boolean isManager)
      Create a project member as a group
      Parameters:
      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 Details

    • getTitle

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

      Get the sortable title of the member.
      Returns:
      The sortable title of the member
    • getType

      Get the type of the member. It can be a user or a group
      Returns:
      The type 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object