com.google.code.linkedinapi.client.impl
Class BaseLinkedInApiClient

java.lang.Object
  extended by com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient
All Implemented Interfaces:
LinkedInApiClient, LinkedInAuthenticationClient, LinkedInCommunicationClient
Direct Known Subclasses:
LinkedInApiJaxbClient, LinkedInApiXppClient

public abstract class BaseLinkedInApiClient
extends java.lang.Object
implements LinkedInApiClient

Author:
Nabeel Mukhtar

Field Summary
private  LinkedInAccessToken accessToken
          Field description
private  LinkedInApiConsumer apiConsumer
          Field description
protected static java.util.Set<ProfileField> CONNECTION_FIELDS
          Field description
private static java.lang.String GZIP_ENCODING
          Field description
protected  java.util.logging.Logger LOG
          The static logger.
private  SchemaElementFactory<?> OBJECT_FACTORY
          Field description
private  java.util.Map<java.lang.String,java.lang.String> requestHeaders
          Field description
 
Constructor Summary
protected BaseLinkedInApiClient(java.lang.String consumerKey, java.lang.String consumerSecret)
          Constructs ...
 
Method Summary
 void addRequestHeader(java.lang.String headerName, java.lang.String headerValue)
          Adds the request header.
protected  void assertNotNull(java.lang.String name, java.lang.Object value)
           
protected  void assertNotNullOrEmpty(java.lang.String name, java.util.Collection<?> value)
           
protected  void assertNotNullOrEmpty(java.lang.String name, java.lang.String value)
           
protected  void assertPositiveNumber(java.lang.String name, int value)
           
protected  java.io.InputStream callApiMethod(java.lang.String apiUrl)
           
protected  java.io.InputStream callApiMethod(java.lang.String apiUrl, int expected, java.util.List<HttpHeader> httpHeaders)
           
protected  java.io.InputStream callApiMethod(java.lang.String apiUrl, java.util.List<HttpHeader> httpHeaders)
           
protected  java.io.InputStream callApiMethod(java.lang.String apiUrl, java.lang.String xmlContent, java.lang.String contentType, HttpMethod method, int expected)
           
protected  void closeConnection(java.net.HttpURLConnection connection)
          Method description
protected  void closeStream(java.io.InputStream is)
          Method description
protected static java.lang.String convertStreamToString(java.io.InputStream is)
          Stolen liberally from http://www.kodejava.org/examples/266.html
protected  LinkedInApiClientException createLinkedInApiClientException(Error error)
          Method description
protected abstract  LinkedInApiUrls.LinkedInApiUrlBuilder createLinkedInApiUrlBuilder(java.lang.String urlFormat)
          Method description
