com.google.code.linkedinapi.client
Interface AsyncHandlerLinkedInApiClient

All Superinterfaces:
LinkedInAuthenticationClient, LinkedInCommunicationClient
All Known Implementing Classes:
AsyncHandlerLinkedInApiClientAdapter

public interface AsyncHandlerLinkedInApiClient
extends LinkedInAuthenticationClient

The Interface AsyncLinkedInApiClient. This interface can be used for asynchronous invocation of API methods.

Author:
Nabeel Mukhtar

Method Summary
 void deleteCurrentStatus(AsyncResponseHandler<?> handler)
          Delete current status.
 void getConnectionsById(java.lang.String id, AsyncResponseHandler<Connections> handler)
          Gets the connections by id.
 void getConnectionsById(java.lang.String id, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections by id.
 void getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
          Gets the connections by id.
 void getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections by id.
 void getConnectionsByUrl(java.lang.String url, AsyncResponseHandler<Connections> handler)
          Gets the connections by url.
 void getConnectionsByUrl(java.lang.String url, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections by url.
 void getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
          Gets the connections by url.
 void getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections by url.
 void getConnectionsForCurrentUser(AsyncResponseHandler<Connections> handler)
          Gets the connections for current user.
 void getConnectionsForCurrentUser(int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections for current user.
 void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
          Gets the connections for current user.
 void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
          Gets the connections for current user.
 void getNetworkUpdateComments(java.lang.String networkUpdateId, AsyncResponseHandler<UpdateComments> handler)
          Gets the network update comments.
 void getNetworkUpdates(AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(int start, int count, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
          Gets the network updates.
 void getProfileByApiRequest(ApiStandardProfileRequest apiRequest, AsyncResponseHandler<Person> handler)
          Gets the profile by API request.
 void getProfileById(java.lang.String id, AsyncResponseHandler<Person> handler)
          Gets the profile by id.
 void getProfileById(java.lang.String id, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
          Gets the profile by id.
 void getProfileByUrl(java.lang.String url, ProfileType profileType, AsyncResponseHandler<Person> handler)
          Gets the profile by url.
 void getProfileByUrl(java.lang.String url, ProfileType profileType, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
          Gets the profile by url.
 void getProfileForCurrentUser(AsyncResponseHandler<Person> handler)
          Gets the profile for current user.
 void getProfileForCurrentUser(java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
          Gets the profile for current user.
 void postComment(java.lang.String networkUpdateId, java.lang.String commentText, AsyncResponseHandler<?> handler)
          Post comment.
 void postNetworkUpdate(java.lang.String updateText, AsyncResponseHandler<?> handler)
          Post network update.
 void searchPeople(AsyncResponseHandler<People> handler)
          Search people.
 void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, AsyncResponseHandler<People> handler)
          Search people.
 void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, AsyncResponseHandler<People> handler)
          Search people.
 void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, SearchSortOrder sortOrder, AsyncResponseHandler<People> handler)
          Search people.
 void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, SearchSortOrder sortOrder, AsyncResponseHandler<People> handler)
          Search people.
 void sendInviteByEmail(java.lang.String email, java.lang.String firstName, java.lang.String lastName, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
          Send invite.
 void sendInviteById(java.lang.String recepientId, java.lang.String subject, java.lang.String message, java.lang.String authHeader, AsyncResponseHandler<?> handler)
          Send invite.
 void sendInviteToPerson(Person recepient, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
          Send invite.
 void sendMessage(java.util.List<java.lang.String> recepientIds, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
          Send message.
 void updateCurrentStatus(java.lang.String status, AsyncResponseHandler<?> handler)
          Update current status.
 
Methods inherited from interface com.google.code.linkedinapi.client.LinkedInAuthenticationClient
getAccessToken, getApiConsumer, setAccessToken, setApiConsumer
 
Methods inherited from interface com.google.code.linkedinapi.client.LinkedInCommunicationClient
addRequestHeader, getRequestHeaders, removeRequestHeader, setRequestHeaders
 

Method Detail

getProfileForCurrentUser

void getProfileForCurrentUser(AsyncResponseHandler<Person> handler)
Gets the profile for current user. For details see http://developer.linkedin.com/docs/DOC-1002


getProfileById

void getProfileById(java.lang.String id,
                    AsyncResponseHandler<Person> handler)
Gets the profile by id. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters:
id - the id
profileType - the profile type

getProfileByUrl

void getProfileByUrl(java.lang.String url,
                     ProfileType profileType,
                     AsyncResponseHandler<Person> handler)
Gets the profile by url. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters:
url - the url
profileType - the profile type

getProfileForCurrentUser

void getProfileForCurrentUser(java.util.Set<ProfileField> profileFields,
                              AsyncResponseHandler<Person> handler)
Gets the profile for current user. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters:
profileFields - the profile fields

getProfileById

void getProfileById(java.lang.String id,
                    java.util.Set<ProfileField> profileFields,
                    AsyncResponseHandler<Person> handler)
Gets the profile by id. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters:
id - the id
profileType - the profile type
profileFields - the profile fields

getProfileByUrl

void getProfileByUrl(java.lang.String url,
                     ProfileType profileType,
                     java.util.Set<ProfileField> profileFields,
                     AsyncResponseHandler<Person> handler)
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

getProfileByApiRequest

void getProfileByApiRequest(ApiStandardProfileRequest apiRequest,
                            AsyncResponseHandler<Person> handler)
Gets the profile by API request. For details see http://developer.linkedin.com/docs/DOC-1002

Parameters:
apiRequest - the api request

getNetworkUpdates

void getNetworkUpdates(AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006


getNetworkUpdates

void getNetworkUpdates(int start,
                       int count,
                       AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters:
start - the start
count - the count

getNetworkUpdates

void getNetworkUpdates(java.util.Date startDate,
                       java.util.Date endDate,
                       AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters:
startDate - the start date
endDate - the end date

getNetworkUpdates

void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                       AsyncResponseHandler<Network> handler)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Parameters:
updateTypes - the update types

getNetworkUpdates

void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                       int start,
                       int count,
                       AsyncResponseHandler<Network> handler)
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

getNetworkUpdates

void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                       java.util.Date startDate,
                       java.util.Date endDate,
                       AsyncResponseHandler<Network> handler)
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

getNetworkUpdates

void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                       int start,
                       int count,
                       java.util.Date startDate,
                       java.util.Date endDate,
                       AsyncResponseHandler<Network> handler)
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

getNetworkUpdateComments

void getNetworkUpdateComments(java.lang.String networkUpdateId,
                              AsyncResponseHandler<UpdateComments> handler)
Gets the network update comments. For details see http://developer.linkedin.com/docs/DOC-1043

Parameters:
networkUpdateId - the network update id

getConnectionsForCurrentUser

void getConnectionsForCurrentUser(AsyncResponseHandler<Connections> handler)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004


getConnectionsById

void getConnectionsById(java.lang.String id,
                        AsyncResponseHandler<Connections> handler)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters:
id - the id

getConnectionsByUrl

void getConnectionsByUrl(java.lang.String url,
                         AsyncResponseHandler<Connections> handler)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters:
url - the url

getConnectionsForCurrentUser

void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields,
                                  AsyncResponseHandler<Connections> handler)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters:
profileFields - the profile fields

getConnectionsById

void getConnectionsById(java.lang.String id,
                        java.util.Set<ProfileField> profileFields,
                        AsyncResponseHandler<Connections> handler)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters:
id - the id
profileFields - the profile fields

getConnectionsByUrl

void getConnectionsByUrl(java.lang.String url,
                         java.util.Set<ProfileField> profileFields,
                         AsyncResponseHandler<Connections> handler)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters:
url - the url
profileFields - the profile fields

getConnectionsForCurrentUser

void getConnectionsForCurrentUser(int start,
                                  int count,
                                  AsyncResponseHandler<Connections> handler)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Parameters:
start - the start
count - the count

getConnectionsById

void getConnectionsById(java.lang.String id,
                        int start,
                        int count,
                        AsyncResponseHandler<Connections> handler)
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

getConnectionsByUrl

void getConnectionsByUrl(java.lang.String url,
                         int start,
                         int count,
                         AsyncResponseHandler<Connections> handler)
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

getConnectionsForCurrentUser

void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields,
                                  int start,
                                  int count,
                                  AsyncResponseHandler<Connections> handler)
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

getConnectionsById

void getConnectionsById(java.lang.String id,
                        java.util.Set<ProfileField> profileFields,
                        int start,
                        int count,
                        AsyncResponseHandler<Connections> handler)
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

getConnectionsByUrl

void getConnectionsByUrl(java.lang.String url,
                         java.util.Set<ProfileField> profileFields,
                         int start,
                         int count,
                         AsyncResponseHandler<Connections> handler)
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

searchPeople

void searchPeople(AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005


searchPeople

void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                  AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Parameters:
searchParameters - the search parameters

searchPeople

void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                  int start,
                  int count,
                  AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Parameters:
searchParameters - the search parameters
start - the start
count - the count

searchPeople

void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                  SearchSortOrder sortOrder,
                  AsyncResponseHandler<People> handler)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Parameters:
searchParameters - the search parameters
sortOrder - the sort order

searchPeople

void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                  int start,
                  int count,
                  SearchSortOrder sortOrder,
                  AsyncResponseHandler<People> handler)
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

postNetworkUpdate

void postNetworkUpdate(java.lang.String updateText,
                       AsyncResponseHandler<?> handler)
Post network update. For details see http://developer.linkedin.com/docs/DOC-1009

Parameters:
updateText - the update text

postComment

void postComment(java.lang.String networkUpdateId,
                 java.lang.String commentText,
                 AsyncResponseHandler<?> handler)
Post comment. For details see http://developer.linkedin.com/docs/DOC-1043

Parameters:
networkUpdateId - the network update id
commentText - the comment text

updateCurrentStatus

void updateCurrentStatus(java.lang.String status,
                         AsyncResponseHandler<?> handler)
Update current status. For details see http://developer.linkedin.com/docs/DOC-1007

Parameters:
status - the status

deleteCurrentStatus

void deleteCurrentStatus(AsyncResponseHandler<?> handler)
Delete current status. For details see http://developer.linkedin.com/docs/DOC-1007


sendMessage

void sendMessage(java.util.List<java.lang.String> recepientIds,
                 java.lang.String subject,
                 java.lang.String message,
                 AsyncResponseHandler<?> handler)
Send message. For details see http://developer.linkedin.com/docs/DOC-1044

Parameters:
recepientIds - the recepient ids
subject - the subject
message - the message

sendInviteByEmail

void sendInviteByEmail(java.lang.String email,
                       java.lang.String firstName,
                       java.lang.String lastName,
                       java.lang.String subject,
                       java.lang.String message,
                       AsyncResponseHandler<?> handler)
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

sendInviteById

void sendInviteById(java.lang.String recepientId,
                    java.lang.String subject,
                    java.lang.String message,
                    java.lang.String authHeader,
                    AsyncResponseHandler<?> handler)
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 ApiStandardProfileRequest.getHeaders() from Person.getApiStandardProfileRequest() and then getting the value of header with name ApplicationConstants.AUTH_HEADER_NAME.

Parameters:
recepientId - the recepient id
subject - the subject
message - the message
authHeader - the auth header

sendInviteToPerson

void sendInviteToPerson(Person recepient,
                        java.lang.String subject,
                        java.lang.String message,
                        AsyncResponseHandler<?> handler)
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 ApiStandardProfileRequest.getHeaders() from Person.getApiStandardProfileRequest() and then getting the value of header with name ApplicationConstants.AUTH_HEADER_NAME.

Parameters:
recepient - the recepient
subject - the subject
message - the message