Class CompanyService
- java.lang.Object
-
- com.aboutyou.cloud.adminapi.service.AbstractService
-
- com.aboutyou.cloud.adminapi.service.CompanyService
-
public class CompanyService extends AbstractService
-
-
Constructor Summary
Constructors Constructor Description CompanyService(HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCollection<Company>all()ApiCollection<Company>all(ApiOptions options)Companycreate(Company model)Companycreate(Company model, ApiOptions options)Companyget(java.lang.Integer companyId)Companyget(java.lang.Integer companyId, ApiOptions options)Companyupdate(java.lang.Integer companyId, Company model)Companyupdate(java.lang.Integer companyId, Company model, ApiOptions options)-
Methods inherited from class com.aboutyou.cloud.adminapi.service.AbstractService
request, request, requestCollection, requestCollection, resolvePath
-
-
-
-
Constructor Detail
-
CompanyService
public CompanyService(HttpClient httpClient)
-
-
Method Detail
-
create
public Company create(Company model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
create
public Company create(Company model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Company> all() throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
all
public ApiCollection<Company> all(ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Company get(java.lang.Integer companyId) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
get
public Company get(java.lang.Integer companyId, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Company update(java.lang.Integer companyId, Company model) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
update
public Company update(java.lang.Integer companyId, Company model, ApiOptions options) throws ApiErrorException, ConnectionException
- Throws:
ApiErrorExceptionConnectionException
-
-