Package hudson.security
Class GroupDetails
- java.lang.Object
-
- hudson.security.GroupDetails
-
public abstract class GroupDetails extends Object
Represents the details of a group.- Since:
- 1.280
- Author:
- Kohsuke Kawaguchi
- See Also:
UserDetails
-
-
Constructor Summary
Constructors Constructor Description GroupDetails()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Returns the human-readable name used for rendering in HTML.Set<String>getMembers()Returns the members of the group, ornullif the members were not retrieved.abstract StringgetName()Returns the name of the group.
-
-
-
Method Detail
-
getName
public abstract String getName()
Returns the name of the group.- Returns:
- never null.
-
getDisplayName
public String getDisplayName()
Returns the human-readable name used for rendering in HTML.This may contain arbitrary character, and it can change.
- Returns:
- never null.
-
getMembers
public Set<String> getMembers()
Returns the members of the group, ornullif the members were not retrieved. The results of this method are not live, they represent the membership at the time theGroupDetailswas instantiated. As fetching the membership of a group can be an expensive operation, it is preferential to use theSecurityRealm.loadGroupByGroupname(String, boolean)method to retrieveGroupDetailsin those cases where you want to try and retrieve the members of the group, though even that method does not guarantee to retrieve the members of a group as the backingSecurityRealmimplementation may not support such a query.- Returns:
- the members of the group at the point in time when the
GroupDetailswere retrieved, ornullif the members were not retrieved. - Since:
- 1.549
-
-