protected abstract  SchemaElementFactory<?> createObjectFactory()
          Method description
 void deleteCurrentStatus()
          Delete current status.
 LinkedInAccessToken getAccessToken()
          Method description
 LinkedInApiConsumer getApiConsumer()
          Method description
 Connections getConnectionsById(java.lang.String id)
          Gets the connections by id.
 Connections getConnectionsById(java.lang.String id, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections by id.
 Connections getConnectionsById(java.lang.String id, int start, int count)
          Gets the connections by id.
 Connections getConnectionsById(java.lang.String id, int start, int count, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections by id.
 Connections getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields)
          Gets the connections by id.
 Connections getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections by id.
 Connections getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, int start, int count)
          Gets the connections by id.
 Connections getConnectionsById(java.lang.String id, java.util.Set<ProfileField> profileFields, int start, int count, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections by id.
 Connections getConnectionsByUrl(java.lang.String url)
          Gets the connections by url.
 Connections getConnectionsByUrl(java.lang.String url, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections by url.
 Connections getConnectionsByUrl(java.lang.String url, int start, int count)
          Gets the connections by url.
 Connections getConnectionsByUrl(java.lang.String url, int start, int count, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections by url.
 Connections getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields)
          Gets the connections by url.
 Connections getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections by url.
 Connections getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, int start, int count)
          Gets the connections by url.
 Connections getConnectionsByUrl(java.lang.String url, java.util.Set<ProfileField> profileFields, int start, int count, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections by url.
 Connections getConnectionsForCurrentUser()
          Gets the connections for current user.
 Connections getConnectionsForCurrentUser(java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections for current user.
 Connections getConnectionsForCurrentUser(int start, int count)
          Gets the connections for current user.
 Connections getConnectionsForCurrentUser(int start, int count, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections for current user.
 Connections getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields)
          Gets the connections for current user.
 Connections getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections for current user.
 Connections getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, int start, int count)
          Gets the connections for current user.
 Connections getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields, int start, int count, java.util.Date modificationDate, ConnectionModificationType modificationType)
          Gets the connections for current user.
 UpdateComments getNetworkUpdateComments(java.lang.String networkUpdateId)
          Gets the network update comments.
 Likes getNetworkUpdateLikes(java.lang.String networkUpdateId)
          Gets the network update likes.
 Network getNetworkUpdates()
          Gets the network updates.
 Network getNetworkUpdates(java.util.Date startDate, java.util.Date endDate)
          Gets the network updates.
 Network getNetworkUpdates(int start, int count)
          Gets the network updates.
 Network getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes)
          Gets the network updates.
 Network getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, java.util.Date startDate, java.util.Date endDate)
          Gets the network updates.
 Network getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count)
          Gets the network updates.
 Network getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, java.util.Date startDate, java.util.Date endDate)
          Gets the network updates.
 Network getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, java.util.Date startDate, java.util.Date endDate, boolean showHiddenMembers)
          Gets the network updates.
 Person getProfileByApiRequest(ApiStandardProfileRequest apiRequest)
          Gets the profile by API request.
 Person getProfileById(java.lang.String id)
          Gets the profile by id.
 Person getProfileById(java.lang.String id, ProfileType profileType)
          
 Person getProfileById(java.lang.String id, ProfileType profileType, java.util.Set<ProfileField> profileFields)
          
 Person getProfileById(java.lang.String id, java.util.Set<ProfileField> profileFields)
          Gets the profile by id.
 Person getProfileByUrl(java.lang.String url, ProfileType profileType)
          Gets the profile by url.
 Person getProfileByUrl(java.lang.String url, ProfileType profileType, java.util.Set<ProfileField> profileFields)
          Gets the profile by url.
 Person getProfileForCurrentUser()
          Gets the profile for current user.
 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.
 Network getUserUpdates()
          Gets the network updates.
 Network getUserUpdates(java.util.Date startDate, java.util.Date endDate)
          Gets the network updates.
 Network getUserUpdates(int start, int count)
          Gets the network updates.
 Network getUserUpdates(java.util.Set<NetworkUpdateType> updateTypes)
          Gets the network updates.
 Network getUserUpdates(java.util.Set<NetworkUpdateType> updateTypes, java.util.Date startDate, java.util.Date endDate)
          Gets the network updates.
 Network getUserUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count)
          Gets the network updates.
 Network getUserUpdates(java.util.Set<NetworkUpdateType> updateTypes, int start, int count, java.util.Date startDate, java.util.Date endDate)
          Gets the network updates.
protected  java.io.InputStream getWrappedInputStream(java.io.InputStream is, boolean gzip)
          Method description
protected  boolean isNullOrEmpty(java.lang.String s)
          Get property as long.
 void likePost(java.lang.String networkUpdateId)
          Like post.
protected abstract  java.lang.String marshallObject(java.lang.Object element)
          Method description
 void postComment(java.lang.String networkUpdateId, java.lang.String commentText)
          Post comment.
 void postNetworkUpdate(java.lang.String updateText)
          Post network update.
 void postShare(java.lang.String commentText, java.lang.String title, java.lang.String url, java.lang.String imageUrl, VisibilityType visibility)
          Post share.
 void postShare(java.lang.String commentText, java.lang.String title, java.lang.String url, java.lang.String imageUrl, VisibilityType visibilityType, boolean postToTwitter)
          Post share.
