public interface

DetailedGroup

com.atlassian.bitbucket.user.DetailedGroup

Class Overview

Extends a group, which is a simple String name generally, with additional details relating to the directory backing the group.

Summary

Public Methods
@Nonnull String getName()
Retrieves the group's name.
boolean isDeletable()
Retrieves a flag indicating whether the directory in which this group is stored supports deleting groups.

Public Methods

@Nonnull public String getName ()

Retrieves the group's name.

Returns
  • the group name

public boolean isDeletable ()

Retrieves a flag indicating whether the directory in which this group is stored supports deleting groups.

Note: Because a group is really nothing more than a name, it is possible a given group exists in multiple directories. As a result, it's possible that "deleting" a group will not remove it from the system entirely; it may still exist in other directories. Additionally, because a given group can exist in multiple directories, it is possible that it is deletable in some and not in others. If a group is deletable in any directory, it is considered deletable.

Returns
  • true if at least one directory supports deleting the group; otherwise, false if none do