org.springframework.social.facebook.api
Class GroupMembership

java.lang.Object
  extended by org.springframework.social.facebook.api.FacebookObject
      extended by org.springframework.social.facebook.api.GroupMembership

public class GroupMembership
extends FacebookObject


Constructor Summary
GroupMembership(String id, String name, int bookmarkOrder, boolean administrator)
           
GroupMembership(String id, String name, int version, int bookmarkOrder, boolean administrator)
          Deprecated. The Facebook Graph API no longer maintains a version for groups. The group version will always be 1.
 
Method Summary
 int getBookmarkOrder()
          The position of the group in the user's group bookmarks (or 999999999 if not positioned)
 String getId()
          The group ID
 String getName()
          The group name
 int getUnread()
          The count of group updates that the user has not yet read.
 int getVersion()
          Deprecated. No longer maintained in the Graph API. Will always be 1
 boolean isAdministrator()
          Returns true if the user is an administrator of the group.
 
Methods inherited from class org.springframework.social.facebook.api.FacebookObject
add, getExtraData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupMembership

public GroupMembership(String id,
                       String name,
                       int bookmarkOrder,
                       boolean administrator)

GroupMembership

@Deprecated
public GroupMembership(String id,
                                  String name,
                                  int version,
                                  int bookmarkOrder,
                                  boolean administrator)
Deprecated. The Facebook Graph API no longer maintains a version for groups. The group version will always be 1.

Method Detail

getId

public String getId()
The group ID


getName

public String getName()
The group name


getVersion

public int getVersion()
Deprecated. No longer maintained in the Graph API. Will always be 1

The group version (always 1)


getBookmarkOrder

public int getBookmarkOrder()
The position of the group in the user's group bookmarks (or 999999999 if not positioned)


isAdministrator

public boolean isAdministrator()
Returns true if the user is an administrator of the group.


getUnread

public int getUnread()
The count of group updates that the user has not yet read.