protected
<T> T
readResponse(java.lang.Class<T> clazz, java.io.InputStream is)
          Method description
 void removeRequestHeader(java.lang.String headerName)
          Removes the request header.
 void reShare(java.lang.String shareId, java.lang.String commentText, VisibilityType visibilityType)
          Re-share.
 People searchPeople()
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, SearchSortOrder sortOrder)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, int start, int count, SearchSortOrder sortOrder, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, SearchSortOrder sortOrder)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, SearchSortOrder sortOrder, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, int start, int count)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, int start, int count, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, int start, int count, SearchSortOrder sortOrder)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, int start, int count, SearchSortOrder sortOrder, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, SearchSortOrder sortOrder)
          Search people.
 People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, SearchSortOrder sortOrder, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.Set<FacetField> facetFields)
          Search people.
 PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.Set<FacetField> facetFields, int start, int count)
          Search people.
 PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.Set<FacetField> facetFields, int start, int count, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.Set<FacetField> facetFields, int start, int count, SearchSortOrder sortOrder)
          Search people.
 PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.Set<FacetField> facetFields, int start, int count, SearchSortOrder sortOrder, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.Set<FacetField> facetFields, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.Set<FacetField> facetFields, SearchSortOrder sortOrder)
          Search people.
 PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters, java.util.Set<ProfileField> profileFields, java.util.Set<FacetField> facetFields, SearchSortOrder sortOrder, java.util.List<Parameter<FacetType,java.lang.String>> facets)
          Search people.
 void sendInviteByEmail(java.lang.String email, java.lang.String firstName, java.lang.String lastName, java.lang.String subject, java.lang.String message)
          Send invite.
 void sendInviteById(java.lang.String recepientId, java.lang.String subject, java.lang.String message, java.lang.String authHeader)
          Send invite.
 void sendInviteToPerson(Person recepient, java.lang.String subject, java.lang.String message)
          Send invite.
 void 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.
 void unlikePost(java.lang.String networkUpdateId)
          Unlike post.
protected abstract
<T> T
unmarshallObject(java.lang.Class<T> clazz, java.io.InputStream xmlContent)
          Method description
 void updateCurrentStatus(java.lang.String statusText)
          Deprecated. Use postShare(String, String, String, String, VisibilityType)
 void updateCurrentStatus(java.lang.String statusText, boolean postToTwitter)
          Deprecated. Use postShare(String, String, String, String, VisibilityType, boolean)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GZIP_ENCODING

private static final java.lang.String GZIP_ENCODING
Field description

See Also:
Constant Field Values

CONNECTION_FIELDS

protected static final java.util.Set<ProfileField> CONNECTION_FIELDS
Field description


OBJECT_FACTORY

private final SchemaElementFactory<?> OBJECT_FACTORY
Field description


LOG

protected final java.util.logging.Logger LOG
The static logger.


accessToken

private LinkedInAccessToken accessToken
Field description


apiConsumer

private LinkedInApiConsumer apiConsumer
Field description


requestHeaders

private java.util.Map<java.lang.String,java.lang.String> requestHeaders
Field description

Constructor Detail

BaseLinkedInApiClient

protected BaseLinkedInApiClient(java.lang.String consumerKey,
                                java.lang.String consumerSecret)
Constructs ...

Parameters:
consumerKey -
consumerSecret -
Method Detail

setRequestHeaders

public void setRequestHeaders(java.util.Map<java.lang.String,java.lang.String> requestHeaders)
Sets the request headers.

Specified by:
setRequestHeaders in interface LinkedInCommunicationClient
Parameters:
requestHeaders - the request headers

getRequestHeaders

public java.util.Map<java.lang.String,java.lang.String> getRequestHeaders()
Gets the request headers.

Specified by:
getRequestHeaders in interface LinkedInCommunicationClient
Returns:
the request headers

addRequestHeader

public void addRequestHeader(java.lang.String headerName,
                             java.lang.String headerValue)
Adds the request header.

Specified by:
addRequestHeader in interface LinkedInCommunicationClient
Parameters:
headerName - the header name
headerValue - the header value

removeRequestHeader

public void removeRequestHeader(java.lang.String headerName)
Removes the request header.

Specified by:
removeRequestHeader in interface LinkedInCommunicationClient
Parameters:
headerName - the header name

setApiConsumer

public void setApiConsumer(LinkedInApiConsumer apiConsumer)
Method description

Specified by:
setApiConsumer in interface LinkedInAuthenticationClient

getApiConsumer

public LinkedInApiConsumer getApiConsumer()
Method description

Specified by:
getApiConsumer in interface LinkedInAuthenticationClient
Returns:

setAccessToken

public void setAccessToken(LinkedInAccessToken accessToken)
Method description

Specified by:
setAccessToken in interface LinkedInAuthenticationClient

getAccessToken

public LinkedInAccessToken getAccessToken()
Method description

Specified by:
getAccessToken in interface LinkedInAuthenticationClient
Returns:

getConnectionsById

public Connections getConnectionsById(java.lang.String id)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface LinkedInApiClient
Parameters:
id - the id
Returns:
the connections by id

