public class

AsyncLinkedInApiClientAdapter

extends Object
implements AsyncLinkedInApiClient
java.lang.Object
   ↳ com.google.code.linkedinapi.client.impl.AsyncLinkedInApiClientAdapter

Summary

Fields
private AsyncHandlerLinkedInApiClientAdapter client Field description
Public Constructors
AsyncLinkedInApiClientAdapter(LinkedInApiClient client, ExecutorService taskExecutor)
Constructs ...
Public Methods
void addLocale(Locale locale)
void addRequestHeader(String headerName, String headerValue)
Adds the request header.
Future<?> deleteCurrentStatus()
Delete current status.
LinkedInAccessToken getAccessToken()
Method description
LinkedInApiConsumer getApiConsumer()
Method description
Future<Connections> getConnectionsById(String id)
Gets the connections by id.
Future<Connections> getConnectionsById(String id, Set<ProfileField> profileFields, int start, int count)
Gets the connections by id.
Future<Connections> getConnectionsById(String id, int start, int count)
Gets the connections by id.
Future<Connections> getConnectionsById(String id, Set<ProfileField> profileFields)
Gets the connections by id.
Future<Connections> getConnectionsByUrl(String url, Set<ProfileField> profileFields, int start, int count)
Gets the connections by url.
Future<Connections> getConnectionsByUrl(String url, int start, int count)
Gets the connections by url.
Future<Connections> getConnectionsByUrl(String url)
Gets the connections by url.
Future<Connections> getConnectionsByUrl(String url, Set<ProfileField> profileFields)
Gets the connections by url.
Future<Connections> getConnectionsForCurrentUser(Set<ProfileField> profileFields)
Gets the connections for current user.
Future<Connections> getConnectionsForCurrentUser(int start, int count)
Gets the connections for current user.
Future<Connections> getConnectionsForCurrentUser(Set<ProfileField> profileFields, int start, int count)
Gets the connections for current user.
Future<Connections> getConnectionsForCurrentUser()
Gets the connections for current user.
Future<UpdateComments> getNetworkUpdateComments(String networkUpdateId)
Gets the network update comments.
Future<Network> getNetworkUpdates()
Gets the network updates.
Future<Network> getNetworkUpdates(int start, int count)
Gets the network updates.
Future<Network> getNetworkUpdates(Date startDate, Date endDate)
Gets the network updates.
Future<Network> getNetworkUpdates(Set<NetworkUpdateType> updateTypes, int start, int count)
Gets the network updates.
Future<Network> getNetworkUpdates(Set<NetworkUpdateType> updateTypes, Date startDate, Date endDate)
Gets the network updates.
Future<Network> getNetworkUpdates(Set<NetworkUpdateType> updateTypes)
Gets the network updates.
Future<Network> getNetworkUpdates(Set<NetworkUpdateType> updateTypes, int start, int count, Date startDate, Date endDate)
Gets the network updates.
Future<Person> getProfileByApiRequest(ApiStandardProfileRequest apiRequest)
Gets the profile by API request.
Future<Person> getProfileById(String id, Set<ProfileField> profileFields)
Gets the profile by id.
Future<Person> getProfileById(String id)
Gets the profile by id.
Future<Person> getProfileByUrl(String url, ProfileType profileType)
Gets the profile by url.
Future<Person> getProfileByUrl(String url, ProfileType profileType, Set<ProfileField> profileFields)
Gets the profile by url.
Future<Person> getProfileForCurrentUser()
Gets the profile for current user.
Future<Person> getProfileForCurrentUser(Set<ProfileField> profileFields)
Gets the profile for current user.
Map<String, String> getRequestHeaders()
Gets the request headers.
Future<?> postComment(String networkUpdateId, String commentText)
Post comment.
Future<?> postNetworkUpdate(String updateText)
Post network update.
void removeRequestHeader(String headerName)
Removes the request header.
Future<People> searchPeople(Map<SearchParameter, String> searchParameters, SearchSortOrder sortOrder)
Search people.
Future<People> searchPeople(Map<SearchParameter, String> searchParameters, int start, int count)
Search people.
Future<People> searchPeople(Map<SearchParameter, String> searchParameters)
Search people.
Future<People> searchPeople()
Search people.
Future<People> searchPeople(Map<SearchParameter, String> searchParameters, int start, int count, SearchSortOrder sortOrder)
Search people.
Future<?> sendInviteByEmail(String email, String firstName, String lastName, String subject, String message)
Send invite.
Future<?> sendInviteById(String recepientId, String subject, String message, String authHeader)
Send invite.
Future<?> sendInviteToPerson(Person recepient, String subject, String message)
Send invite.
Future<?> sendMessage(List<String> recepientIds, String subject, String message)
Send message.
void setAccessToken(LinkedInAccessToken accessToken)
Method description
void setApiConsumer(LinkedInApiConsumer apiConsumer)
Method description
void setRequestHeaders(Map<String, String> requestHeaders)
Sets the request headers.
Future<?> updateCurrentStatus(String status)
Update current status.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.code.linkedinapi.client.AsyncLinkedInApiClient
From interface com.google.code.linkedinapi.client.LinkedInAuthenticationClient
From interface com.google.code.linkedinapi.client.LinkedInCommunicationClient

