Package ru.moysklad.remap_1_2.clients
Class CustomEntityClient
- java.lang.Object
-
- ru.moysklad.remap_1_2.clients.EntityClientBase
-
- ru.moysklad.remap_1_2.clients.CustomEntityClient
-
- All Implemented Interfaces:
DeleteByIdEndpoint,Endpoint,PostEndpoint<CustomEntity>,PutByIdEndpoint<CustomEntity>
public final class CustomEntityClient extends EntityClientBase implements PostEndpoint<CustomEntity>, PutByIdEndpoint<CustomEntity>, DeleteByIdEndpoint
-
-
Field Summary
-
Fields inherited from class ru.moysklad.remap_1_2.clients.EntityClientBase
api, path
-
-
Constructor Summary
Constructors Constructor Description CustomEntityClient(ApiClient api)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomEntityElementcreateCustomEntityElement(String customEntityMetadataId, CustomEntityElement customEntityElement)voiddeleteCustomEntityElement(String customEntityMetadataId, String customEntityElementId)voiddeleteCustomEntityElement(String customEntityMetadataId, CustomEntityElement customEntityElement)Class<? extends MetaEntity>entityClass()CustomEntityElementgetCustomEntityElement(String customEntityMetadataId, String customEntityId)ListEntity<CustomEntityElement>getCustomEntityElements(String customEntityMetadataId)ListEntity<CustomEntityElement>getCustomEntityElements(CustomEntity customEntity)CustomEntityElementupdateCustomEntityElement(String customEntityMetadataId, String customEntityId, CustomEntityElement updatedEntity)CustomEntityElementupdateCustomEntityElement(String customEntityMetadataId, CustomEntityElement customEntityElement)-
Methods inherited from class ru.moysklad.remap_1_2.clients.EntityClientBase
api, metaEntityClass, path, positionEntityClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.DeleteByIdEndpoint
delete, delete
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.Endpoint
api, metaEntityClass, path, positionEntityClass
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PostEndpoint
create
-
Methods inherited from interface ru.moysklad.remap_1_2.clients.endpoints.PutByIdEndpoint
update, update
-
-
-
-
Constructor Detail
-
CustomEntityClient
public CustomEntityClient(ApiClient api)
-
-
Method Detail
-
entityClass
public Class<? extends MetaEntity> entityClass()
- Specified by:
entityClassin interfaceEndpoint- Overrides:
entityClassin classEntityClientBase
-
createCustomEntityElement
public CustomEntityElement createCustomEntityElement(String customEntityMetadataId, CustomEntityElement customEntityElement) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getCustomEntityElement
public CustomEntityElement getCustomEntityElement(String customEntityMetadataId, String customEntityId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getCustomEntityElements
public ListEntity<CustomEntityElement> getCustomEntityElements(String customEntityMetadataId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
getCustomEntityElements
public ListEntity<CustomEntityElement> getCustomEntityElements(CustomEntity customEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateCustomEntityElement
public CustomEntityElement updateCustomEntityElement(String customEntityMetadataId, String customEntityId, CustomEntityElement updatedEntity) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
updateCustomEntityElement
public CustomEntityElement updateCustomEntityElement(String customEntityMetadataId, CustomEntityElement customEntityElement) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
deleteCustomEntityElement
public void deleteCustomEntityElement(String customEntityMetadataId, String customEntityElementId) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
deleteCustomEntityElement
public void deleteCustomEntityElement(String customEntityMetadataId, CustomEntityElement customEntityElement) throws IOException, ApiClientException
- Throws:
IOExceptionApiClientException
-
-