public interface CompanyOperations
| Modifier and Type | Method and Description |
|---|---|
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
|
Company getCompany(int id)
id - the company IDCompany getCompanyByUniversalName(java.lang.String name)
name - the company namejava.util.List<Company> getCompaniesByEmailDomain(java.lang.String domain)
domain - Email DomainCompanies search(java.lang.String keywords)
keywords - keywords to search withjava.util.List<Company> getFollowing()
java.util.List<Company> getSuggestionsToFollow()
void startFollowingCompany(int id)
id - the company IDvoid stopFollowingCompany(int id)
id - the company IDProducts getProducts(int companyId, int start, int count)
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.