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
-
-
Field Summary
Fields Modifier and Type Field Description private Group_groupprivate boolean_isManagerprivate String_roleprivate String_sortableTitleprivate String_titleprivate JCRProjectMember.MemberType_typeprivate User_user
-
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 booleanequals(Object obj)GroupgetGroup()Get the group of the member.StringgetRole()Get the role of the member.StringgetSortableTitle()Get the sortable title of the member.StringgetTitle()Get the title of the member.JCRProjectMember.MemberTypegetType()Get the type of the member.UsergetUser()Get the user of the member.inthashCode()booleanisManager()Test if the member is a manager of the project
-
-
-
Field Detail
-
_sortableTitle
private String _sortableTitle
-
_type
private JCRProjectMember.MemberType _type
-
_isManager
private boolean _isManager
-
-
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
-
-