public interface ManagersApiAccessor
| Modifier and Type | Method and Description |
|---|---|
int |
assignManagersToSupervisor(java.util.UUID supervisorId,
java.util.Set<java.util.UUID> managerIdSet)
Assigns managers to supervisor.
|
void |
assignManagersToSupervisor(java.util.UUID supervisorId,
java.util.Set<java.util.UUID> managerIdSet,
UpdateApiCallback apiCallback)
Assign managers to supervisor.
|
HttpResult<IManager> |
createManager(ManagerData manager)
Creates manager.
|
void |
createManager(ManagerData managerData,
ResultApiCallback<IManager> apiCallback)
Create manager.
|
int |
deleteManager(java.util.UUID managerId)
Deletes manager.
|
void |
deleteManager(java.util.UUID managerId,
UpdateApiCallback apiCallback)
Delete manager.
|
HttpResult<IManager> |
getManager(java.util.UUID managerId)
Gets manager.
|
void |
getManager(java.util.UUID managerId,
ResultApiCallback<IManager> apiCallback)
Gets manager.
|
HttpResult<IManager> |
getManager(java.util.UUID managerId,
SDKOptional<ETag> eTagOptional)
Gets manager.
|
void |
getManager(java.util.UUID managerId,
SDKOptional<ETag> etag,
ResultApiCallback<IManager> apiCallback)
Gets manager.
|
HttpResult<java.util.List<IManager>> |
listManagers()
List managers.
|
HttpResult<java.util.List<IManager>> |
listManagers(RequestDescription requestDescription)
Provides the list of managers.
|
void |
listManagers(RequestDescription requestDescription,
ResultApiCallback<java.util.List<IManager>> apiCallback)
List managers.
|
void |
listManagers(ResultApiCallback<java.util.List<IManager>> apiCallback)
List managers.
|
HttpResult<java.util.List<IManager>> |
listSubordinatesForManager(java.util.UUID managerId)
List subordinates for manager.
|
HttpResult<java.util.List<IManager>> |
listSubordinatesForManager(java.util.UUID managerId,
RequestDescription requestDescription)
Gets subordinates for manager by specified Manager Id.
|
void |
listSubordinatesForManager(java.util.UUID managerId,
RequestDescription requestDescription,
ResultApiCallback<java.util.List<IManager>> resultApiCallback)
List subordinates for manager.
|
void |
listSubordinatesForManager(java.util.UUID managerId,
ResultApiCallback<java.util.List<IManager>> resultApiCallback)
List subordinates for manager.
|
int |
updateManager(ManagerData managerData)
Updates manager.
|
void |
updateManager(ManagerData managerData,
UpdateApiCallback updateApiCallback)
Update manager.
|
HttpResult<java.util.List<IManager>> listSubordinatesForManager(java.util.UUID managerId, RequestDescription requestDescription) throws ClientException
managerId - the manager idrequestDescription - the request descriptionClientException - is thrown if unexpected error has occuredHttpResult<java.util.List<IManager>> listSubordinatesForManager(java.util.UUID managerId) throws ClientException
managerId - the manager idClientException - the client exceptionvoid listSubordinatesForManager(java.util.UUID managerId,
RequestDescription requestDescription,
ResultApiCallback<java.util.List<IManager>> resultApiCallback)
managerId - the manager idrequestDescription - the request descriptionresultApiCallback - the result api callbackvoid listSubordinatesForManager(java.util.UUID managerId,
ResultApiCallback<java.util.List<IManager>> resultApiCallback)
managerId - the manager idresultApiCallback - the result api callbackint deleteManager(java.util.UUID managerId)
throws ClientException
managerId - the manager idClientException - is thrown if unexpected error has occuredvoid deleteManager(java.util.UUID managerId,
UpdateApiCallback apiCallback)
managerId - the manager idapiCallback - the api callbackint updateManager(ManagerData managerData) throws ClientException
Required parameter: manager Id. The optional parameters: firstName, lastName, role(one of: ADMIN, OPERATOR), e-mail.If any of the optional parameters is null, it will not be updated.
managerData - the manager update dataClientException - is thrown if unexpected error has occuredvoid updateManager(ManagerData managerData, UpdateApiCallback updateApiCallback)
managerData - the manager dataupdateApiCallback - the update api callbackHttpResult<IManager> createManager(ManagerData manager) throws ClientException
Required parameters: firstName, lastName, e-mail, role(one of: SUPERUSER, ADMIN, OPERATOR).
manager - the manager dataClientException - is thrown if unexpected error has occuredvoid createManager(ManagerData managerData, ResultApiCallback<IManager> apiCallback)
managerData - the manager dataapiCallback - the api callbackHttpResult<IManager> getManager(java.util.UUID managerId, SDKOptional<ETag> eTagOptional) throws ClientException
managerId - the manager ideTagOptional - the e tag optionalClientException - the client exceptionHttpResult<IManager> getManager(java.util.UUID managerId) throws ClientException
managerId - the manager idClientException - the client exceptionvoid getManager(java.util.UUID managerId,
SDKOptional<ETag> etag,
ResultApiCallback<IManager> apiCallback)
managerId - the manager idetag - the etagapiCallback - the api callbackvoid getManager(java.util.UUID managerId,
ResultApiCallback<IManager> apiCallback)
managerId - the manager idapiCallback - the api callbackint assignManagersToSupervisor(java.util.UUID supervisorId,
java.util.Set<java.util.UUID> managerIdSet)
throws ClientException
supervisorId - the supervisor idmanagerIdSet - the manager ids setClientException - is thrown if unexpected error has occuredvoid assignManagersToSupervisor(java.util.UUID supervisorId,
java.util.Set<java.util.UUID> managerIdSet,
UpdateApiCallback apiCallback)
supervisorId - the supervisor idmanagerIdSet - the manager id setapiCallback - the api callbackHttpResult<java.util.List<IManager>> listManagers(RequestDescription requestDescription) throws ClientException
requestDescription - the request descriptionClientException - the client exceptionHttpResult<java.util.List<IManager>> listManagers() throws ClientException
ClientException - the client exceptionvoid listManagers(RequestDescription requestDescription, ResultApiCallback<java.util.List<IManager>> apiCallback)
requestDescription - the request descriptionapiCallback - the api callbackvoid listManagers(ResultApiCallback<java.util.List<IManager>> apiCallback)
apiCallback - the api callback