Fields

private AsyncHandlerLinkedInApiClientAdapter client

Field description

Public Constructors

public AsyncLinkedInApiClientAdapter (LinkedInApiClient client, ExecutorService taskExecutor)

Constructs ...

Parameters
client
taskExecutor

Public Methods

public void addLocale (Locale locale)

Parameters
locale

public void addRequestHeader (String headerName, String headerValue)

Adds the request header.

Parameters
headerName The header name
headerValue The header value

public Future<?> deleteCurrentStatus ()

Delete current status. For details see http://developer.linkedin.com/docs/DOC-1007

Returns
  • the future

public LinkedInAccessToken getAccessToken ()

Method description

public LinkedInApiConsumer getApiConsumer ()

Method description

public Future<Connections> getConnectionsById (String id)

Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
id The id
Returns
  • the connections by id

public Future<Connections> getConnectionsById (String id, Set<ProfileField> profileFields, int start, int count)

Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
id The id
profileFields The profile fields
start The start
count The count
Returns
  • the connections by id

public Future<Connections> getConnectionsById (String id, int start, int count)

Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
id The id
start The start
count The count
Returns
  • the connections by id

public Future<Connections> getConnectionsById (String id, Set<ProfileField> profileFields)

Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
id The id
profileFields The profile fields
Returns
  • the connections by id

public Future<Connections> getConnectionsByUrl (String url, Set<ProfileField> profileFields, int start, int count)

Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
url The url
profileFields The profile fields
start The start
count The count
Returns
  • the connections by url

public Future<Connections> getConnectionsByUrl (String url, int start, int count)

Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
url The url
start The start
count The count
Returns
  • the connections by url

public Future<Connections> getConnectionsByUrl (String url)

Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
url The url
Returns
  • the connections by url

public Future<Connections> getConnectionsByUrl (String url, Set<ProfileField> profileFields)

Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
url The url
profileFields The profile fields
Returns
  • the connections by url

public Future<Connections> getConnectionsForCurrentUser (Set<ProfileField> profileFields)

Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
profileFields The profile fields
Returns
  • the connections for current user

public Future<Connections> getConnectionsForCurrentUser (int start, int count)

Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
start The start
count The count
Returns
  • the connections for current user

public Future<Connections> getConnectionsForCurrentUser (Set<ProfileField> profileFields, int start, int count)

Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters
profileFields The profile fields
start The start
count The count
Returns
  • the connections for current user

public Future<Connections> getConnectionsForCurrentUser ()

Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Returns
  • the connections for current user

public Future<UpdateComments> getNetworkUpdateComments (String networkUpdateId)

Gets the network update comments. For details see http://developer.linkedin.com/docs/DOC-1043

Parameters
networkUpdateId The network update id
Returns
  • the network update comments

public Future<Network> getNetworkUpdates ()

Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Returns
  • the network updates

public Future<Network> getNetworkUpdates (int start, int count)

Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters
start The start
count The count
Returns
  • the network updates

public Future<Network> getNetworkUpdates (Date startDate, Date endDate)

Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters
startDate The start date
endDate The end date
Returns
  • the network updates

public Future<Network> getNetworkUpdates (Set<NetworkUpdateType> updateTypes, int start, int count)

Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters
updateTypes The update types
start The start
count The count
Returns
  • the network updates

public Future<Network> getNetworkUpdates (Set<NetworkUpdateType> updateTypes, Date startDate, Date endDate)

Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters
updateTypes The update types
startDate The start date
endDate The end date
Returns
  • the network updates

public Future<Network> getNetworkUpdates (Set<NetworkUpdateType> updateTypes)

Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters
updateTypes The update types
Returns
  • the network updates

public Future<Network> getNetworkUpdates (Set<NetworkUpdateType> updateTypes, int start, int count, Date startDate, Date endDate)

Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters
updateTypes The update types
start The start
count The count
startDate The start date
endDate The end date
Returns
  • the network updates

