Class YammerConfiguration
- java.lang.Object
-
- org.apache.camel.component.yammer.YammerConfiguration
-
-
Constructor Summary
Constructors Constructor Description YammerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YammerConfiguration
copy()
Returns a copy of this configurationString
getAccessToken()
String
getConsumerKey()
String
getConsumerSecret()
long
getDelay()
YammerFunctionType
getFunction()
int
getLimit()
long
getNewerThan()
long
getOlderThan()
ApiRequestor
getRequestor()
String
getThreaded()
String
getUserId()
boolean
isUseJson()
void
setAccessToken(String accessToken)
The access tokenvoid
setConsumerKey(String consumerKey)
The consumer keyvoid
setConsumerSecret(String consumerSecret)
The consumer secretvoid
setDelay(long delay)
Delay between polling in millisvoid
setFunction(YammerFunctionType function)
The function to usevoid
setLimit(int limit)
Return only the specified number of messages.void
setNewerThan(long newerThan)
Returns messages newer than the message ID specified as a numeric string.void
setOlderThan(long olderThan)
Returns messages older than the message ID specified as a numeric string.void
setRequestor(ApiRequestor requestor)
To use a specific requester to communicate with Yammer.void
setThreaded(String threaded)
threaded equals to true will only return the first message in each thread.void
setUseJson(boolean useJson)
Set to true if you want to use raw JSON rather than converting to POJOs.void
setUserId(String userId)
The user id
-
-
-
Method Detail
-
copy
public YammerConfiguration copy()
Returns a copy of this configuration
-
getConsumerKey
public String getConsumerKey()
-
setConsumerKey
public void setConsumerKey(String consumerKey)
The consumer key
-
getConsumerSecret
public String getConsumerSecret()
-
setConsumerSecret
public void setConsumerSecret(String consumerSecret)
The consumer secret
-
getDelay
public long getDelay()
-
setDelay
public void setDelay(long delay)
Delay between polling in millis
-
getAccessToken
public String getAccessToken()
-
setAccessToken
public void setAccessToken(String accessToken)
The access token
-
getFunction
public YammerFunctionType getFunction()
-
setFunction
public void setFunction(YammerFunctionType function)
The function to use
-
isUseJson
public boolean isUseJson()
-
setUseJson
public void setUseJson(boolean useJson)
Set to true if you want to use raw JSON rather than converting to POJOs.
-
getLimit
public int getLimit()
-
setLimit
public void setLimit(int limit)
Return only the specified number of messages. Works for threaded set to true and threaded set to extended.
-
getOlderThan
public long getOlderThan()
-
setOlderThan
public void setOlderThan(long olderThan)
Returns messages older than the message ID specified as a numeric string. This is useful for paginating messages. For example, if you're currently viewing 20 messages and the oldest is number 2912, you could append olderThan equals to 2912 to your request to get the 20 messages prior to those you're seeing.
-
getNewerThan
public long getNewerThan()
-
setNewerThan
public void setNewerThan(long newerThan)
Returns messages newer than the message ID specified as a numeric string. This should be used when polling for new messages. If you're looking at messages, and the most recent message returned is 3516, you can make a request with the parameter newerThan equals to 3516 to ensure that you do not get duplicate copies of messages already on your page.
-
getThreaded
public String getThreaded()
-
setThreaded
public void setThreaded(String threaded)
threaded equals to true will only return the first message in each thread. This parameter is intended for apps which display message threads collapsed. threaded equals to extended will return the thread starter messages in order of most recently active as well as the two most recent messages, as they are viewed in the default view on the Yammer web interface.
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
The user id
-
getRequestor
public ApiRequestor getRequestor()
-
setRequestor
public void setRequestor(ApiRequestor requestor)
To use a specific requester to communicate with Yammer.
-
-