Class ProjectMemberManager.ProjectMember
java.lang.Object
org.ametys.plugins.workspaces.members.ProjectMemberManager.ProjectMember
- Enclosing class:
- ProjectMemberManager
This class represents a member of a project. Could be a user or a group
-
Constructor Summary
ConstructorDescriptionProjectMember
(String title, String sortableTitle, Group group) Create a project member as a groupProjectMember
(String title, String sortableTitle, User user, String role, boolean isManager) Create a project member as a group -
Method Summary
Modifier and TypeMethodDescriptionboolean
getGroup()
Get the group of the member.getRole()
Get the role of the member.Get the sortable title of the member.getTitle()
Get the title of the member.getType()
Get the type of the member.getUser()
Get the user of the member.int
hashCode()
boolean
Test if the member is a manager of the project
-
Constructor Details
-
ProjectMember
Create a project member as a group- Parameters:
title
- the member's title (user's full name or group's label)sortableTitle
- the sortable titlegroup
- the group attached to this member. Cannot be null.
-
ProjectMember
Create a project member as a group- Parameters:
title
- the member's title (user's full name or group's label)sortableTitle
- the sortable titlerole
- the roleisManager
- true if the member is a manager of the projectuser
- the user attached to this member. Cannot be null.
-
-
Method Details
-
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
Get the role of the member.- Returns:
- The role of the member
-
isManager
Test if the member is a manager of the project- Returns:
- True if this user is a manager of the project
-
getUser
Get the user of the member.- Returns:
- The user of the member
-
getGroup
Get the group of the member.- Returns:
- The group of the member
-
equals
-
hashCode
-