getConnectionsById

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

Specified by:
getConnectionsById in interface LinkedInApiClient
Parameters:
id - the id
profileFields - the profile fields
Returns:
the connections by id

getConnectionsByUrl

public Connections getConnectionsByUrl(java.lang.String url)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface LinkedInApiClient
Parameters:
url - the url
Returns:
the connections by url

getConnectionsByUrl

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

Specified by:
getConnectionsByUrl in interface LinkedInApiClient
Parameters:
url - the url
profileFields - the profile fields
Returns:
the connections by url

getConnectionsForCurrentUser

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

Specified by:
getConnectionsForCurrentUser in interface LinkedInApiClient
Returns:
the connections for current user

getConnectionsForCurrentUser

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

Specified by:
getConnectionsForCurrentUser in interface LinkedInApiClient
Parameters:
profileFields - the profile fields
Returns:
the connections for current user

getConnectionsById

public Connections getConnectionsById(java.lang.String id,
                                      int start,
                                      int count)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface LinkedInApiClient
Parameters:
id - the id
start - the start
count - the count
Returns:
the connections by id

getConnectionsById

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

Specified by:
getConnectionsById in interface LinkedInApiClient
Parameters:
id - the id
profileFields - the profile fields
start - the start
count - the count
Returns:
the connections by id

getConnectionsByUrl

public Connections getConnectionsByUrl(java.lang.String url,
                                       int start,
                                       int count)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface LinkedInApiClient
Parameters:
url - the url
start - the start
count - the count
Returns:
the connections by url

getConnectionsByUrl

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

Specified by:
getConnectionsByUrl in interface LinkedInApiClient
Parameters:
url - the url
profileFields - the profile fields
start - the start
count - the count
Returns:
the connections by url

getConnectionsForCurrentUser

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

Specified by:
getConnectionsForCurrentUser in interface LinkedInApiClient
Parameters:
start - the start
count - the count
Returns:
the connections for current user

getConnectionsForCurrentUser

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

Specified by:
getConnectionsForCurrentUser in interface LinkedInApiClient
Parameters:
profileFields - the profile fields
start - the start
count - the count
Returns:
the connections for current user

getConnectionsById

public Connections getConnectionsById(java.lang.String id,
                                      java.util.Date modificationDate,
                                      ConnectionModificationType modificationType)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface LinkedInApiClient
Parameters:
id - the id
Returns:
the connections by id

getConnectionsById

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

Specified by:
getConnectionsById in interface LinkedInApiClient
Parameters:
id - the id
profileFields - the profile fields
Returns:
the connections by id

getConnectionsByUrl

public Connections getConnectionsByUrl(java.lang.String url,
                                       java.util.Date modificationDate,
                                       ConnectionModificationType modificationType)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface LinkedInApiClient
Parameters:
url - the url
Returns:
the connections by url

getConnectionsByUrl

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

Specified by:
getConnectionsByUrl in interface LinkedInApiClient
Parameters:
url - the url
profileFields - the profile fields
Returns:
the connections by url

getConnectionsForCurrentUser

public Connections getConnectionsForCurrentUser(java.util.Date modificationDate,
                                                ConnectionModificationType modificationType)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsForCurrentUser in interface LinkedInApiClient
Returns:
the connections for current user

getConnectionsForCurrentUser

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

Specified by:
getConnectionsForCurrentUser in interface LinkedInApiClient
Parameters:
profileFields - the profile fields
Returns:
the connections for current user

getConnectionsById

public Connections getConnectionsById(java.lang.String id,
                                      int start,
                                      int count,
                                      java.util.Date modificationDate,
                                      ConnectionModificationType modificationType)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface LinkedInApiClient
Parameters:
id - the id
start - the start
count - the count
Returns:
the connections by id

getConnectionsById

public Connections getConnectionsById(java.lang.String id,
                                      java.util.Set<ProfileField> profileFields,
                                      int start,
                                      int count,
                                      java.util.Date modificationDate,
                                      ConnectionModificationType modificationType)
Gets the connections by id. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsById in interface LinkedInApiClient
Parameters:
id - the id
profileFields - the profile fields
start - the start
count - the count
Returns:
the connections by id

getConnectionsByUrl

public Connections getConnectionsByUrl(java.lang.String url,
                                       int start,
                                       int count,
                                       java.util.Date modificationDate,
                                       ConnectionModificationType modificationType)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface LinkedInApiClient
