public class TwitterExtractor extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TwitterExtractor.ContentType
Valid content types for a profile
|
Modifier and Type | Method and Description |
---|---|
static TwitterExtractor |
getExtractor(UserIdentity userId) |
java.util.List<TwitterPhotoDescription> |
getPhotoDescriptions() |
java.util.List<TwitterPhotoDescription> |
getPhotoDescriptions(boolean generatedTags,
java.util.Collection<java.lang.String> twitterUserIdFilter) |
TwitterProfile |
getProfile(java.util.EnumSet<TwitterExtractor.ContentType> contentTypes) |
java.util.List<TwitterProfile> |
getProfiles(java.util.EnumSet<TwitterExtractor.ContentType> contentTypes,
java.lang.String[] screenNames) |
java.util.List<TwitterStatusMessage> |
getStatusMessages() |
UserIdentity |
getUserId() |
java.util.List<TwitterVideoDescription> |
getVideoDescriptions() |
java.util.List<TwitterVideoDescription> |
getVideoDescriptions(java.util.Collection<java.lang.String> twitterUserIdFilter) |
boolean |
isAbortOnRateLimit() |
boolean |
isFilterDescriptions()
filter video and photo descriptions for descriptions not belonging to the profile owner
|
void |
setAbortOnRateLimit(boolean abortOnRateLimit) |
void |
setFilterDescriptions(boolean filterDescriptions)
filter video and photo descriptions for descriptions not belonging to the profile owner
|
public static TwitterExtractor getExtractor(UserIdentity userId)
userId
- public java.util.List<TwitterProfile> getProfiles(java.util.EnumSet<TwitterExtractor.ContentType> contentTypes, java.lang.String[] screenNames)
contentTypes
- screenNames
- public TwitterProfile getProfile(java.util.EnumSet<TwitterExtractor.ContentType> contentTypes) throws java.lang.IllegalArgumentException
contentTypes
- java.lang.IllegalArgumentException
- on bad content typespublic java.util.List<TwitterPhotoDescription> getPhotoDescriptions()
public java.util.List<TwitterPhotoDescription> getPhotoDescriptions(boolean generatedTags, java.util.Collection<java.lang.String> twitterUserIdFilter)
generatedTags
- if true the generated tags will be retrieved from the databasetwitterUserIdFilter
- if given, only descriptions from the given users will be returnedpublic java.util.List<TwitterVideoDescription> getVideoDescriptions()
public java.util.List<TwitterVideoDescription> getVideoDescriptions(java.util.Collection<java.lang.String> twitterUserIdFilter)
twitterUserIdFilter
- if given, only descriptions from these users will be returnedpublic java.util.List<TwitterStatusMessage> getStatusMessages()
public UserIdentity getUserId()
public boolean isFilterDescriptions()
public void setFilterDescriptions(boolean filterDescriptions)
filterDescriptions
- the filterDescriptions to setpublic boolean isAbortOnRateLimit()
public void setAbortOnRateLimit(boolean abortOnRateLimit)
abortOnRateLimit
- the abortOnRateLimit to setCopyright © 2015 Tampere University of Technology, Pori Department.