public Future<Person> getProfileByApiRequest (ApiStandardProfileRequest apiRequest)

Gets the profile by API request. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters
apiRequest The api request
Returns
  • the profile by api request

public Future<Person> getProfileById (String id, Set<ProfileField> profileFields)

Gets the profile by id. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters
id The id
profileFields The profile fields
Returns
  • the profile by id

public Future<Person> getProfileById (String id)

Gets the profile by id. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters
id The id
Returns
  • the profile by id

public Future<Person> getProfileByUrl (String url, ProfileType profileType)

Gets the profile by url. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters
url The url
profileType The profile type
Returns
  • the profile by url

public Future<Person> getProfileByUrl (String url, ProfileType profileType, Set<ProfileField> profileFields)

Gets the profile by url. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters
url The url
profileType The profile type
profileFields The profile fields
Returns
  • the profile by url

public Future<Person> getProfileForCurrentUser ()

Gets the profile for current user. For details see http://developer.linkedin.com/docs/DOC-1002

Returns
  • the profile for current user

public Future<Person> getProfileForCurrentUser (Set<ProfileField> profileFields)

Gets the profile for current user. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters
profileFields The profile fields
Returns
  • the profile for current user

public Map<String, String> getRequestHeaders ()

Gets the request headers.

Returns
  • the request headers

public Future<?> postComment (String networkUpdateId, String commentText)

Post comment. For details see http://developer.linkedin.com/docs/DOC-1043

Parameters
networkUpdateId The network update id
commentText The comment text
Returns
  • the future

public Future<?> postNetworkUpdate (String updateText)

Post network update. For details see http://developer.linkedin.com/docs/DOC-1009

Parameters
updateText The update text
Returns
  • the future

public void removeRequestHeader (String headerName)

Removes the request header.

Parameters
headerName The header name

public Future<People> searchPeople (Map<SearchParameter, String> searchParameters, SearchSortOrder sortOrder)

Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Parameters
searchParameters The search parameters
sortOrder The sort order
Returns
  • the future< people>

public Future<People> searchPeople (Map<SearchParameter, String> searchParameters, int start, int count)

Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Parameters
searchParameters The search parameters
start The start
count The count
Returns
  • the future< people>

public Future<People> searchPeople (Map<SearchParameter, String> searchParameters)

Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Parameters
searchParameters The search parameters
Returns
  • the future< people>

public Future<People> searchPeople ()

Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Returns
  • the future< people>

public Future<People> searchPeople (Map<SearchParameter, String> searchParameters, int start, int count, SearchSortOrder sortOrder)

Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Parameters
searchParameters The search parameters
start The start
count The count
sortOrder The sort order
Returns
  • the future< people>

public Future<?> sendInviteByEmail (String email, String firstName, String lastName, String subject, String message)

Send invite. For details see http://developer.linkedin.com/docs/DOC-1012

Parameters
email The recepient email
firstName The first name
lastName The last name
subject The subject
message The message
Returns
  • the future

public Future<?> sendInviteById (String recepientId, String subject, String message, String authHeader)

Send invite. For details see http://developer.linkedin.com/docs/DOC-1012

To call this method one needs an auth header parameter. This can be obtained by getting getHeaders() from getApiStandardProfileRequest() and then getting the value of header with name AUTH_HEADER_NAME.

Parameters
recepientId The recepient id
subject The subject
message The message
authHeader The auth header
Returns
  • the future

public Future<?> sendInviteToPerson (Person recepient, String subject, String message)

Send invite. For details see http://developer.linkedin.com/docs/DOC-1012

To call this method one needs an auth header parameter. This can be obtained by getting getHeaders() from getApiStandardProfileRequest() and then getting the value of header with name AUTH_HEADER_NAME.

Parameters
recepient The recepient
subject The subject
message The message
Returns
  • the future

public Future<?> sendMessage (List<String> recepientIds, String subject, String message)

Send message. For details see http://developer.linkedin.com/docs/DOC-1044

Parameters
recepientIds The recepient ids
subject The subject
message The message
Returns
  • the future

public void setAccessToken (LinkedInAccessToken accessToken)

Method description

Parameters
accessToken

public void setApiConsumer (LinkedInApiConsumer apiConsumer)

Method description

Parameters
apiConsumer

public void setRequestHeaders (Map<String, String> requestHeaders)

Sets the request headers.

Parameters
requestHeaders The request headers

public Future<?> updateCurrentStatus (String status)

Update current status. For details see http://developer.linkedin.com/docs/DOC-1007

Parameters
status The status
Returns
  • the future