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 Summary
Constructors Constructor Description ProjectMember(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Group
getGroup()
Get the group of the member.String
getRole()
Get the role of the member.String
getSortableTitle()
Get the sortable title of the member.String
getTitle()
Get the title of the member.JCRProjectMember.MemberType
getType()
Get the type of the member.User
getUser()
Get the user of the member.int
hashCode()
boolean
isManager()
Test if the member is a manager of the project
-
-
-
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 titlegroup
- 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 titlerole
- the roleisManager
- true if the member is a manager of the projectuser
- the user attached to this member. Cannot be null.
-
-
Method Detail
-
getSortableTitle
public String getSortableTitle()
Get the sortable title of the member.- Returns:
- The sortable title of the member
-
getType
public JCRProjectMember.MemberType getType()
Get the type of the member. It can be a user or a group- Returns:
- The type 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
-
-