Parameters:
url - the url
start - the start
count - the count
Returns:
the connections by url

getConnectionsByUrl

public Connections getConnectionsByUrl(java.lang.String url,
                                       java.util.Set<ProfileField> profileFields,
                                       int start,
                                       int count,
                                       java.util.Date modificationDate,
                                       ConnectionModificationType modificationType)
Gets the connections by url. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsByUrl in interface LinkedInApiClient
Parameters:
url - the url
profileFields - the profile fields
start - the start
count - the count
Returns:
the connections by url

getConnectionsForCurrentUser

public Connections getConnectionsForCurrentUser(int start,
                                                int count,
                                                java.util.Date modificationDate,
                                                ConnectionModificationType modificationType)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsForCurrentUser in interface LinkedInApiClient
Parameters:
start - the start
count - the count
Returns:
the connections for current user

getConnectionsForCurrentUser

public Connections getConnectionsForCurrentUser(java.util.Set<ProfileField> profileFields,
                                                int start,
                                                int count,
                                                java.util.Date modificationDate,
                                                ConnectionModificationType modificationType)
Gets the connections for current user. For details see http://developer.linkedin.com/docs/DOC-1004

Specified by:
getConnectionsForCurrentUser in interface LinkedInApiClient
Parameters:
profileFields - the profile fields
start - the start
count - the count
Returns:
the connections for current user

getNetworkUpdates

public Network getNetworkUpdates()
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface LinkedInApiClient
Returns:
the network updates

getNetworkUpdates

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

Specified by:
getNetworkUpdates in interface LinkedInApiClient
Parameters:
start - the start
count - the count
Returns:
the network updates

getNetworkUpdates

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

Specified by:
getNetworkUpdates in interface LinkedInApiClient
Parameters:
startDate - the start date
endDate - the end date
Returns:
the network updates

getNetworkUpdates

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

Specified by:
getNetworkUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
Returns:
the network updates

getNetworkUpdates

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

Specified by:
getNetworkUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
start - the start
count - the count
Returns:
the network updates

getNetworkUpdates

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

Specified by:
getNetworkUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
startDate - the start date
endDate - the end date
Returns:
the network updates

getNetworkUpdates

public Network getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                                 int start,
                                 int count,
                                 java.util.Date startDate,
                                 java.util.Date endDate)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
start - the start
count - the count
startDate - the start date
endDate - the end date
Returns:
the network updates

getNetworkUpdates

public Network getNetworkUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                                 int start,
                                 int count,
                                 java.util.Date startDate,
                                 java.util.Date endDate,
                                 boolean showHiddenMembers)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getNetworkUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
start - the start
count - the count
startDate - the start date
endDate - the end date
Returns:
the network updates

getUserUpdates

public Network getUserUpdates()
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getUserUpdates in interface LinkedInApiClient
Returns:
the network updates

getUserUpdates

public Network getUserUpdates(int start,
                              int count)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getUserUpdates in interface LinkedInApiClient
Parameters:
start - the start
count - the count
Returns:
the network updates

getUserUpdates

public Network getUserUpdates(java.util.Date startDate,
                              java.util.Date endDate)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getUserUpdates in interface LinkedInApiClient
Parameters:
startDate - the start date
endDate - the end date
Returns:
the network updates

getUserUpdates

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

Specified by:
getUserUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
Returns:
the network updates

getUserUpdates

public Network getUserUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                              int start,
                              int count)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getUserUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
start - the start
count - the count
Returns:
the network updates

getUserUpdates

public Network getUserUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                              java.util.Date startDate,
                              java.util.Date endDate)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getUserUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
startDate - the start date
endDate - the end date
Returns:
the network updates

getUserUpdates

public Network getUserUpdates(java.util.Set<NetworkUpdateType> updateTypes,
                              int start,
                              int count,
                              java.util.Date startDate,
                              java.util.Date endDate)
Gets the network updates. For details see http://developer.linkedin.com/docs/DOC-1006

Specified by:
getUserUpdates in interface LinkedInApiClient
Parameters:
updateTypes - the update types
start - the start
count - the count
startDate - the start date
endDate - the end date
Returns:
the network updates

getNetworkUpdateComments

public UpdateComments getNetworkUpdateComments(java.lang.String networkUpdateId)
Gets the network update comments. For details see http://developer.linkedin.com/docs/DOC-1043

