org.springframework.social.linkedin.api
Interface CompanyOperations


public interface CompanyOperations

Operations related to Companies on LinkedIn


Method Summary
 java.util.List<Company> getCompaniesByEmailDomain(java.lang.String domain)
          Retrive List of Company Details based on email domain
 Company getCompany(int id)
          Retrieve Company Details based on unique integer id
 Company getCompanyByUniversalName(java.lang.String name)
          Retrieve Company Details based on unique name id
 java.util.List<Company> getFollowing()
          Retrieve list of Companies that user is following
 Products getProducts(int companyId, int start, int count)
          Get products for a company.
 java.util.List<Company> getSuggestionsToFollow()
          Retrieve a list of Suggested Companies for user to follow
 Companies search(java.lang.String keywords)
          Search of Companies based on space separated list of keywords
 void startFollowingCompany(int id)
          Start following company
 void stopFollowingCompany(int id)
          Stop following company
 

Method Detail

getCompany

Company getCompany(int id)
Retrieve Company Details based on unique integer id

Parameters:
id -
Returns:
company

getCompanyByUniversalName

Company getCompanyByUniversalName(java.lang.String name)
Retrieve Company Details based on unique name id

Parameters:
name -
Returns:
company

getCompaniesByEmailDomain

java.util.List<Company> getCompaniesByEmailDomain(java.lang.String domain)
Retrive List of Company Details based on email domain

Parameters:
domain - Email Domain
Returns:
List of Companies

search

Companies search(java.lang.String keywords)
Search of Companies based on space separated list of keywords

Parameters:
keywords -
Returns:
Search Result with count, start, total and list of companies

getFollowing

java.util.List<Company> getFollowing()
Retrieve list of Companies that user is following

Returns:
List of Companies

getSuggestionsToFollow

java.util.List<Company> getSuggestionsToFollow()
Retrieve a list of Suggested Companies for user to follow

Returns:
List of Companies

startFollowingCompany

void startFollowingCompany(int id)
Start following company

Parameters:
id -

stopFollowingCompany

void stopFollowingCompany(int id)
Stop following company

Parameters:
id -

getProducts

Products getProducts(int companyId,
                     int start,
                     int count)
Get products for a company.

Parameters:
companyId - the ID of the company to get products for.
start - The starting point in the result set. Used with count for pagination.
count - The number of products to return. Used with start for pagination.
Returns:
the products for the specified company.