public class TwitterAuthorisedTemplate extends DBObject
DBObject.DenormalizeAction| Modifier and Type | Field and Description |
|---|---|
static GlobalId |
DBCLASS_GID
Authorised account
|
static java.lang.String |
DBCLASS_NAME
Authorised account
|
protected HashLongMap |
hintUserMap
user map
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
TwitterAuthorisedTemplate(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToList(java.lang.String list,
TwitterUser user) |
void |
addUserHint(int userID) |
void |
addUserHint(long[] userIDs) |
static TwitterAuthorisedTemplate |
bestAccount(DataSource ds)
static method bestAccount
|
long |
calculatePauseTime()
calculate pause time
|
void |
clearListCache(java.lang.String list) |
TwitterUser |
createFriendship(TwitterUser pFollowUser)
create a friendship
|
void |
createToken()
API KEY: PrHPA880jF1Djld0njyPg
|
TwitterUser |
destroyFriendship(int id) |
java.lang.String |
displayValue()
Displays the value of the default display field
|
TwitterUser |
fetchUser(int searchID)
fetch from memory only
|
TwitterAuthorisedTemplate |
findNextAuthorised(java.lang.String... args)
The next authorized.
|
TwitterUser |
findTwitterUser(java.lang.String screenName) |
java.lang.String |
getCode(java.lang.String... args) |
java.lang.String |
getConsumerKey(java.lang.String... args) |
java.lang.String |
getConsumerSecret(java.lang.String... args) |
int |
getID(java.lang.String... args) |
java.util.List<java.lang.String> |
getKnownUserArray(java.lang.String... args) |
int[] |
getList(java.lang.String list,
java.lang.String maxAge) |
SyncBlock |
getLock() |
TwitterAccount |
getManager() |
int |
getMaxFriendCount()
the max friend count
|
TwitterUser |
getMe(MutableDataSource mds)
the me
|
TwitterAuthorisedTemplate |
getNextAuthorised(java.lang.String... args) |
java.lang.String |
getToken(java.lang.String... args) |
java.lang.String |
getTokenSecret(java.lang.String... args) |
Twitter |
getTwitter() |
boolean |
hasTwittter() |
boolean |
isSearchOnly(java.lang.String... args) |
int[] |
listFollowers(int id)
list of followers
|
int[] |
listFriends(int id)
list of friends
|
TwitterUser |
loadUser(long searchID) |
void |
makeRoomForMore(boolean trustCache) |
void |
pause()
pause
|
void |
removeFromList(java.lang.String list,
TwitterUser user) |
TwitterAuthorisedTemplate |
setCode(java.lang.String value,
java.lang.String... args) |
TwitterAuthorisedTemplate |
setConsumerKey(java.lang.String value,
java.lang.String... args) |
TwitterAuthorisedTemplate |
setConsumerSecret(java.lang.String value,
java.lang.String... args) |
TwitterAuthorisedTemplate |
setID(int value,
java.lang.String... args) |
TwitterAuthorisedTemplate |
setKnownUserArray(java.util.List<java.lang.String> value,
java.lang.String... args) |
void |
setManager(TwitterAccount manager) |
void |
setMe(TwitterUser me) |
TwitterAuthorisedTemplate |
setNextAuthorised(com.aspc.dal.twitter.obj.TwitterAuthorisedTemplate value,
java.lang.String... args) |
void |
setPauseTime(long pauseTime) |
TwitterAuthorisedTemplate |
setSearchOnly(boolean value,
java.lang.String... args) |
TwitterAuthorisedTemplate |
setToken(java.lang.String value,
java.lang.String... args) |
TwitterAuthorisedTemplate |
setTokenSecret(java.lang.String value,
java.lang.String... args) |
TwitterUser |
showUser(int searchID) |
java.lang.String |
toString()
The description.
|
Tweet |
updateStatus(java.lang.String text,
long responseTweetId) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, doSearch, dump, equals, eventDataLoaded, eventFieldUpdated, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extFixUp, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, extValidateField, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, touch, undelete, validateField, validateRecord, validateSubTypepublic static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
protected final HashLongMap hintUserMap
public TwitterAuthorisedTemplate(DBClass def, DataSource dataSource) throws java.lang.Exception
def - The class of this objectdataSource - The datasource for this objectjava.lang.Exception - A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public TwitterAuthorisedTemplate setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getCode(java.lang.String... args)
@Nonnull public TwitterAuthorisedTemplate setCode(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getConsumerKey(java.lang.String... args)
@Nonnull public TwitterAuthorisedTemplate setConsumerKey(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getConsumerSecret(java.lang.String... args)
@Nonnull public TwitterAuthorisedTemplate setConsumerSecret(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.util.List<java.lang.String> getKnownUserArray(java.lang.String... args)
@Nonnull public TwitterAuthorisedTemplate setKnownUserArray(java.util.List<java.lang.String> value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public TwitterAuthorisedTemplate getNextAuthorised(java.lang.String... args)
@CheckReturnValue @Nonnull public final TwitterAuthorisedTemplate findNextAuthorised(java.lang.String... args) throws NotFoundException
TwitterAuthorisedTemplate (Integer, Searchable)args - the optional argumentsNotFoundException - TwitterAuthorisedTemplate was not found@Nonnull public TwitterAuthorisedTemplate setNextAuthorised(com.aspc.dal.twitter.obj.TwitterAuthorisedTemplate value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue public boolean isSearchOnly(java.lang.String... args)
@Nonnull public TwitterAuthorisedTemplate setSearchOnly(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getToken(java.lang.String... args)
@Nonnull public TwitterAuthorisedTemplate setToken(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getTokenSecret(java.lang.String... args)
@Nonnull public TwitterAuthorisedTemplate setTokenSecret(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exceptionpublic SyncBlock getLock()
@CheckReturnValue @Nonnull public java.lang.String displayValue()
DBObjectdisplayValue in class DBObjectpublic TwitterUser destroyFriendship(int id) throws java.lang.Exception
id - the user idjava.lang.Exception - a serious problempublic Tweet updateStatus(java.lang.String text, long responseTweetId) throws java.lang.Exception
text - the textresponseTweetId - respond tojava.lang.Exception - a serious problempublic void addUserHint(long[] userIDs)
throws java.lang.Exception
userIDs - the usersjava.lang.Exception - a exceptionpublic int[] getList(java.lang.String list,
java.lang.String maxAge)
throws java.lang.Exception
list - the listmaxAge - the max agejava.lang.Exception - a serious problempublic boolean addToList(java.lang.String list,
TwitterUser user)
throws java.lang.Exception
list - the listuser - the userjava.lang.Exception - a serious problempublic void removeFromList(java.lang.String list,
TwitterUser user)
throws java.lang.Exception
list - the listuser - the userjava.lang.Exception - a serious problempublic void clearListCache(java.lang.String list)
throws java.lang.Exception
list - the listjava.lang.Exception - a serious problempublic void addUserHint(int userID)
throws java.lang.Exception
userID - the userjava.lang.Exception - a serious problempublic boolean hasTwittter()
public TwitterAccount getManager()
public TwitterUser showUser(int searchID) throws java.lang.Exception
searchID - the user IDjava.lang.Exception - a serious problempublic TwitterUser fetchUser(int searchID) throws java.lang.Exception
searchID - searchjava.lang.Exception - a serious problempublic TwitterUser loadUser(long searchID) throws java.lang.Exception
searchID - the user IDjava.lang.Exception - a serious problempublic int[] listFollowers(int id)
throws java.lang.Exception
id - the userjava.lang.Exception - a serious problempublic TwitterUser createFriendship(TwitterUser pFollowUser) throws java.lang.Exception
pFollowUser - the userjava.lang.Exception - a serious problempublic void makeRoomForMore(boolean trustCache)
throws java.lang.Exception
trustCache - trustjava.lang.Exception - a serious problem.public int getMaxFriendCount()
throws NotFoundException
NotFoundException - not found@CheckReturnValue @Nonnull public java.lang.String toString()
DBObjectpublic void setManager(TwitterAccount manager)
manager - the manager to setpublic void pause()
public Twitter getTwitter()
throws java.lang.Exception
java.lang.Exception - a serious problempublic TwitterUser getMe(MutableDataSource mds) throws NotFoundException
mds - mutableDataSourceNotFoundException - not foundpublic void setMe(TwitterUser me)
me - the me to setpublic TwitterUser findTwitterUser(java.lang.String screenName) throws java.lang.Exception
screenName - the namejava.lang.Exception - a serious problem.public void setPauseTime(long pauseTime)
pauseTime - the pause timepublic static TwitterAuthorisedTemplate bestAccount(DataSource ds) throws java.lang.Exception
ds - The datasourcejava.lang.Exception - a serious problempublic long calculatePauseTime()
public void createToken()
throws java.lang.Exception
java.lang.Exception - a serious problem.public int[] listFriends(int id)
throws java.lang.Exception
id - the userjava.lang.Exception - a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.