Specified by:
getNetworkUpdateComments in interface LinkedInApiClient
Parameters:
networkUpdateId - the network update id
Returns:
the network update comments

getProfileById

public Person getProfileById(java.lang.String id,
                             ProfileType profileType)


getProfileById

public Person getProfileById(java.lang.String id)
Gets the profile by id. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileById in interface LinkedInApiClient
Parameters:
id - the id
Returns:
the profile by id

getProfileById

public Person getProfileById(java.lang.String id,
                             ProfileType profileType,
                             java.util.Set<ProfileField> profileFields)


getProfileById

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

Specified by:
getProfileById in interface LinkedInApiClient
Parameters:
id - the id
profileFields - the profile fields
Returns:
the profile by id

getProfileByUrl

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

Specified by:
getProfileByUrl in interface LinkedInApiClient
Parameters:
url - the url
profileType - the profile type
Returns:
the profile by url

getProfileByUrl

public Person getProfileByUrl(java.lang.String url,
                              ProfileType profileType,
                              java.util.Set<ProfileField> profileFields)
Gets the profile by url. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileByUrl in interface LinkedInApiClient
Parameters:
url - the url
profileType - the profile type
profileFields - the profile fields
Returns:
the profile by url

getProfileForCurrentUser

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

Specified by:
getProfileForCurrentUser in interface LinkedInApiClient
Returns:
the profile for current user

getProfileForCurrentUser

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

Specified by:
getProfileForCurrentUser in interface LinkedInApiClient
Parameters:
profileFields - the profile fields
Returns:
the profile for current user

getProfileByApiRequest

public Person getProfileByApiRequest(ApiStandardProfileRequest apiRequest)
Gets the profile by API request. For details see http://developer.linkedin.com/docs/DOC-1002

Specified by:
getProfileByApiRequest in interface LinkedInApiClient
Parameters:
apiRequest - the api request
Returns:
the profile by api request

postComment

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

Specified by:
postComment in interface LinkedInApiClient
Parameters:
networkUpdateId - the network update id
commentText - the comment text

postNetworkUpdate

public void postNetworkUpdate(java.lang.String updateText)
Post network update. For details see http://developer.linkedin.com/docs/DOC-1009

Specified by:
postNetworkUpdate in interface LinkedInApiClient
Parameters:
updateText - the update text

searchPeople

public People searchPeople()
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
sortOrder - the sort order
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
sortOrder - the sort order
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
sortOrder - the sort order
Returns:
the people

searchPeople

public People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                           java.util.Set<ProfileField> profileFields,
                           int start,
                           int count,
                           SearchSortOrder sortOrder)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
sortOrder - the sort order
Returns:
the people

searchPeople

public People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                           java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
Returns:
the people

searchPeople

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

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
sortOrder - the sort order
Returns:
the people

searchPeople

public People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                           int start,
                           int count,
                           SearchSortOrder sortOrder,
                           java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
sortOrder - the sort order
Returns:
the people

searchPeople

public People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                           java.util.Set<ProfileField> profileFields,
                           java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
Returns:
the people

searchPeople

public People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                           java.util.Set<ProfileField> profileFields,
                           int start,
                           int count,
                           java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
Returns:
the people

searchPeople

public People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                           java.util.Set<ProfileField> profileFields,
                           SearchSortOrder sortOrder,
                           java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
sortOrder - the sort order
Returns:
the people

searchPeople

public People searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                           java.util.Set<ProfileField> profileFields,
                           int start,
                           int count,
                           SearchSortOrder sortOrder,
                           java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
sortOrder - the sort order
Returns:
the people

searchPeople

public PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                                 java.util.Set<ProfileField> profileFields,
                                 java.util.Set<FacetField> facetFields)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
Returns:
the people

searchPeople

public PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                                 java.util.Set<ProfileField> profileFields,
                                 java.util.Set<FacetField> facetFields,
                                 int start,
                                 int count)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
Returns:
the people

searchPeople

public PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                                 java.util.Set<ProfileField> profileFields,
                                 java.util.Set<FacetField> facetFields,
                                 SearchSortOrder sortOrder)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
sortOrder - the sort order
Returns:
the people

searchPeople

public PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                                 java.util.Set<ProfileField> profileFields,
                                 java.util.Set<FacetField> facetFields,
                                 int start,
                                 int count,
                                 SearchSortOrder sortOrder)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
