Interface DetailedGroup


public interface DetailedGroup
Extends a group, which is a simple String name generally, with additional details relating to the directory backing the group.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the group's name.
    boolean
    Retrieves a flag indicating whether the directory in which this group is stored supports deleting groups.
  • Method Details

    • getName

      @Nonnull String getName()
      Retrieves the group's name.
      Returns:
      the group name
    • isDeletable

      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