Enum Class SharedGroupVisibility

java.lang.Object
java.lang.Enum<SharedGroupVisibility>
org.jivesoftware.openfire.group.SharedGroupVisibility
All Implemented Interfaces:
Serializable, Comparable<SharedGroupVisibility>, Constable

public enum SharedGroupVisibility extends Enum<SharedGroupVisibility>
Describes with which users a group is shared as a group on their roster.
Author:
Guus der Kinderen, guus.der.kinderen@gmail.com
  • Enum Constant Details

    • nobody

      public static final SharedGroupVisibility nobody
      Users of this group are not shared with anyone.
    • everybody

      public static final SharedGroupVisibility everybody
      Users of this group are shared with all other users in Openfire.
    • usersOfGroups

      public static final SharedGroupVisibility usersOfGroups
      Defines a collection of group names (one or more). Users in those groups will be able to see the users in the group for which this visibility is defined. Note that this value is used for both the 'Users of the same group' and 'the following groups' UI setting.
  • Method Details

    • values

      public static SharedGroupVisibility[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SharedGroupVisibility valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDbValue

      @Nonnull public String getDbValue()
    • fromDatabaseValue

      @Nonnull public static SharedGroupVisibility fromDatabaseValue(@Nullable String dbValue)