|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.code.linkedinapi.client.impl.AsyncHandlerLinkedInApiClientAdapter
public class AsyncHandlerLinkedInApiClientAdapter
Field Summary | |
---|---|
private LinkedInApiClient |
client
Field description |
private java.util.concurrent.ExecutorService |
taskExecutor
Field description |
Constructor Summary | |
---|---|
AsyncHandlerLinkedInApiClientAdapter(LinkedInApiClient client,
java.util.concurrent.ExecutorService taskExecutor)
Constructs ... |
Method Summary | ||
---|---|---|
void |
addRequestHeader(java.lang.String headerName,
java.lang.String headerValue)
Adds the request header. |
|
void |
deleteCurrentStatus(AsyncResponseHandler<?> handler)
Delete current status. |
|
protected
|
execute(java.util.concurrent.Callable<T> task)
Method description |
|
protected java.util.concurrent.Future |
execute(java.lang.Runnable task)
Method description |
|
LinkedInAccessToken |
getAccessToken()
Method description |
|
LinkedInApiConsumer |
getApiConsumer()
Method description |
|
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. |
|
java.util.Map<java.lang.String,java.lang.String> |
getRequestHeaders()
Gets the request headers. |
|
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 |
removeRequestHeader(java.lang.String headerName)
Removes the request header. |
|
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 |
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. |
|
void |
updateCurrentStatus(java.lang.String status,
AsyncResponseHandler<?> handler)
Update current status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private LinkedInApiClient client
private java.util.concurrent.ExecutorService taskExecutor
Constructor Detail |
---|
public AsyncHandlerLinkedInApiClientAdapter(LinkedInApiClient client, java.util.concurrent.ExecutorService taskExecutor)
client
- Method Detail |
---|
protected java.util.concurrent.Future execute(java.lang.Runnable task)
task
-
protected <T> java.util.concurrent.Future<T> execute(java.util.concurrent.Callable<T> task)
T
- task
-
public void getConnectionsById(java.lang.String id, AsyncResponseHandler<Connections> handler)
getConnectionsById
in interface AsyncHandlerLinkedInApiClient
id
- the idpublic void getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
getConnectionsById
in interface AsyncHandlerLinkedInApiClient
id
- the idprofileFields
- the profile fieldspublic void getConnectionsByUrl(java.lang.String url, AsyncResponseHandler<Connections> handler)
getConnectionsByUrl
in interface AsyncHandlerLinkedInApiClient
url
- the urlpublic void getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
getConnectionsByUrl
in interface AsyncHandlerLinkedInApiClient
url
- the urlprofileFields
- the profile fieldspublic void getConnectionsForCurrentUser(AsyncResponseHandler<Connections> handler)
getConnectionsForCurrentUser
in interface AsyncHandlerLinkedInApiClient
public void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Connections> handler)
getConnectionsForCurrentUser
in interface AsyncHandlerLinkedInApiClient
profileFields
- the profile fieldspublic void getConnectionsById(java.lang.String id, int start, int count, AsyncResponseHandler<Connections> handler)
getConnectionsById
in interface AsyncHandlerLinkedInApiClient
id
- the idstart
- the startcount
- the countpublic void getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
getConnectionsById
in interface AsyncHandlerLinkedInApiClient
id
- the idprofileFields
- the profile fieldsstart
- the startcount
- the countpublic void getConnectionsByUrl(java.lang.String url, int start, int count, AsyncResponseHandler<Connections> handler)
getConnectionsByUrl
in interface AsyncHandlerLinkedInApiClient
url
- the urlstart
- the startcount
- the countpublic void getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
getConnectionsByUrl
in interface AsyncHandlerLinkedInApiClient
url
- the urlprofileFields
- the profile fieldsstart
- the startcount
- the countpublic void getConnectionsForCurrentUser(int start, int count, AsyncResponseHandler<Connections> handler)
getConnectionsForCurrentUser
in interface AsyncHandlerLinkedInApiClient
start
- the startcount
- the countpublic void getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, int start, int count, AsyncResponseHandler<Connections> handler)
getConnectionsForCurrentUser
in interface AsyncHandlerLinkedInApiClient
profileFields
- the profile fieldsstart
- the startcount
- the countpublic void getNetworkUpdates(AsyncResponseHandler<Network> handler)
getNetworkUpdates
in interface AsyncHandlerLinkedInApiClient
public void getNetworkUpdates(int start, int count, AsyncResponseHandler<Network> handler)
getNetworkUpdates
in interface AsyncHandlerLinkedInApiClient
start
- the startcount
- the countpublic void getNetworkUpdates(java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
getNetworkUpdates
in interface AsyncHandlerLinkedInApiClient
startDate
- the start dateendDate
- the end datepublic void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, AsyncResponseHandler<Network> handler)
getNetworkUpdates
in interface AsyncHandlerLinkedInApiClient
updateTypes
- the update typespublic void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, AsyncResponseHandler<Network> handler)
getNetworkUpdates
in interface AsyncHandlerLinkedInApiClient
updateTypes
- the update typesstart
- the startcount
- the countpublic void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
getNetworkUpdates
in interface AsyncHandlerLinkedInApiClient
updateTypes
- the update typesstartDate
- the start dateendDate
- the end datepublic void getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, java.util.Date startDate, java.util.Date endDate, AsyncResponseHandler<Network> handler)
getNetworkUpdates
in interface AsyncHandlerLinkedInApiClient
updateTypes
- the update typesstart
- the startcount
- the countstartDate
- the start dateendDate
- the end datepublic void getNetworkUpdateComments(java.lang.String networkUpdateId, AsyncResponseHandler<UpdateComments> handler)
getNetworkUpdateComments
in interface AsyncHandlerLinkedInApiClient
networkUpdateId
- the network update idpublic void getProfileById(java.lang.String id, AsyncResponseHandler<Person> handler)
getProfileById
in interface AsyncHandlerLinkedInApiClient
id
- the idpublic void getProfileById(java.lang.String id, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
getProfileById
in interface AsyncHandlerLinkedInApiClient
id
- the idprofileFields
- the profile fieldspublic void getProfileByUrl(java.lang.String url, ProfileType profileType, AsyncResponseHandler<Person> handler)
getProfileByUrl
in interface AsyncHandlerLinkedInApiClient
url
- the urlprofileType
- the profile typepublic void getProfileByUrl(java.lang.String url, ProfileType profileType, java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
getProfileByUrl
in interface AsyncHandlerLinkedInApiClient
url
- the urlprofileType
- the profile typeprofileFields
- the profile fieldspublic void getProfileByApiRequest(ApiStandardProfileRequest apiRequest, AsyncResponseHandler<Person> handler)
getProfileByApiRequest
in interface AsyncHandlerLinkedInApiClient
apiRequest
- the api requestpublic void getProfileForCurrentUser(AsyncResponseHandler<Person> handler)
getProfileForCurrentUser
in interface AsyncHandlerLinkedInApiClient
public void getProfileForCurrentUser(java.util.Set<ProfileField> profileFields, AsyncResponseHandler<Person> handler)
getProfileForCurrentUser
in interface AsyncHandlerLinkedInApiClient
profileFields
- the profile fieldspublic void postComment(java.lang.String networkUpdateId, java.lang.String commentText, AsyncResponseHandler<?> handler)
postComment
in interface AsyncHandlerLinkedInApiClient
networkUpdateId
- the network update idcommentText
- the comment textpublic void postNetworkUpdate(java.lang.String updateText, AsyncResponseHandler<?> handler)
postNetworkUpdate
in interface AsyncHandlerLinkedInApiClient
updateText
- the update textpublic void searchPeople(AsyncResponseHandler<People> handler)
searchPeople
in interface AsyncHandlerLinkedInApiClient
public void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, AsyncResponseHandler<People> handler)
searchPeople
in interface AsyncHandlerLinkedInApiClient
searchParameters
- the search parameterspublic void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, AsyncResponseHandler<People> handler)
searchPeople
in interface AsyncHandlerLinkedInApiClient
searchParameters
- the search parametersstart
- the startcount
- the countpublic void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, SearchSortOrder sortOrder, AsyncResponseHandler<People> handler)
searchPeople
in interface AsyncHandlerLinkedInApiClient
searchParameters
- the search parameterssortOrder
- the sort orderpublic void searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, SearchSortOrder sortOrder, AsyncResponseHandler<People> handler)
searchPeople
in interface AsyncHandlerLinkedInApiClient
searchParameters
- the search parametersstart
- the startcount
- the countsortOrder
- the sort orderpublic void sendInviteByEmail(java.lang.String email, java.lang.String firstName, java.lang.String lastName, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
sendInviteByEmail
in interface AsyncHandlerLinkedInApiClient
email
- the recepient emailfirstName
- the first namelastName
- the last namesubject
- the subjectmessage
- the messagepublic void sendInviteToPerson(Person recepient, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
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 AsyncHandlerLinkedInApiClient
recepient
- the recepientsubject
- the subjectmessage
- the messagepublic void sendInviteById(java.lang.String recepientId, java.lang.String subject, java.lang.String message, java.lang.String authHeader, AsyncResponseHandler<?> handler)
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 AsyncHandlerLinkedInApiClient
recepientId
- the recepient idsubject
- the subjectmessage
- the messageauthHeader
- the auth headerpublic void sendMessage(java.util.List<java.lang.String> recepientIds, java.lang.String subject, java.lang.String message, AsyncResponseHandler<?> handler)
sendMessage
in interface AsyncHandlerLinkedInApiClient
recepientIds
- the recepient idssubject
- the subjectmessage
- the messagepublic void updateCurrentStatus(java.lang.String status, AsyncResponseHandler<?> handler)
updateCurrentStatus
in interface AsyncHandlerLinkedInApiClient
status
- the statuspublic void deleteCurrentStatus(AsyncResponseHandler<?> handler)
deleteCurrentStatus
in interface AsyncHandlerLinkedInApiClient
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 |