sortOrder - the sort order
Returns:
the people

searchPeople

public PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                                 java.util.Set<ProfileField> profileFields,
                                 java.util.Set<FacetField> facetFields,
                                 java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
Returns:
the people

searchPeople

public PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                                 java.util.Set<ProfileField> profileFields,
                                 java.util.Set<FacetField> facetFields,
                                 int start,
                                 int count,
                                 java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
Returns:
the people

searchPeople

public PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                                 java.util.Set<ProfileField> profileFields,
                                 java.util.Set<FacetField> facetFields,
                                 SearchSortOrder sortOrder,
                                 java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
sortOrder - the sort order
Returns:
the people

searchPeople

public PeopleSearch searchPeople(java.util.Map<SearchParameter,java.lang.String> searchParameters,
                                 java.util.Set<ProfileField> profileFields,
                                 java.util.Set<FacetField> facetFields,
                                 int start,
                                 int count,
                                 SearchSortOrder sortOrder,
                                 java.util.List<Parameter<FacetType,java.lang.String>> facets)
Search people. For details see http://developer.linkedin.com/docs/DOC-1005

Specified by:
searchPeople in interface LinkedInApiClient
Parameters:
searchParameters - the search parameters
start - the start
count - the count
sortOrder - the sort order
Returns:
the people

sendInviteByEmail

public void sendInviteByEmail(java.lang.String email,
                              java.lang.String firstName,
                              java.lang.String lastName,
                              java.lang.String subject,
                              java.lang.String message)
Send invite. For details see http://developer.linkedin.com/docs/DOC-1012

Specified by:
sendInviteByEmail in interface LinkedInApiClient
Parameters:
email - the email
firstName - the first name
lastName - the last name
subject - the subject
message - the message

sendInviteById

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

Specified by:
sendInviteById in interface LinkedInApiClient
Parameters:
recepientId - the recepient id
subject - the subject
message - the message
authHeader - the auth header

sendInviteToPerson

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

Specified by:
sendInviteToPerson in interface LinkedInApiClient
Parameters:
recepient - the recepient
subject - the subject
message - the message

sendMessage

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

Specified by:
sendMessage in interface LinkedInApiClient
Parameters:
recepientIds - the recepient ids
subject - the subject
message - the message

updateCurrentStatus

@Deprecated
public void updateCurrentStatus(java.lang.String statusText)
Deprecated. Use postShare(String, String, String, String, VisibilityType)

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

Specified by:
updateCurrentStatus in interface LinkedInApiClient
Parameters:
statusText - the status

updateCurrentStatus

@Deprecated
public void updateCurrentStatus(java.lang.String statusText,
                                           boolean postToTwitter)
Deprecated. Use postShare(String, String, String, String, VisibilityType, boolean)

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

Specified by:
updateCurrentStatus in interface LinkedInApiClient
Parameters:
statusText - the status

deleteCurrentStatus

public void deleteCurrentStatus()
Delete current status. For details see http://developer.linkedin.com/docs/DOC-1007

Specified by:
deleteCurrentStatus in interface LinkedInApiClient

getNetworkUpdateLikes

public Likes getNetworkUpdateLikes(java.lang.String networkUpdateId)
Description copied from interface: LinkedInApiClient
Gets the network update likes. For details see http://developer.linkedin.com/docs/DOC-1043

Specified by:
getNetworkUpdateLikes in interface LinkedInApiClient
Parameters:
networkUpdateId - the network update id
Returns:
the network update likes

likePost

public void likePost(java.lang.String networkUpdateId)
Description copied from interface: LinkedInApiClient
Like post. For details see http://developer.linkedin.com/docs/DOC-1043

Specified by:
likePost in interface LinkedInApiClient
Parameters:
networkUpdateId - the network update id

postShare

public void postShare(java.lang.String commentText,
                      java.lang.String title,
                      java.lang.String url,
                      java.lang.String imageUrl,
                      VisibilityType visibility)
Description copied from interface: LinkedInApiClient
Post share. For details see http://developer.linkedin.com/docs/DOC-1212

Specified by:
postShare in interface LinkedInApiClient
Parameters:
commentText - the comment text
title - the title
url - the url
imageUrl - the image url
visibility - the visibility

postShare

