|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jickr.Group
public class Group
Encapsulates information about a Flickr Group.
Create a new Group object with the Group.search(String)
method,
the Group.findByURL(URL)
method, or the
Group.getGroups()
method.
search(String)
,
findByURL(URL)
,
getGroups()
Constructor Summary | |
---|---|
Group(java.lang.String groupID)
Create a new Group object corresponding to the Flickr Group. |
Method Summary | |
---|---|
void |
add(Photo photo)
Add a photo to the Group's pool. |
boolean |
equals(java.lang.Object o)
Check if this Group is equal to the object supplied. |
static Group |
findByURL(java.net.URL groupURL)
Get a new group by searching on the URL of that group. |
java.lang.String |
getDescription()
Get the Description of this Group. |
static java.util.List<Group> |
getGroups()
Get the list of groups that the authenticated user can add photos to. |
java.lang.String |
getID()
Get the ID of this group. |
java.lang.String |
getName()
Get the Title of this Group. |
int |
getNumMembers()
Get the number of Members who belong to this group. |
java.util.List<Photo> |
getPhotos()
Get the photos available in this Group's pool. |
java.net.URL |
getURL()
Get the URL associated with this group. |
int |
hashCode()
Return the HashCode of this Group, based on ID. |
void |
remove(Photo photo)
Remove a photo to the Group's pool. |
static java.util.List<Group> |
search(java.lang.String searchText)
Full text search for groups which contain searchText. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Group(java.lang.String groupID)
groupID
- Unique Flickr ID of the Group.search(String)
Method Detail |
---|
public static Group findByURL(java.net.URL groupURL) throws FlickrException
groupURL
- URL for this group
FlickrException
- on any error.public static java.util.List<Group> search(java.lang.String searchText) throws FlickrException
searchText
- The String to search for. Must not be null.
FlickrException
- on any error.public static java.util.List<Group> getGroups() throws FlickrException
FlickrException
- on any error.public java.lang.String getID()
public java.lang.String getName() throws FlickrException
FlickrException
- on any error.public java.lang.String getDescription() throws FlickrException
FlickrException
- on any error.public int getNumMembers() throws FlickrException
FlickrException
- on any error.public java.util.List<Photo> getPhotos() throws FlickrException
FlickrException
- on any error.public java.net.URL getURL() throws FlickrException
FlickrException
- on any error.public void add(Photo photo) throws FlickrException
photo
- Photo to add.
FlickrException
public void remove(Photo photo) throws FlickrException
photo
- Photo to remove.
FlickrException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Object to compare.
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |