org.springframework.social.linkedin.api.impl
Class LinkedInTemplate

java.lang.Object
  extended by org.springframework.social.oauth2.AbstractOAuth2ApiBinding
      extended by org.springframework.social.linkedin.api.impl.LinkedInTemplate
All Implemented Interfaces:
org.springframework.social.ApiBinding, LinkedIn

public class LinkedInTemplate
extends org.springframework.social.oauth2.AbstractOAuth2ApiBinding
implements LinkedIn

This is the central class for interacting with LinkedIn.

Greenhouse operations require OAuth authentication with the server. Therefore, LinkedInTemplate must be constructed with the minimal information required to sign requests with and OAuth 1 Authorization header.


Constructor Summary
LinkedInTemplate(String accessToken)
          Creates a new LinkedInTemplate given the minimal amount of information needed to sign requests with OAuth 1 credentials.
 
Method Summary
 CommunicationOperations communicationOperations()
          API for sending messages and connection requests
 CompanyOperations companyOperations()
          API for retrieving and performing operations on companies
protected  void configureRestTemplate(RestTemplate restTemplate)
           
 ConnectionOperations connectionOperations()
          API for retrieving connections
 GroupOperations groupOperations()
          API for retrieving details of groups
 JobOperations jobOperations()
          API for searching, retrieving and bookmarking jobs
 NetworkUpdateOperations networkUpdateOperations()
          API for retrieving and performing operations on network updates
 ProfileOperations profileOperations()
          API for retrieving and performing operations on profiles
 RestOperations restOperations()
          Returns the underlying RestOperations object allowing for consumption of LinkedIn endpoints that may not be otherwise covered by the API binding.
 
Methods inherited from class org.springframework.social.oauth2.AbstractOAuth2ApiBinding
getByteArrayMessageConverter, getFormMessageConverter, getJsonMessageConverter, getMessageConverters, getOAuth2Version, getRestTemplate, isAuthorized, setRequestFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.social.ApiBinding
isAuthorized
 

Constructor Detail

LinkedInTemplate

public LinkedInTemplate(String accessToken)
Creates a new LinkedInTemplate given the minimal amount of information needed to sign requests with OAuth 1 credentials.

Parameters:
accessToken - an access token acquired through OAuth authentication with LinkedIn
Method Detail

connectionOperations

public ConnectionOperations connectionOperations()
Description copied from interface: LinkedIn
API for retrieving connections

Specified by:
connectionOperations in interface LinkedIn

networkUpdateOperations

public NetworkUpdateOperations networkUpdateOperations()
Description copied from interface: LinkedIn
API for retrieving and performing operations on network updates

Specified by:
networkUpdateOperations in interface LinkedIn

profileOperations

public ProfileOperations profileOperations()
Description copied from interface: LinkedIn
API for retrieving and performing operations on profiles

Specified by:
profileOperations in interface LinkedIn

companyOperations

public CompanyOperations companyOperations()
Description copied from interface: LinkedIn
API for retrieving and performing operations on companies

Specified by:
companyOperations in interface LinkedIn

communicationOperations

public CommunicationOperations communicationOperations()
Description copied from interface: LinkedIn
API for sending messages and connection requests

Specified by:
communicationOperations in interface LinkedIn

jobOperations

public JobOperations jobOperations()
Description copied from interface: LinkedIn
API for searching, retrieving and bookmarking jobs

Specified by:
jobOperations in interface LinkedIn

groupOperations

public GroupOperations groupOperations()
Description copied from interface: LinkedIn
API for retrieving details of groups

Specified by:
groupOperations in interface LinkedIn

restOperations

public RestOperations restOperations()
Description copied from interface: LinkedIn
Returns the underlying RestOperations object allowing for consumption of LinkedIn endpoints that may not be otherwise covered by the API binding. The RestOperations object returned is configured to include an OAuth "Authorization" header on all requests.

Specified by:
restOperations in interface LinkedIn

configureRestTemplate

protected void configureRestTemplate(RestTemplate restTemplate)
Overrides:
configureRestTemplate in class org.springframework.social.oauth2.AbstractOAuth2ApiBinding