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

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

public class LinkedInTemplate
extends org.springframework.social.oauth1.AbstractOAuth1ApiBinding
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(java.lang.String consumerKey, java.lang.String consumerSecret, java.lang.String accessToken, java.lang.String accessTokenSecret)
          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
 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.oauth1.AbstractOAuth1ApiBinding
configureRestTemplate, getByteArrayMessageConverter, getFormMessageConverter, getJsonMessageConverter, getMessageConverters, 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(java.lang.String consumerKey,
                        java.lang.String consumerSecret,
                        java.lang.String accessToken,
                        java.lang.String accessTokenSecret)
Creates a new LinkedInTemplate given the minimal amount of information needed to sign requests with OAuth 1 credentials.

Parameters:
consumerKey - the application's API key
consumerSecret - the application's API secret
accessToken - an access token acquired through OAuth authentication with LinkedIn
accessTokenSecret - an access token secret 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