public class TwitterAccount extends TwitterAuthorisedTemplate
DBObject.DenormalizeAction| Modifier and Type | Field and Description |
|---|---|
static GlobalId |
DBCLASS_GID
Twitter account
|
static java.lang.String |
DBCLASS_NAME
Twitter account
|
static java.lang.String |
HASH_TAGS
the hash tags
|
hintUserMapATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS| Constructor and Description |
|---|
TwitterAccount(DBClass def,
DataSource dataSource)
Std.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkCacheUser(TwitterUser user)
get the user
|
static TwitterAccount |
create(MutableDataSource mds)
Make a new instance of this class.
|
TwitterUser |
createFriendship(int followId)
create a friendship
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for particular field OVERRIDE THIS METHOD TO ADD VALIDATIONS FOR A FIELD.
|
static TwitterAccount |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
KnowledgeResponseMode |
findMode(java.lang.String... args)
The default mode.
|
java.lang.String |
getDisabledFeatures(java.lang.String... args) |
java.lang.String |
getExcludeRegex(java.lang.String... args) |
java.lang.String |
getExcludeRegex2(java.lang.String... args) |
java.lang.String |
getExcludeRegex3(java.lang.String... args) |
java.lang.String |
getExcludeRegex4(java.lang.String... args) |
java.lang.String |
getExcludeRegex5(java.lang.String... args) |
java.lang.String |
getExcludeRegex6(java.lang.String... args) |
java.lang.String |
getExcludeRegex7(java.lang.String... args) |
java.lang.String |
getExcludeRegex8(java.lang.String... args) |
java.lang.String |
getExcludeRegex9(java.lang.String... args) |
java.lang.String |
getExpertise(TwitterUser user)
The user expertise
|
java.lang.String |
getLoopDuration(java.lang.String... args) |
KnowledgeResponseMode |
getMode(java.lang.String... args) |
java.lang.String |
getNextRescanPeriod(java.lang.String... args) |
java.lang.String |
getNotifyEmail(java.lang.String... args) |
TwitterUser |
getUser(int searchID,
java.lang.String maxAge) |
static DBQuery<TwitterAccount> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
void |
makeRoomForMore() |
boolean |
sendDirectMessage(TwitterUser user,
java.lang.String text) |
TwitterAccount |
setDisabledFeatures(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex2(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex3(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex4(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex5(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex6(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex7(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex8(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setExcludeRegex9(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setLoopDuration(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setMode(com.aspc.dal.knowledge.obj.KnowledgeResponseMode value,
java.lang.String... args) |
TwitterAccount |
setNextRescanPeriod(java.lang.String value,
java.lang.String... args) |
TwitterAccount |
setNotifyEmail(java.lang.String value,
java.lang.String... args) |
TwitterUser |
showUser(java.lang.String searchName)
get the user
|
addToList, addUserHint, addUserHint, bestAccount, calculatePauseTime, clearListCache, createFriendship, createToken, destroyFriendship, displayValue, fetchUser, findNextAuthorised, findTwitterUser, getCode, getConsumerKey, getConsumerSecret, getID, getKnownUserArray, getList, getLock, getManager, getMaxFriendCount, getMe, getNextAuthorised, getToken, getTokenSecret, getTwitter, hasTwittter, isSearchOnly, listFollowers, listFriends, loadUser, makeRoomForMore, pause, removeFromList, setCode, setConsumerKey, setConsumerSecret, setID, setKnownUserArray, setManager, setMe, setNextAuthorised, setPauseTime, setSearchOnly, setToken, setTokenSecret, showUser, toString, updateStatusaddReloadEventListener, 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, 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
public static final java.lang.String HASH_TAGS
public TwitterAccount(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 @Nonnull public java.lang.String getDisabledFeatures(java.lang.String... args)
@Nonnull public TwitterAccount setDisabledFeatures(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex2(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex2(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex3(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex3(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex4(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex4(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex5(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex5(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex6(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex6(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex7(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex7(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex8(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex8(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getExcludeRegex9(java.lang.String... args)
@Nonnull public TwitterAccount setExcludeRegex9(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getLoopDuration(java.lang.String... args)
@Nonnull public TwitterAccount setLoopDuration(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nullable public KnowledgeResponseMode getMode(java.lang.String... args)
@CheckReturnValue @Nonnull public final KnowledgeResponseMode findMode(java.lang.String... args) throws NotFoundException
KnowledgeResponseMode (String, Searchable)args - the optional argumentsNotFoundException - KnowledgeResponseMode was not found@Nonnull public TwitterAccount setMode(com.aspc.dal.knowledge.obj.KnowledgeResponseMode value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getNextRescanPeriod(java.lang.String... args)
@Nonnull public TwitterAccount setNextRescanPeriod(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@CheckReturnValue @Nonnull public java.lang.String getNotifyEmail(java.lang.String... args)
@Nonnull public TwitterAccount setNotifyEmail(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception@Nonnull @CheckReturnValue public static TwitterAccount create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds - the datasourcejava.lang.Exception - an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<TwitterAccount> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds - the datasourceNotFoundException - if class could not be found@Nonnull @CheckReturnValue public static TwitterAccount findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds - the datasourcekey - the valueNotFoundException - if target could not be foundjava.lang.Exception - a serious problem@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
DBObjectextValidateField in class DBObjectlist - The validation listfield - The field to be validatedjava.lang.Exception - a serious errorpublic void makeRoomForMore()
throws java.lang.Exception
java.lang.Exception - a serious problem.public java.lang.String getExpertise(TwitterUser user) throws java.lang.Exception
user - the userjava.lang.Exception - a serious problem.public TwitterUser createFriendship(int followId) throws java.lang.Exception
followId - the userjava.lang.Exception - a serious problempublic TwitterUser showUser(java.lang.String searchName) throws java.lang.Exception
searchName - the namejava.lang.Exception - serious problempublic void checkCacheUser(TwitterUser user) throws java.lang.Exception
user - the namejava.lang.Exception - serious problempublic TwitterUser getUser(int searchID, java.lang.String maxAge) throws java.lang.Exception
searchID - the user IDmaxAge - the max agejava.lang.Exception - a serious problempublic boolean sendDirectMessage(TwitterUser user, java.lang.String text)
user - the usertext - the message to sendstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.