java.lang.Object
com.atlassian.gadgets.opensocial.model.Group

@Immutable public final class Group extends Object
Represents a group name. There are three distinguished groups: ALL, FRIENDS, and SELF. Groups are uniquely specified by their name
Since:
2.0
  • Field Details

    • ALL

      public static final Group ALL
    • FRIENDS

      public static final Group FRIENDS
    • SELF

      public static final Group SELF
  • Method Details

    • of

      public static Group of(String name)
      Retrieve the group corresponding to the specified name
      Parameters:
      name - The name of the group
      Returns:
      a Group corresponding to the specified name. A new group will be created if one does not already exist
    • valueOf

      public String valueOf()
      Fetch the (unique) name of this group
      Returns:
      the name of the group
    • toString

      public String toString()
      The String representation of a group (its name)
      Overrides:
      toString in class Object
      Returns:
      the name of the group