|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.code.linkedinapi.client.impl.AsyncLinkedInApiClientAdapter
public class AsyncLinkedInApiClientAdapter
Nested Class Summary | |
---|---|
private static class |
AsyncLinkedInApiClientAdapter.NullResponseHandler<T extends SchemaEntity>
|
Field Summary | |
---|---|
private AsyncHandlerLinkedInApiClientAdapter |
client
Field description |
Constructor Summary | |
---|---|
AsyncLinkedInApiClientAdapter(LinkedInApiClient client,
java.util.concurrent.ExecutorService taskExecutor)
Constructs ... |
Method Summary | |
---|---|
void |
addRequestHeader(java.lang.String headerName,
java.lang.String headerValue)
Adds the request header. |
java.util.concurrent.Future<?> |
deleteCurrentStatus()
Delete current status. |
LinkedInAccessToken |
getAccessToken()
Method description |
LinkedInApiConsumer |
getApiConsumer()
Method description |
java.util.concurrent.Future<Connections> |
getConnectionsById(java.lang.String id)
Gets the connections by id. |
java.util.concurrent.Future<Connections> |
getConnectionsById(java.lang.String id,
int start,
int count)
Gets the connections by id. |
java.util.concurrent.Future<Connections> |
getConnectionsById(java.lang.String id,
java.util.Set<ProfileField> profileFields)
Gets the connections by id. |
java.util.concurrent.Future<Connections> |
getConnectionsById(java.lang.String id,
java.util.Set<ProfileField> profileFields,
int start,
int count)
Gets the connections by id. |
java.util.concurrent.Future<Connections> |
getConnectionsByUrl(java.lang.String url)
Gets the connections by url. |
java.util.concurrent.Future<Connections> |
getConnectionsByUrl(java.lang.String url,
int start,
int count)
Gets the connections by url. |
java.util.concurrent.Future<Connections> |
getConnectionsByUrl(java.lang.String url,
java.util.Set<ProfileField> profileFields)
Gets the connections by url. |
java.util.concurrent.Future<Connections> |
getConnectionsByUrl(java.lang.String url,
java.util.Set<ProfileField> profileFields,
int start,
int count)
Gets the connections by url. |
java.util.concurrent.Future<Connections> |
getConnectionsForCurrentUser()
Gets the connections for current user. |
java.util.concurrent.Future<Connections> |
getConnectionsForCurrentUser(int start,
int count)
Gets the connections for current user. |
java.util.concurrent.Future<Connections> |
getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields)
Gets the connections for current user. |
java.util.concurrent.Future<Connections> |
getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields,
int start,
int count)
Gets the connections for current user. |
java.util.concurrent.Future<UpdateComments> |
getNetworkUpdateComments(java.lang.String networkUpdateId)
Gets the network update comments. |
java.util.concurrent.Future<Network> |
getNetworkUpdates()
Gets the network updates. |
java.util.concurrent.Future<Network> |
getNetworkUpdates(java.util.Date startDate,
java.util.Date endDate)
Gets the network updates. |
java.util.concurrent.Future<Network> |
getNetworkUpdates(int start,
int count)
Gets the network updates. |
java.util.concurrent.Future<Network> |
getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes)
Gets the network updates. |
java.util.concurrent.Future<Network> |
getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
java.util.Date startDate,
java.util.Date endDate)
Gets the network updates. |
java.util.concurrent.Future<Network> |
getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
int start,
int count)
Gets the network updates. |
java.util.concurrent.Future<Network> |
getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
int start,
int count,
java.util.Date startDate,
java.util.Date endDate)
Gets the network updates. |
java.util.concurrent.Future<Person> |
getProfileByApiRequest(ApiStandardProfileRequest apiRequest)
Gets the profile by API request. |
java.util.concurrent.Future<Person> |
getProfileById(java.lang.String id)
Gets the profile by id. |
java.util.concurrent.Future<Person> |
getProfileById(java.lang.String id,
java.util.Set<ProfileField> profileFields)
Gets the profile by id. |
java.util.concurrent.Future<Person> |
getProfileByUrl(java.lang.String url,
ProfileType profileType)
Gets the profile by url. |
java.util.concurrent.Future<Person> |
getProfileByUrl(java.lang.String url,
ProfileType profileType,
java.util.Set<ProfileField> profileFields)
Gets the profile by url. |
java.util.concurrent.Future<Person> |
getProfileForCurrentUser()
Gets the profile for current user. |
java.util.concurrent.Future<Person> |
getProfileForCurrentUser(java.util.Set<ProfileField> profileFields)
Gets the profile for current user. |
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders()
Gets the request headers. |
java.util.concurrent.Future<?> |
postComment(java.lang.String networkUpdateId,
java.lang.String commentText)
Post comment. |
java.util.concurrent.Future<?> |
postNetworkUpdate(java.lang.String updateText)
Post network update. |
void |
removeRequestHeader(java.lang.String headerName)
Removes the request header. |
java.util.concurrent.Future<People> |
searchPeople()
Search people. |
java.util.concurrent.Future<People> |
searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters)
Search people. |
java.util.concurrent.Future<People> |
searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
int start,
int count)
Search people. |
java.util.concurrent.Future<People> |
searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
int start,
int count,
SearchSortOrder sortOrder)
Search people. |
java.util.concurrent.Future<People> |
searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
SearchSortOrder sortOrder)
Search people. |
java.util.concurrent.Future<?> |
sendInviteByEmail(java.lang.String email,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String subject,
java.lang.String message)
Send invite. |
java.util.concurrent.Future<?> |
sendInviteById(java.lang.String recepientId,
java.lang.String subject,
java.lang.String message,
java.lang.String authHeader)
Send invite. |
java.util.concurrent.Future<?> |
sendInviteToPerson(Person recepient,
java.lang.String subject,
java.lang.String message)
Send invite. |
java.util.concurrent.Future<?> |
sendMessage(java.util.List<java.lang.String> recepientIds,
java.lang.String subject,
java.lang.String message)
Send message. |
void |
setAccessToken(LinkedInAccessToken accessToken)
Method description |
void |
setApiConsumer(LinkedInApiConsumer apiConsumer)
Method description |
void |
setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
Sets the request headers. |
java.util.concurrent.Future<?> |
updateCurrentStatus(java.lang.String status)
Update current status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private AsyncHandlerLinkedInApiClientAdapter client
Constructor Detail |
---|
public AsyncLinkedInApiClientAdapter(LinkedInApiClient client, java.util.concurrent.ExecutorService taskExecutor)
client
- Method Detail |
---|
public java.util.concurrent.Future<Connections> getConnectionsById(java.lang.String id)
getConnectionsById
in interface AsyncLinkedInApiClient
id
- the id
public java.util.concurrent.Future<Connections> getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields)
getConnectionsById
in interface AsyncLinkedInApiClient
id
- the idprofileFields
- the profile fields
public java.util.concurrent.Future<Connections> getConnectionsByUrl(java.lang.String url)
getConnectionsByUrl
in interface AsyncLinkedInApiClient
url
- the url
public java.util.concurrent.Future<Connections> getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields)
getConnectionsByUrl
in interface AsyncLinkedInApiClient
url
- the urlprofileFields
- the profile fields
public java.util.concurrent.Future<Connections> getConnectionsForCurrentUser()
getConnectionsForCurrentUser
in interface AsyncLinkedInApiClient
public java.util.concurrent.Future<Connections> getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields)
getConnectionsForCurrentUser
in interface AsyncLinkedInApiClient
profileFields
- the profile fields
public java.util.concurrent.Future<Connections> getConnectionsById(java.lang.String id, int start, int count)
getConnectionsById
in interface AsyncLinkedInApiClient
id
- the idstart
- the startcount
- the count
public java.util.concurrent.Future<Connections> getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, int start, int count)
getConnectionsById
in interface AsyncLinkedInApiClient
id
- the idprofileFields
- the profile fieldsstart
- the startcount
- the count
public java.util.concurrent.Future<Connections> getConnectionsByUrl(java.lang.String url, int start, int count)
getConnectionsByUrl
in interface AsyncLinkedInApiClient
url
- the urlstart
- the startcount
- the count
public java.util.concurrent.Future<Connections> getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, int start, int count)
getConnectionsByUrl
in interface AsyncLinkedInApiClient
url
- the urlprofileFields
- the profile fieldsstart
- the startcount
- the count
public java.util.concurrent.Future<Connections> getConnectionsForCurrentUser(int start, int count)
getConnectionsForCurrentUser
in interface AsyncLinkedInApiClient
start
- the startcount
- the count
public java.util.concurrent.Future<Connections> getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, int start, int count)
getConnectionsForCurrentUser
in interface AsyncLinkedInApiClient
profileFields
- the profile fieldsstart
- the startcount
- the count
public java.util.concurrent.Future<Network> getNetworkUpdates()
getNetworkUpdates
in interface AsyncLinkedInApiClient
public java.util.concurrent.Future<Network> getNetworkUpdates(int start, int count)
getNetworkUpdates
in interface AsyncLinkedInApiClient
start
- the startcount
- the count
public java.util.concurrent.Future<Network> getNetworkUpdates(java.util.Date startDate, java.util.Date endDate)
getNetworkUpdates
in interface AsyncLinkedInApiClient
startDate
- the start dateendDate
- the end date
public java.util.concurrent.Future<Network> getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes)
getNetworkUpdates
in interface AsyncLinkedInApiClient
updateTypes
- the update types
public java.util.concurrent.Future<Network> getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count)
getNetworkUpdates
in interface AsyncLinkedInApiClient
updateTypes
- the update typesstart
- the startcount
- the count
public java.util.concurrent.Future<Network> getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, java.util.Date startDate, java.util.Date endDate)
getNetworkUpdates
in interface AsyncLinkedInApiClient
updateTypes
- the update typesstartDate
- the start dateendDate
- the end date
public java.util.concurrent.Future<Network> getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, java.util.Date startDate, java.util.Date endDate)
getNetworkUpdates
in interface AsyncLinkedInApiClient
updateTypes
- the update typesstart
- the startcount
- the countstartDate
- the start dateendDate
- the end date
public java.util.concurrent.Future<UpdateComments> getNetworkUpdateComments(java.lang.String networkUpdateId)
getNetworkUpdateComments
in interface AsyncLinkedInApiClient
networkUpdateId
- the network update id
public java.util.concurrent.Future<Person> getProfileById(java.lang.String id)
getProfileById
in interface AsyncLinkedInApiClient
id
- the id
public java.util.concurrent.Future<Person> getProfileById(java.lang.String id, java.util.Set<ProfileField> profileFields)
getProfileById
in interface AsyncLinkedInApiClient
id
- the idprofileFields
- the profile fields
public java.util.concurrent.Future<Person> getProfileByUrl(java.lang.String url, ProfileType profileType)
getProfileByUrl
in interface AsyncLinkedInApiClient
url
- the urlprofileType
- the profile type
public java.util.concurrent.Future<Person> getProfileByUrl(java.lang.String url, ProfileType profileType, java.util.Set<ProfileField> profileFields)
getProfileByUrl
in interface AsyncLinkedInApiClient
url
- the urlprofileType
- the profile typeprofileFields
- the profile fields
public java.util.concurrent.Future<Person> getProfileByApiRequest(ApiStandardProfileRequest apiRequest)
getProfileByApiRequest
in interface AsyncLinkedInApiClient
apiRequest
- the api request
public java.util.concurrent.Future<Person> getProfileForCurrentUser()
getProfileForCurrentUser
in interface AsyncLinkedInApiClient
public java.util.concurrent.Future<Person> getProfileForCurrentUser(java.util.Set<ProfileField> profileFields)
getProfileForCurrentUser
in interface AsyncLinkedInApiClient
profileFields
- the profile fields
public java.util.concurrent.Future<?> postComment(java.lang.String networkUpdateId, java.lang.String commentText)
postComment
in interface AsyncLinkedInApiClient
networkUpdateId
- the network update idcommentText
- the comment text
public java.util.concurrent.Future<?> postNetworkUpdate(java.lang.String updateText)
postNetworkUpdate
in interface AsyncLinkedInApiClient
updateText
- the update text
public java.util.concurrent.Future<People> searchPeople()
searchPeople
in interface AsyncLinkedInApiClient
public java.util.concurrent.Future<People> searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters)
searchPeople
in interface AsyncLinkedInApiClient
searchParameters
- the search parameters
public java.util.concurrent.Future<People> searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count)
searchPeople
in interface AsyncLinkedInApiClient
searchParameters
- the search parametersstart
- the startcount
- the count
public java.util.concurrent.Future<People> searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, SearchSortOrder sortOrder)
searchPeople
in interface AsyncLinkedInApiClient
searchParameters
- the search parameterssortOrder
- the sort order
public java.util.concurrent.Future<People> searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, SearchSortOrder sortOrder)
searchPeople
in interface AsyncLinkedInApiClient
searchParameters
- the search parametersstart
- the startcount
- the countsortOrder
- the sort order
public java.util.concurrent.Future<?> sendInviteByEmail(java.lang.String email, java.lang.String firstName, java.lang.String lastName, java.lang.String subject, java.lang.String message)
sendInviteByEmail
in interface AsyncLinkedInApiClient
email
- the recepient emailfirstName
- the first namelastName
- the last namesubject
- the subjectmessage
- the message
public java.util.concurrent.Future<?> sendInviteToPerson(Person recepient, java.lang.String subject, java.lang.String message)
To call this method one needs an auth header parameter. This can be obtained by getting ApiStandardProfileRequest.getHeaders()
from Person.getApiStandardProfileRequest()
and then getting the value of header with name ApplicationConstants.AUTH_HEADER_NAME
.
sendInviteToPerson
in interface AsyncLinkedInApiClient
recepient
- the recepientsubject
- the subjectmessage
- the message
public java.util.concurrent.Future<?> sendInviteById(java.lang.String recepientId, java.lang.String subject, java.lang.String message, java.lang.String authHeader)
To call this method one needs an auth header parameter. This can be obtained by getting ApiStandardProfileRequest.getHeaders()
from Person.getApiStandardProfileRequest()
and then getting the value of header with name ApplicationConstants.AUTH_HEADER_NAME
.
sendInviteById
in interface AsyncLinkedInApiClient
recepientId
- the recepient idsubject
- the subjectmessage
- the messageauthHeader
- the auth header
public java.util.concurrent.Future<?> sendMessage(java.util.List<java.lang.String> recepientIds, java.lang.String subject, java.lang.String message)
sendMessage
in interface AsyncLinkedInApiClient
recepientIds
- the recepient idssubject
- the subjectmessage
- the message
public java.util.concurrent.Future<?> updateCurrentStatus(java.lang.String status)
updateCurrentStatus
in interface AsyncLinkedInApiClient
status
- the status
public java.util.concurrent.Future<?> deleteCurrentStatus()
deleteCurrentStatus
in interface AsyncLinkedInApiClient
public LinkedInAccessToken getAccessToken()
getAccessToken
in interface LinkedInAuthenticationClient
public LinkedInApiConsumer getApiConsumer()
getApiConsumer
in interface LinkedInAuthenticationClient
public void setAccessToken(LinkedInAccessToken accessToken)
setAccessToken
in interface LinkedInAuthenticationClient
public void setApiConsumer(LinkedInApiConsumer apiConsumer)
setApiConsumer
in interface LinkedInAuthenticationClient
public void setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
setRequestHeaders
in interface LinkedInCommunicationClient
requestHeaders
- the request headerspublic java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
getRequestHeaders
in interface LinkedInCommunicationClient
public void addRequestHeader(java.lang.String headerName, java.lang.String headerValue)
addRequestHeader
in interface LinkedInCommunicationClient
headerName
- the header nameheaderValue
- the header valuepublic void removeRequestHeader(java.lang.String headerName)
removeRequestHeader
in interface LinkedInCommunicationClient
headerName
- the header name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |