public class DocumentTemplatesApi extends Object
Constructor and Description |
---|
DocumentTemplatesApi() |
DocumentTemplatesApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
DocumentMasterTemplateDTO |
createDocumentMasterTemplate(String workspaceId,
DocumentTemplateCreationDTO body)
Create a new document template
|
com.squareup.okhttp.Call |
createDocumentMasterTemplateAsync(String workspaceId,
DocumentTemplateCreationDTO body,
ApiCallback<DocumentMasterTemplateDTO> callback)
Create a new document template (asynchronously)
|
ApiResponse<DocumentMasterTemplateDTO> |
createDocumentMasterTemplateWithHttpInfo(String workspaceId,
DocumentTemplateCreationDTO body)
Create a new document template
|
void |
deleteDocumentMasterTemplate(String workspaceId,
String templateId)
Delete document template
|
com.squareup.okhttp.Call |
deleteDocumentMasterTemplateAsync(String workspaceId,
String templateId,
ApiCallback<Void> callback)
Delete document template (asynchronously)
|
ApiResponse<Void> |
deleteDocumentMasterTemplateWithHttpInfo(String workspaceId,
String templateId)
Delete document template
|
TemplateGeneratedIdDTO |
generateDocumentMasterId(String workspaceId,
String templateId)
Generate document template id
|
com.squareup.okhttp.Call |
generateDocumentMasterIdAsync(String workspaceId,
String templateId,
ApiCallback<TemplateGeneratedIdDTO> callback)
Generate document template id (asynchronously)
|
ApiResponse<TemplateGeneratedIdDTO> |
generateDocumentMasterIdWithHttpInfo(String workspaceId,
String templateId)
Generate document template id
|
ApiClient |
getApiClient() |
DocumentMasterTemplateDTO |
getDocumentMasterTemplate(String workspaceId,
String templateId)
Get document template by id
|
com.squareup.okhttp.Call |
getDocumentMasterTemplateAsync(String workspaceId,
String templateId,
ApiCallback<DocumentMasterTemplateDTO> callback)
Get document template by id (asynchronously)
|
List<DocumentMasterTemplateDTO> |
getDocumentMasterTemplates(String workspaceId)
Get document templates
|
com.squareup.okhttp.Call |
getDocumentMasterTemplatesAsync(String workspaceId,
ApiCallback<List<DocumentMasterTemplateDTO>> callback)
Get document templates (asynchronously)
|
ApiResponse<List<DocumentMasterTemplateDTO>> |
getDocumentMasterTemplatesWithHttpInfo(String workspaceId)
Get document templates
|
ApiResponse<DocumentMasterTemplateDTO> |
getDocumentMasterTemplateWithHttpInfo(String workspaceId,
String templateId)
Get document template by id
|
void |
removeAttachedFileFromDocumentTemplate(String workspaceId,
String templateId,
String fileName)
Remove attached file from document template
|
com.squareup.okhttp.Call |
removeAttachedFileFromDocumentTemplateAsync(String workspaceId,
String templateId,
String fileName,
ApiCallback<Void> callback)
Remove attached file from document template (asynchronously)
|
ApiResponse<Void> |
removeAttachedFileFromDocumentTemplateWithHttpInfo(String workspaceId,
String templateId,
String fileName)
Remove attached file from document template
|
FileDTO |
renameAttachedFileInDocumentTemplate(String workspaceId,
String templateId,
String fileName,
FileDTO body)
Rename attached file in document template
|
com.squareup.okhttp.Call |
renameAttachedFileInDocumentTemplateAsync(String workspaceId,
String templateId,
String fileName,
FileDTO body,
ApiCallback<FileDTO> callback)
Rename attached file in document template (asynchronously)
|
ApiResponse<FileDTO> |
renameAttachedFileInDocumentTemplateWithHttpInfo(String workspaceId,
String templateId,
String fileName,
FileDTO body)
Rename attached file in document template
|
void |
setApiClient(ApiClient apiClient) |
DocumentMasterTemplateDTO |
updateDocumentMasterTemplate(String workspaceId,
String templateId,
DocumentMasterTemplateDTO body)
Update document template
|
void |
updateDocumentMasterTemplateACL(String workspaceId,
String templateId,
ACLDTO body)
Update document template ACL
|
com.squareup.okhttp.Call |
updateDocumentMasterTemplateACLAsync(String workspaceId,
String templateId,
ACLDTO body,
ApiCallback<Void> callback)
Update document template ACL (asynchronously)
|
ApiResponse<Void> |
updateDocumentMasterTemplateACLWithHttpInfo(String workspaceId,
String templateId,
ACLDTO body)
Update document template ACL
|
com.squareup.okhttp.Call |
updateDocumentMasterTemplateAsync(String workspaceId,
String templateId,
DocumentMasterTemplateDTO body,
ApiCallback<DocumentMasterTemplateDTO> callback)
Update document template (asynchronously)
|
ApiResponse<DocumentMasterTemplateDTO> |
updateDocumentMasterTemplateWithHttpInfo(String workspaceId,
String templateId,
DocumentMasterTemplateDTO body)
Update document template
|
public DocumentTemplatesApi()
public DocumentTemplatesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public List<DocumentMasterTemplateDTO> getDocumentMasterTemplates(String workspaceId) throws ApiException
workspaceId
- Workspace idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<DocumentMasterTemplateDTO>> getDocumentMasterTemplatesWithHttpInfo(String workspaceId) throws ApiException
workspaceId
- Workspace idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getDocumentMasterTemplatesAsync(String workspaceId, ApiCallback<List<DocumentMasterTemplateDTO>> callback) throws ApiException
workspaceId
- Workspace idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic DocumentMasterTemplateDTO createDocumentMasterTemplate(String workspaceId, DocumentTemplateCreationDTO body) throws ApiException
workspaceId
- Workspace idbody
- Document master template to createApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<DocumentMasterTemplateDTO> createDocumentMasterTemplateWithHttpInfo(String workspaceId, DocumentTemplateCreationDTO body) throws ApiException
workspaceId
- Workspace idbody
- Document master template to createApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call createDocumentMasterTemplateAsync(String workspaceId, DocumentTemplateCreationDTO body, ApiCallback<DocumentMasterTemplateDTO> callback) throws ApiException
workspaceId
- Workspace idbody
- Document master template to createcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic DocumentMasterTemplateDTO getDocumentMasterTemplate(String workspaceId, String templateId) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<DocumentMasterTemplateDTO> getDocumentMasterTemplateWithHttpInfo(String workspaceId, String templateId) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getDocumentMasterTemplateAsync(String workspaceId, String templateId, ApiCallback<DocumentMasterTemplateDTO> callback) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic DocumentMasterTemplateDTO updateDocumentMasterTemplate(String workspaceId, String templateId, DocumentMasterTemplateDTO body) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idbody
- Document master template to updateApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<DocumentMasterTemplateDTO> updateDocumentMasterTemplateWithHttpInfo(String workspaceId, String templateId, DocumentMasterTemplateDTO body) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idbody
- Document master template to updateApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateDocumentMasterTemplateAsync(String workspaceId, String templateId, DocumentMasterTemplateDTO body, ApiCallback<DocumentMasterTemplateDTO> callback) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idbody
- Document master template to updatecallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void deleteDocumentMasterTemplate(String workspaceId, String templateId) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteDocumentMasterTemplateWithHttpInfo(String workspaceId, String templateId) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call deleteDocumentMasterTemplateAsync(String workspaceId, String templateId, ApiCallback<Void> callback) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void updateDocumentMasterTemplateACL(String workspaceId, String templateId, ACLDTO body) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idbody
- ACL rules to setApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> updateDocumentMasterTemplateACLWithHttpInfo(String workspaceId, String templateId, ACLDTO body) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idbody
- ACL rules to setApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call updateDocumentMasterTemplateACLAsync(String workspaceId, String templateId, ACLDTO body, ApiCallback<Void> callback) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idbody
- ACL rules to setcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic FileDTO renameAttachedFileInDocumentTemplate(String workspaceId, String templateId, String fileName, FileDTO body) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idfileName
- File namebody
- File to renameApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<FileDTO> renameAttachedFileInDocumentTemplateWithHttpInfo(String workspaceId, String templateId, String fileName, FileDTO body) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idfileName
- File namebody
- File to renameApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call renameAttachedFileInDocumentTemplateAsync(String workspaceId, String templateId, String fileName, FileDTO body, ApiCallback<FileDTO> callback) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idfileName
- File namebody
- File to renamecallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic void removeAttachedFileFromDocumentTemplate(String workspaceId, String templateId, String fileName) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idfileName
- File nameApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> removeAttachedFileFromDocumentTemplateWithHttpInfo(String workspaceId, String templateId, String fileName) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idfileName
- File nameApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call removeAttachedFileFromDocumentTemplateAsync(String workspaceId, String templateId, String fileName, ApiCallback<Void> callback) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idfileName
- File namecallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic TemplateGeneratedIdDTO generateDocumentMasterId(String workspaceId, String templateId) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TemplateGeneratedIdDTO> generateDocumentMasterIdWithHttpInfo(String workspaceId, String templateId) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call generateDocumentMasterIdAsync(String workspaceId, String templateId, ApiCallback<TemplateGeneratedIdDTO> callback) throws ApiException
workspaceId
- Workspace idtemplateId
- Template idcallback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019 DocDoku. All rights reserved.