Class Group
- java.lang.Object
-
- com.atlassian.confluence.api.model.people.Group
-
- All Implemented Interfaces:
Subject
,NavigationAware
@ExperimentalApi public class Group extends Object implements Subject, NavigationAware
Represents a group that may contain zero or more users.This model is deliberately very simple. It is intended that this (and most of the Subject hierarchy in api.model.people) will be replaced by Crowd entities in the near future.
- Since:
- 5.7
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
GROUP_TYPE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
String
getDisplayName()
Returns a name that is suitable for display to identify the user / group.String
getName()
SubjectType
getSubjectType()
int
hashCode()
Navigation.Builder
resolveNavigation(NavigationService navigationService)
String
toString()
-
-
-
Field Detail
-
GROUP_TYPE
protected static final String GROUP_TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Group
public Group(String name)
-
-
Method Detail
-
getName
public String getName()
-
getDisplayName
public String getDisplayName()
Description copied from interface:Subject
Returns a name that is suitable for display to identify the user / group. Will never return null.- Specified by:
getDisplayName
in interfaceSubject
-
resolveNavigation
public Navigation.Builder resolveNavigation(NavigationService navigationService)
- Specified by:
resolveNavigation
in interfaceNavigationAware
-
getSubjectType
public SubjectType getSubjectType()
- Specified by:
getSubjectType
in interfaceSubject
- Returns:
SubjectType
corresponding to this Subject- See Also:
SubjectType.VALUES
-
-