public void postShare(java.lang.String commentText,
                      java.lang.String title,
                      java.lang.String url,
                      java.lang.String imageUrl,
                      VisibilityType visibilityType,
                      boolean postToTwitter)
Description copied from interface: LinkedInApiClient
Post share. For details see http://developer.linkedin.com/docs/DOC-1212

Specified by:
postShare in interface LinkedInApiClient
Parameters:
commentText - the comment text
title - the title
url - the url
imageUrl - the image url
visibilityType - the visibility

reShare

public void reShare(java.lang.String shareId,
                    java.lang.String commentText,
                    VisibilityType visibilityType)
Description copied from interface: LinkedInApiClient
Re-share. For details see http://developer.linkedin.com/docs/DOC-1212

Specified by:
reShare in interface LinkedInApiClient
Parameters:
shareId - the share id
visibilityType - the visibility

unlikePost

public void unlikePost(java.lang.String networkUpdateId)
Description copied from interface: LinkedInApiClient
Unlike post. For details see http://developer.linkedin.com/docs/DOC-1043

Specified by:
unlikePost in interface LinkedInApiClient
Parameters:
networkUpdateId - the network update id

readResponse

protected <T> T readResponse(java.lang.Class<T> clazz,
                             java.io.InputStream is)
Method description

Type Parameters:
T -
Parameters:
clazz -
is -
Returns:

callApiMethod

protected java.io.InputStream callApiMethod(java.lang.String apiUrl)
Parameters:
apiUrl -
Returns:

callApiMethod

protected java.io.InputStream callApiMethod(java.lang.String apiUrl,
                                            java.util.List<HttpHeader> httpHeaders)
Parameters:
apiUrl -
httpHeaders -
Returns:

callApiMethod

protected java.io.InputStream callApiMethod(java.lang.String apiUrl,
                                            int expected,
                                            java.util.List<HttpHeader> httpHeaders)
Parameters:
apiUrl -
expected -
httpHeaders -
Returns:

callApiMethod

protected java.io.InputStream callApiMethod(java.lang.String apiUrl,
                                            java.lang.String xmlContent,
                                            java.lang.String contentType,
                                            HttpMethod method,
                                            int expected)
Parameters:
apiUrl -
xmlContent -
contentType -
method -
expected -
Returns:

closeStream

protected void closeStream(java.io.InputStream is)
Method description

Parameters:
is -

closeConnection

protected void closeConnection(java.net.HttpURLConnection connection)
Method description

Parameters:
connection -

createLinkedInApiClientException

protected LinkedInApiClientException createLinkedInApiClientException(Error error)
Method description

Parameters:
error -
Returns:

getWrappedInputStream

protected java.io.InputStream getWrappedInputStream(java.io.InputStream is,
                                                    boolean gzip)
                                             throws java.io.IOException
Method description

Parameters:
is -
gzip -
Returns:
Throws:
java.io.IOException

isNullOrEmpty

protected boolean isNullOrEmpty(java.lang.String s)
Get property as long.

Parameters:
s -
Returns:

assertNotNullOrEmpty

protected void assertNotNullOrEmpty(java.lang.String name,
                                    java.lang.String value)
Parameters:
name -
value -

assertNotNullOrEmpty

protected void assertNotNullOrEmpty(java.lang.String name,
                                    java.util.Collection<?> value)
Parameters:
name -
value -

assertPositiveNumber

protected void assertPositiveNumber(java.lang.String name,
                                    int value)
Parameters:
name -
value -

assertNotNull

protected void assertNotNull(java.lang.String name,
                             java.lang.Object value)
Parameters:
name -
value -

convertStreamToString

protected static java.lang.String convertStreamToString(java.io.InputStream is)
Stolen liberally from http://www.kodejava.org/examples/266.html


unmarshallObject

protected abstract <T> T unmarshallObject(java.lang.Class<T> clazz,
                                          java.io.InputStream xmlContent)
Method description

Type Parameters:
T -
Parameters:
clazz -
xmlContent -
Returns:

marshallObject

protected abstract java.lang.String marshallObject(java.lang.Object element)
Method description

Parameters:
element -
Returns:

createLinkedInApiUrlBuilder

protected abstract LinkedInApiUrls.LinkedInApiUrlBuilder createLinkedInApiUrlBuilder(java.lang.String urlFormat)
Method description

Parameters:
urlFormat -
Returns:

createObjectFactory

protected abstract SchemaElementFactory<?> createObjectFactory()
Method description

Returns: