From d9e3d2342e07eece54075e1b8c7d303fd49ce17d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 20:39:42 +0000 Subject: [PATCH] chore(deps): bump org.openapitools:openapi-generator-maven-plugin Bumps org.openapitools:openapi-generator-maven-plugin from 6.6.0 to 7.1.0. --- updated-dependencies: - dependency-name: org.openapitools:openapi-generator-maven-plugin dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .openapi-generator/FILES | 9 +- .openapi-generator/VERSION | 2 +- .../openapi.yaml-default.sha256 | 2 +- api/openapi.yaml | 451 ++++++++++++++---- pom.xml | 6 +- .../bonitasoft/web/client/api/ActorApi.java | 8 +- .../web/client/api/ApplicationMenuApi.java | 20 +- .../web/client/api/ApplicationPageApi.java | 8 +- .../web/client/api/BdmAccessControlApi.java | 20 +- .../org/bonitasoft/web/client/api/BdmApi.java | 8 +- .../web/client/api/FormMappingApi.java | 10 +- .../web/client/api/MaintenanceApi.java | 82 ++++ .../bonitasoft/web/client/api/PageApi.java | 26 +- .../bonitasoft/web/client/api/ProcessApi.java | 34 +- .../web/client/api/ProcessParameterApi.java | 10 +- .../bonitasoft/web/client/api/ProfileApi.java | 34 +- .../web/client/api/SystemTenantApi.java | 20 +- .../bonitasoft/web/client/api/TaskApi.java | 14 +- .../bonitasoft/web/client/api/UploadApi.java | 42 +- .../web/client/invoker/ApiClient.java | 6 +- .../client/invoker/ApiResponseDecoder.java | 7 +- .../web/client/model/ApiResponse.java | 10 +- .../model/ApplicationUpdateRequest.java | 37 +- .../web/client/model/BusinessData.java | 50 ++ .../bonitasoft/web/client/model/Error.java | 50 ++ .../web/client/model/MaintenanceDetails.java | 205 ++++++++ .../web/client/model/ProcessVariable.java | 50 ++ .../bonitasoft/web/client/model/Tenant.java | 2 +- .../web/client/model/TenantCreateRequest.java | 2 +- .../web/client/model/TenantUpdateRequest.java | 2 +- .../client/model/UpdateTaskByIdRequest.java | 50 ++ .../org/bonitasoft/web/client/model/User.java | 2 +- .../web/client/model/UserCreateRequest.java | 4 +- .../web/client/model/UserUpdateRequest.java | 2 +- 34 files changed, 1084 insertions(+), 201 deletions(-) create mode 100644 src/main/java/org/bonitasoft/web/client/api/MaintenanceApi.java create mode 100644 src/main/java/org/bonitasoft/web/client/model/MaintenanceDetails.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7f13eac5..c8f6e3a3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -35,6 +35,7 @@ src/main/java/org/bonitasoft/web/client/api/GroupApi.java src/main/java/org/bonitasoft/web/client/api/HumanTaskApi.java src/main/java/org/bonitasoft/web/client/api/I18nlocaleApi.java src/main/java/org/bonitasoft/web/client/api/I18ntranslationApi.java +src/main/java/org/bonitasoft/web/client/api/MaintenanceApi.java src/main/java/org/bonitasoft/web/client/api/ManualTaskApi.java src/main/java/org/bonitasoft/web/client/api/MembershipApi.java src/main/java/org/bonitasoft/web/client/api/MessageApi.java @@ -77,7 +78,6 @@ src/main/java/org/bonitasoft/web/client/invoker/auth/ApiKeyAuth.java src/main/java/org/bonitasoft/web/client/invoker/auth/HttpBasicAuth.java src/main/java/org/bonitasoft/web/client/invoker/auth/HttpBearerAuth.java src/main/java/org/bonitasoft/web/client/model/AbstractArchivedTask.java -src/main/java/org/bonitasoft/web/client/model/AbstractArchivedTaskAllOf.java src/main/java/org/bonitasoft/web/client/model/AbstractTask.java src/main/java/org/bonitasoft/web/client/model/ActivationState.java src/main/java/org/bonitasoft/web/client/model/Activity.java @@ -101,17 +101,12 @@ src/main/java/org/bonitasoft/web/client/model/ApplicationUpdateRequest.java src/main/java/org/bonitasoft/web/client/model/ArchivedActivity.java src/main/java/org/bonitasoft/web/client/model/ArchivedActivityVariable.java src/main/java/org/bonitasoft/web/client/model/ArchivedConnectorInstance.java -src/main/java/org/bonitasoft/web/client/model/ArchivedConnectorInstanceAllOf.java src/main/java/org/bonitasoft/web/client/model/ArchivedFlowNode.java -src/main/java/org/bonitasoft/web/client/model/ArchivedFlowNodeAllOf.java src/main/java/org/bonitasoft/web/client/model/ArchivedHumanTask.java src/main/java/org/bonitasoft/web/client/model/ArchivedManualTask.java src/main/java/org/bonitasoft/web/client/model/ArchivedProcessInstance.java -src/main/java/org/bonitasoft/web/client/model/ArchivedProcessInstanceAllOf.java src/main/java/org/bonitasoft/web/client/model/ArchivedProcessInstanceComment.java -src/main/java/org/bonitasoft/web/client/model/ArchivedProcessInstanceCommentAllOf.java src/main/java/org/bonitasoft/web/client/model/ArchivedProcessInstanceDocument.java -src/main/java/org/bonitasoft/web/client/model/ArchivedProcessInstanceDocumentAllOf.java src/main/java/org/bonitasoft/web/client/model/ArchivedProcessInstanceVariable.java src/main/java/org/bonitasoft/web/client/model/ArchivedTask.java src/main/java/org/bonitasoft/web/client/model/ArchivedUserTask.java @@ -148,8 +143,8 @@ src/main/java/org/bonitasoft/web/client/model/GroupUpdateRequest.java src/main/java/org/bonitasoft/web/client/model/HumanTask.java src/main/java/org/bonitasoft/web/client/model/HumanTaskUpdateRequest.java src/main/java/org/bonitasoft/web/client/model/I18nlocale.java -src/main/java/org/bonitasoft/web/client/model/InstanciateProcess400Response.java src/main/java/org/bonitasoft/web/client/model/License.java +src/main/java/org/bonitasoft/web/client/model/MaintenanceDetails.java src/main/java/org/bonitasoft/web/client/model/ManualTask.java src/main/java/org/bonitasoft/web/client/model/ManualTaskCreateRequest.java src/main/java/org/bonitasoft/web/client/model/ManualTaskUpdateRequest.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index cd802a1e..3769235d 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.1.0 \ No newline at end of file diff --git a/.openapi-generator/openapi.yaml-default.sha256 b/.openapi-generator/openapi.yaml-default.sha256 index c150340a..6c59f501 100644 --- a/.openapi-generator/openapi.yaml-default.sha256 +++ b/.openapi-generator/openapi.yaml-default.sha256 @@ -1 +1 @@ -f8b3a3f443b8f33f1a6618f80a720eea1b28acd2057879fcbebe2c2eb501a318 \ No newline at end of file +c4829d4b7658a0e392e19cc140d26861630f6f4543d4c744f9d51c39a4138b5d \ No newline at end of file diff --git a/api/openapi.yaml b/api/openapi.yaml index 756fdf63..b37b1199 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -101,7 +101,7 @@ info: name: GPL-v2.0 url: http://www.gnu.org/licenses/gpl-2.0.txt title: Bonita API - version: 0.0.15 + version: 0.0.16 x-logo: url: images/bonitasoft-logo.svg backgroundColor: '#19465f' @@ -642,8 +642,11 @@ paths: - Application x-accepts: application/json post: + deprecated: true description: | Create a living applications + + Warning: as of 9.0.0, creating a living application using this API is deprecated. operationId: createApplication requestBody: content: @@ -693,7 +696,7 @@ paths: schema: $ref: '#/components/schemas/Error' description: Unexpected error. - summary: Create a living applications + summary: Create a living application tags: - Application x-codegen-request-body-name: body @@ -833,8 +836,11 @@ paths: - Application x-accepts: application/json put: + deprecated: true description: | Update a single application for the given ID + + Warning: as of 9.0.0, updating a living application using this API is deprecated. operationId: updateApplicationById parameters: - description: ID of application to return @@ -910,8 +916,11 @@ paths: x-accepts: application/json /services/application/import: post: + deprecated: true description: | Import a single application + + Warning: as of 9.0.0, importing a living application using this service is deprecated. operationId: importApplication requestBody: content: @@ -970,8 +979,11 @@ paths: x-accepts: application/json /portal/applicationsUpload: post: + deprecated: true description: | Upload application + + Warning: as of 9.0.0, uploading a living application using the portal is deprecated. operationId: uploadApplication requestBody: content: @@ -1153,8 +1165,11 @@ paths: - ApplicationMenu x-accepts: application/json post: + deprecated: true description: | Create an application menu item + + Warning: as of 9.0.0, creating an application menu item using this API is deprecated. operationId: createApplicationMenu requestBody: content: @@ -1348,7 +1363,11 @@ paths: - ApplicationMenu x-accepts: application/json put: - description: Update a application menu for the given ID + deprecated: true + description: | + Update an application menu for the given ID + + Warning: as of 9.0.0, updating an application menu item using this API is deprecated. operationId: updateApplicationMenuById parameters: - description: ID of the application menu to return @@ -1413,7 +1432,7 @@ paths: schema: $ref: '#/components/schemas/Error' description: Unexpected error. - summary: Update a application menu by ID + summary: Update an application menu by ID tags: - ApplicationMenu x-content-type: application/json @@ -1543,8 +1562,11 @@ paths: - ApplicationPage x-accepts: application/json post: + deprecated: true description: | Create an application page + + Warning: as of 9.0.0, creating an application page using this API is deprecated. operationId: createApplicationPage requestBody: content: @@ -2223,10 +2245,13 @@ paths: x-accepts: application/json /portal/bdmAccessControlUpload: post: + deprecated: true description: | ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control + + Warning: as of 9.0.0, uploading a BDM Access Control using the portal is deprecated. operationId: uploadBDMAccessControl requestBody: content: @@ -2285,10 +2310,13 @@ paths: x-accepts: application/json /services/bdmAccessControl/install: post: + deprecated: true description: | ![edition](https://img.shields.io/badge/edition-entreprise-blue) Import a BDM Access Control + + Warning: as of 9.0.0, importing a BDM Access Control using this service is deprecated. operationId: importBDMAccessControl requestBody: content: @@ -6295,8 +6323,11 @@ paths: - Actor x-accepts: application/json put: + deprecated: true description: | Update the Actor for the given ID + + Warning: as of 9.0.0, updating an Actor using this API is deprecated. operationId: updateActorById parameters: - description: ID of the Actor to return @@ -7999,9 +8030,12 @@ paths: - Process x-accepts: application/json post: + deprecated: true description: | Create the Process. A process resource is created using the content of a .bar file that has previously been uploaded, using the [processUpload servlet](#operation/uploadProcess), to get the process archive path. + + Warning: as of 9.0.0, creating a process using this API is deprecated. operationId: createProcess requestBody: content: @@ -8198,8 +8232,11 @@ paths: - Process x-accepts: application/json put: + deprecated: true description: | Update the Process for the given ID + + Warning: as of 9.0.0, updating a process using this API is deprecated. operationId: updateProcessById parameters: - description: ID of the Process to return @@ -8453,7 +8490,8 @@ paths: - "Expected input [ticket_description] is missing" - "Expected input [ticket_subject] is missing" schema: - $ref: '#/components/schemas/instanciateProcess_400_response' + allOf: + - $ref: '#/components/schemas/Error' description: Bad request. "401": content: @@ -8561,8 +8599,13 @@ paths: x-accepts: application/json /API/bpm/processConnector/{id}/{connectorImplId}/{connectorImplVersion}: put: + deprecated: true description: | + ![edition](https://img.shields.io/badge/edition-entreprise-blue) + Update the ProcessConnector for the given ID + + Warning: as of 9.0.0, updating a Process Connector using this API is deprecated. operationId: updateProcessConnectorByProcessId parameters: - description: ID of the process to update @@ -8914,10 +8957,13 @@ paths: - ProcessParameter x-accepts: application/json put: + deprecated: true description: | ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessParameter for the given ID + + Warning: as of 9.0.0, importing a Process parameter using this API is deprecated. operationId: updateProcessParameterById parameters: - description: ID of the process to get parameter from @@ -11345,10 +11391,13 @@ paths: x-accepts: application/json /API/form/mapping/{id}: put: + deprecated: true description: | ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the FormMapping for the given ID + + Warning: as of 9.0.0, updating a Form Mapping using this API is deprecated. operationId: updateFormMappingById parameters: - description: ID of the FormMapping to return @@ -14042,8 +14091,11 @@ paths: x-accepts: application/json /portal/processUpload: post: + deprecated: true description: | Upload a bar file + + Warning: as of 9.0.0, uploading a bar file using the portal is deprecated. operationId: uploadProcess requestBody: content: @@ -14102,8 +14154,11 @@ paths: x-accepts: application/json /portal/pageUpload: post: + deprecated: true description: | Upload Page + + Warning: as of 9.0.0, uploading a page using the portal is deprecated. operationId: uploadPage requestBody: content: @@ -14345,8 +14400,11 @@ paths: - Page x-accepts: application/json post: + deprecated: true description: | - Upload the page content using the `portal/pageUpload` . This returns a temporary file name that can be used as input for this operation. + Upload the page content using the `portal/pageUpload`. This returns a temporary file name that can be used as input for this operation. + + Warning: as of 9.0.0, creating a page using this API is deprecated. operationId: createPage requestBody: content: @@ -14536,8 +14594,11 @@ paths: - Page x-accepts: application/json put: + deprecated: true description: | Use the PUT method to update an existing custom page. To update a custom page, upload the new page content using the pageUpload servlet, which returns a temporary file name, and then call this API with the temporary file name. + + Warning: as of 9.0.0, updating a page using this API is deprecated. operationId: updatePageById parameters: - description: ID of the Page to return @@ -14732,8 +14793,13 @@ paths: - Profile x-accepts: application/json post: + deprecated: true description: | + ![edition](https://img.shields.io/badge/edition-entreprise-blue) + Create the Profile + + Warning: as of 9.0.0, creating profiles using this API is deprecated. operationId: createProfile requestBody: content: @@ -14923,8 +14989,13 @@ paths: - Profile x-accepts: application/json put: + deprecated: true description: | + ![edition](https://img.shields.io/badge/edition-entreprise-blue) + Update the Profile for the given ID + + Warning: as of 9.0.0, updating a profile using this API is deprecated. operationId: updateProfileById parameters: - description: ID of the Profile to return @@ -16037,8 +16108,11 @@ paths: x-accepts: application/json /API/system/tenant/{id}: get: + deprecated: true description: | Pause and resume tenant services in order to do maintenance on a tenant. + + Warning: since Bonita 9.0.0, /API/system/tenant API resource is deprecated. Use /API/system/maintenance instead to retrieve the maintenance state. operationId: getSystemTenant parameters: - description: ID of the tenant @@ -16105,8 +16179,11 @@ paths: - SystemTenant x-accepts: application/json put: + deprecated: true description: | Pause or resume the current tenant. + + Warning: since Bonita 9.0.0, /API/system/tenant API resource is deprecated. Use /API/system/maintenance instead to enable the maintenance mode (same behavior as pausing the tenant). operationId: updateSystemTenant parameters: - description: ID of the tenant @@ -16176,6 +16253,118 @@ paths: - SystemTenant x-content-type: application/json x-accepts: application/json + /API/system/maintenance: + get: + description: | + Returns maintenance details of the platform + operationId: getMaintenanceDetails + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MaintenanceDetails' + description: 'Success ' + "400": + content: + application/json: + example: + message: Bad request + schema: + $ref: '#/components/schemas/Error' + description: Bad request. + "401": + content: + application/json: + example: + message: Unauthorized + schema: + $ref: '#/components/schemas/Error' + description: Authorization information is missing or invalid. + "403": + content: + application/json: + example: + message: "Forbidden, The request contained valid data and was understood\ + \ by the server, but the server is refusing action." + schema: + $ref: '#/components/schemas/Error' + description: "Forbidden, The request contained valid data and was understood\ + \ by the server, but the server is refusing action." + "5XX": + content: + application/json: + example: + message: An unexpected error occured. + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error. + summary: Get the maintenance details + tags: + - Maintenance + x-codeSamples: + - lang: Shell + label: Curl + source: | + curl -b saved_cookies.txt -X GET --url 'http://localhost:8080/bonita/API/system/maintenance' + x-accepts: application/json + put: + description: | + Update maintenance details + operationId: updateMaintenanceDetails + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/MaintenanceDetails' + description: Maintenance details; One or all attributes can be updated + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/MaintenanceDetails' + description: 'Success ' + "400": + content: + application/json: + example: + message: Bad request + schema: + $ref: '#/components/schemas/Error' + description: Bad request. + "401": + content: + application/json: + example: + message: Unauthorized + schema: + $ref: '#/components/schemas/Error' + description: Authorization information is missing or invalid. + "403": + content: + application/json: + example: + message: "Forbidden, The request contained valid data and was understood\ + \ by the server, but the server is refusing action." + schema: + $ref: '#/components/schemas/Error' + description: "Forbidden, The request contained valid data and was understood\ + \ by the server, but the server is refusing action." + "5XX": + content: + application/json: + example: + message: An unexpected error occured. + schema: + $ref: '#/components/schemas/Error' + description: Unexpected error. + summary: Update the maintenance details + tags: + - Maintenance + x-content-type: application/json + x-accepts: application/json /API/system/license/unusedid: get: description: | @@ -16228,10 +16417,13 @@ paths: x-accepts: application/json /APIv2/service/install: post: + deprecated: true description: | ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload an application configuration file in the `bconf` format. + + Warning: as of 9.0.0, uploading an application configuration file using this API is deprecated. operationId: uploadApplicationConfiguration requestBody: content: @@ -16343,8 +16535,11 @@ paths: - BDM x-accepts: application/json post: + deprecated: true description: | Install a BDM + + Warning: as of 9.0.0, importing a BDM using this API is deprecated. operationId: installBDM requestBody: content: @@ -16515,8 +16710,13 @@ paths: x-accepts: application/json /portal/profilesUpload: post: + deprecated: true description: | + ![edition](https://img.shields.io/badge/edition-entreprise-blue) + Upload profiles + + Warning: as of 9.0.0, uploading profiles using the portal is deprecated. operationId: uploadprofiles requestBody: content: @@ -16575,8 +16775,11 @@ paths: x-accepts: application/json /services/profile/import: post: + deprecated: true description: | Import profiles + + Warning: as of 9.0.0, importing profiles using this service is deprecated. operationId: importProfiles requestBody: content: @@ -16883,6 +17086,8 @@ components: token: myapp displayName: My app description: My application description + themeId: "2" + layoutId: "17" properties: description: description: description of the application @@ -16905,6 +17110,12 @@ components: theme id for the application type: string + layoutId: + description: | + ![edition](https://img.shields.io/badge/edition-entreprise-blue) + + layout id for the application + type: string type: object FileUploadRequest: description: The file to upload @@ -17673,6 +17884,9 @@ components: type: object UpdateTaskByIdRequest: additionalProperties: true + example: + displayName: displayName + state: state properties: state: description: state of the Task (completed) @@ -17825,7 +18039,19 @@ components: AbstractArchivedTask: allOf: - $ref: '#/components/schemas/AbstractTask' - - $ref: '#/components/schemas/AbstractArchivedTask_allOf' + - description: An Archived task is a task that has been archived + properties: + sourceObjectId: + description: the original id of the task before it was archived + maxLength: 250 + pattern: "^[A-Za-z0-9\\_\\-\\.]{0,250}$" + type: string + archivedDate: + description: the date ('yyyy-MM-dd HH:mm:ss.SSS') when the current task + was assigned for example '2014-10-17 16:05:42.626' + pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$" + type: string + type: object ArchivedHumanTask: allOf: - $ref: '#/components/schemas/AbstractArchivedTask' @@ -18241,7 +18467,34 @@ components: ArchivedProcessInstanceDocument: allOf: - $ref: '#/components/schemas/ProcessInstanceDocument' - - $ref: '#/components/schemas/ArchivedProcessInstanceDocument_allOf' + - description: A document in an active case + example: + id: "1" + creationDate: 2014-10-09 16:39:52.472 + author: "1" + index: "0" + contentMimetype: text/plain + caseId: "1" + contentStorageId: "1" + isInternal: "true" + description: "" + name: myDoc + fileName: test1.txt + submittedBy: "1" + url: documentDownload?fileName=test1.txt&contentStorageId=1 + version: "1" + sourceObjectId: "1" + archivedDate: 2014-10-09 17:39:52.473 + properties: + sourceObjectId: + description: original document id + type: string + archivedDate: + description: the date ('yyyy-MM-dd HH:mm:ss.SSS') when the current task + was assigned for example '2014-10-17 16:05:42.626' + pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$" + type: string + type: object Actor: description: "" example: @@ -18465,7 +18718,37 @@ components: ArchivedProcessInstance: allOf: - $ref: '#/components/schemas/ProcessInstance' - - $ref: '#/components/schemas/ArchivedProcessInstance_allOf' + - description: A completed instance of a process. + example: + id: 9 + end_date: 2014-10-22 10:57:00.299 + startedBySubstitute: "4" + sourceObjectId: "3" + start: 2014-10-22 10:56:53.415 + state: completed + rootCaseId: "3" + started_by: "4" + archivedDate: 2014-10-22 10:57:00.299 + processDefinitionId: "6054482369194211518" + last_update_date": 2014-10-22 10:57:00.299 + searchIndex1Label: case9SearchIndex1Label + searchIndex2Label: case9SearchIndex2Label + searchIndex3Label: case9SearchIndex3Label + searchIndex4Label: case9SearchIndex4Label + searchIndex5Label: case9SearchIndex5Label + searchIndex1Value: case9SearchIndex1Value + searchIndex2Value: case9SearchIndex2Value + searchIndex3Value: case9SearchIndex3Value + searchIndex4Value: case9SearchIndex4Value + searchIndex5Value: case9SearchIndex5Value + properties: + sourceObjectId: + description: the id of the process instance before it was archived + type: string + archivedDate: + description: the date set when the process instance was archived + type: string + type: object ProcessInstanceInfo: description: "Retrieves information about a process instances. It returns counters\ \ for each flow node in the process instances, showing the number of flow\ @@ -18537,7 +18820,19 @@ components: ArchivedProcessInstanceComment: allOf: - $ref: '#/components/schemas/ProcessInstanceComment' - - $ref: '#/components/schemas/ArchivedProcessInstanceComment_allOf' + - description: Information about the comment of an archived process instances. + example: + id: 20005 + content: Need to review the last inputs of this case + processInstanceId: 1 + postDate: 2016-06-16 14:51:33.053 + archivedDate: 2016-06-17 10:18:24.723 + userId: 30 + properties: + archivedDate: + description: the date set when the process instance comment was archived + type: string + type: object ActivationState: description: the state of the process definition (ENABLED or DISABLED) enum: @@ -19225,7 +19520,15 @@ components: ArchivedConnectorInstance: allOf: - $ref: '#/components/schemas/ConnectorInstance' - - $ref: '#/components/schemas/ArchivedConnectorInstance_allOf' + - description: Information about archived connector instances attached to an + archived process or an archived flow node. + properties: + archivedDate: + description: the date ('yyyy-MM-dd HH:mm:ss.SSS') when the current task + was assigned for example '2014-10-17 16:05:42.626' + pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$" + type: string + type: object FlowNode: description: "A flow node (gateway, event, or task) in an open instance of a\ \ process." @@ -19341,7 +19644,18 @@ components: ArchivedFlowNode: allOf: - $ref: '#/components/schemas/FlowNode' - - $ref: '#/components/schemas/ArchivedFlowNode_allOf' + - description: A flow node (gateway or event or task) in an archived instance + of a process. + properties: + sourceObjectId: + description: the original id of the flowNode before it was archived + type: string + archivedDate: + description: the date ('yyyy-MM-dd HH:mm:ss.SSS') when the current task + was assigned for example '2014-10-17 16:05:42.626' + pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$" + type: string + type: object TimerEventTrigger: description: BPM timer event triggers example: @@ -20627,6 +20941,25 @@ components: description: wether the system tenant should be paused or not type: string type: object + MaintenanceDetails: + example: + maintenanceState: DISABLED + maintenanceMessage: maintenance msg + maintenanceMessageActive: true + properties: + maintenanceState: + description: maintenance state + enum: + - ENABLED + - DISABLED + type: string + maintenanceMessage: + description: maintenance message + type: string + maintenanceMessageActive: + description: is maintenance message active + type: boolean + type: object License: description: Bonita license example: @@ -20700,9 +21033,6 @@ components: bdmAccessControlUpload: description: The temporary name of the previously uploaded file to install type: string - instanciateProcess_400_response: - allOf: - - $ref: '#/components/schemas/Error' platformLogin_request: properties: username: @@ -20742,61 +21072,6 @@ components: importPolicy: description: Import policy type: string - AbstractArchivedTask_allOf: - description: An Archived task is a task that has been archived - properties: - sourceObjectId: - description: the original id of the task before it was archived - maxLength: 250 - pattern: "^[A-Za-z0-9\\_\\-\\.]{0,250}$" - type: string - archivedDate: - description: the date ('yyyy-MM-dd HH:mm:ss.SSS') when the current task - was assigned for example '2014-10-17 16:05:42.626' - pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$" - type: string - type: object - example: null - ArchivedProcessInstanceDocument_allOf: - description: A document in an active case - example: "{\"id\":\"1\",\"creationDate\":\"2014-10-09 16:39:52.472\",\"author\"\ - :\"1\",\"index\":\"0\",\"contentMimetype\":\"text/plain\",\"caseId\":\"1\"\ - ,\"contentStorageId\":\"1\",\"isInternal\":\"true\",\"description\":\"\",\"\ - name\":\"myDoc\",\"fileName\":\"test1.txt\",\"submittedBy\":\"1\",\"url\"\ - :\"documentDownload?fileName=test1.txt&contentStorageId=1\",\"version\":\"\ - 1\",\"sourceObjectId\":\"1\",\"archivedDate\":\"2014-10-09 17:39:52.473\"}" - properties: - sourceObjectId: - description: original document id - type: string - archivedDate: - description: the date ('yyyy-MM-dd HH:mm:ss.SSS') when the current task - was assigned for example '2014-10-17 16:05:42.626' - pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$" - type: string - type: object - ArchivedProcessInstance_allOf: - description: A completed instance of a process. - example: "{\"id\":9,\"end_date\":\"2014-10-22 10:57:00.299\",\"startedBySubstitute\"\ - :\"4\",\"sourceObjectId\":\"3\",\"start\":\"2014-10-22 10:56:53.415\",\"state\"\ - :\"completed\",\"rootCaseId\":\"3\",\"started_by\":\"4\",\"archivedDate\"\ - :\"2014-10-22 10:57:00.299\",\"processDefinitionId\":\"6054482369194211518\"\ - ,\"last_update_date\\\"\":\"2014-10-22 10:57:00.299\",\"searchIndex1Label\"\ - :\"case9SearchIndex1Label\",\"searchIndex2Label\":\"case9SearchIndex2Label\"\ - ,\"searchIndex3Label\":\"case9SearchIndex3Label\",\"searchIndex4Label\":\"\ - case9SearchIndex4Label\",\"searchIndex5Label\":\"case9SearchIndex5Label\"\ - ,\"searchIndex1Value\":\"case9SearchIndex1Value\",\"searchIndex2Value\":\"\ - case9SearchIndex2Value\",\"searchIndex3Value\":\"case9SearchIndex3Value\"\ - ,\"searchIndex4Value\":\"case9SearchIndex4Value\",\"searchIndex5Value\":\"\ - case9SearchIndex5Value\"}" - properties: - sourceObjectId: - description: the id of the process instance before it was archived - type: string - archivedDate: - description: the date set when the process instance was archived - type: string - type: object ProcessInstanceInfo_flowNodeStatesCounters_value: properties: completed: @@ -20840,16 +21115,6 @@ components: format: int64 type: integer type: object - ArchivedProcessInstanceComment_allOf: - description: Information about the comment of an archived process instances. - example: "{\"id\":20005,\"content\":\"Need to review the last inputs of this\ - \ case\",\"processInstanceId\":1,\"postDate\":\"2016-06-16 14:51:33.053\"\ - ,\"archivedDate\":\"2016-06-17 10:18:24.723\",\"userId\":30}" - properties: - archivedDate: - description: the date set when the process instance comment was archived - type: string - type: object ProcessInfo_flowNodeStatesCounters_value: properties: ready: @@ -20877,31 +21142,6 @@ components: format: int64 type: integer type: object - ArchivedConnectorInstance_allOf: - description: Information about archived connector instances attached to an archived - process or an archived flow node. - properties: - archivedDate: - description: the date ('yyyy-MM-dd HH:mm:ss.SSS') when the current task - was assigned for example '2014-10-17 16:05:42.626' - pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$" - type: string - type: object - example: null - ArchivedFlowNode_allOf: - description: A flow node (gateway or event or task) in an archived instance - of a process. - properties: - sourceObjectId: - description: the original id of the flowNode before it was archived - type: string - archivedDate: - description: the date ('yyyy-MM-dd HH:mm:ss.SSS') when the current task - was assigned for example '2014-10-17 16:05:42.626' - pattern: "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1]) (2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$" - type: string - type: object - example: null Message_messageContent_value: example: type: java.lang.String @@ -21031,6 +21271,7 @@ x-tagGroups: - I18nlocale - I18ntranslation - Session + - Maintenance - SystemTenant - name: Other tags: diff --git a/pom.xml b/pom.xml index 6fc5da04..8d93a92f 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.bonitasoft.web bonita-java-client - 1.0.2-SNAPSHOT + 2.0.0-SNAPSHOT jar bonita-java-client Java client for Bonita REST API @@ -47,7 +47,7 @@ UTF-8 UTF-8 - 0.0.15 + 0.0.16 1.6.11 2.1.1 3.0.2 @@ -78,7 +78,7 @@ 3.3.0 3.1.0 4.9.10 - 6.6.0 + 7.1.0 2.38.0 2.1.1 3.0.19 diff --git a/src/main/java/org/bonitasoft/web/client/api/ActorApi.java b/src/main/java/org/bonitasoft/web/client/api/ActorApi.java index d8025291..445ea478 100644 --- a/src/main/java/org/bonitasoft/web/client/api/ActorApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/ActorApi.java @@ -170,11 +170,13 @@ public SearchActorsQueryParams o(final String value) { /** * Update the Actor by ID - * Update the Actor for the given ID + * Update the Actor for the given ID Warning: as of 9.0.0, updating an Actor using this API is deprecated. * * @param id ID of the Actor to return (required) * @param actorUpdateRequest Fields that can be upated are `displayName` and `description` (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/bpm/actor/{id}") @Headers({ "Content-Type: application/json", @@ -185,11 +187,13 @@ public SearchActorsQueryParams o(final String value) { /** * Update the Actor by ID * Similar to updateActorById but it also returns the http response headers . - * Update the Actor for the given ID + * Update the Actor for the given ID Warning: as of 9.0.0, updating an Actor using this API is deprecated. * * @param id ID of the Actor to return (required) * @param actorUpdateRequest Fields that can be upated are `displayName` and `description` (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/bpm/actor/{id}") @Headers({ "Content-Type: application/json", diff --git a/src/main/java/org/bonitasoft/web/client/api/ApplicationMenuApi.java b/src/main/java/org/bonitasoft/web/client/api/ApplicationMenuApi.java index f14274eb..b3e86dcd 100644 --- a/src/main/java/org/bonitasoft/web/client/api/ApplicationMenuApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/ApplicationMenuApi.java @@ -33,11 +33,13 @@ public interface ApplicationMenuApi extends ApiClient.Api { /** * New application menu item - * Create an application menu item + * Create an application menu item Warning: as of 9.0.0, creating an application menu item using this API is deprecated. * * @param applicationMenuCreateRequest A partial representation of an application menu in JSON (optional) * @return ApplicationMenu + * @deprecated */ + @Deprecated @RequestLine("POST /API/living/application-menu") @Headers({ "Content-Type: application/json", @@ -48,11 +50,13 @@ public interface ApplicationMenuApi extends ApiClient.Api { /** * New application menu item * Similar to createApplicationMenu but it also returns the http response headers . - * Create an application menu item + * Create an application menu item Warning: as of 9.0.0, creating an application menu item using this API is deprecated. * * @param applicationMenuCreateRequest A partial representation of an application menu in JSON (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /API/living/application-menu") @Headers({ "Content-Type: application/json", @@ -244,12 +248,14 @@ public SearchApplicationMenusQueryParams s(final String value) { } /** - * Update a application menu by ID - * Update a application menu for the given ID + * Update an application menu by ID + * Update an application menu for the given ID Warning: as of 9.0.0, updating an application menu item using this API is deprecated. * * @param id ID of the application menu to return (required) * @param applicationMenuUpdateRequest Partial application menu description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/living/application-menu/{id}") @Headers({ "Content-Type: application/json", @@ -258,13 +264,15 @@ public SearchApplicationMenusQueryParams s(final String value) { void updateApplicationMenuById(@Param("id") String id, ApplicationMenuUpdateRequest applicationMenuUpdateRequest); /** - * Update a application menu by ID + * Update an application menu by ID * Similar to updateApplicationMenuById but it also returns the http response headers . - * Update a application menu for the given ID + * Update an application menu for the given ID Warning: as of 9.0.0, updating an application menu item using this API is deprecated. * * @param id ID of the application menu to return (required) * @param applicationMenuUpdateRequest Partial application menu description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/living/application-menu/{id}") @Headers({ "Content-Type: application/json", diff --git a/src/main/java/org/bonitasoft/web/client/api/ApplicationPageApi.java b/src/main/java/org/bonitasoft/web/client/api/ApplicationPageApi.java index 85ce3df2..887285fb 100644 --- a/src/main/java/org/bonitasoft/web/client/api/ApplicationPageApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/ApplicationPageApi.java @@ -32,11 +32,13 @@ public interface ApplicationPageApi extends ApiClient.Api { /** * Create an application page - * Create an application page + * Create an application page Warning: as of 9.0.0, creating an application page using this API is deprecated. * * @param body Partial application page description (required) * @return ApplicationPage + * @deprecated */ + @Deprecated @RequestLine("POST /API/living/application-page") @Headers({ "Content-Type: application/json", @@ -47,11 +49,13 @@ public interface ApplicationPageApi extends ApiClient.Api { /** * Create an application page * Similar to createApplicationPage but it also returns the http response headers . - * Create an application page + * Create an application page Warning: as of 9.0.0, creating an application page using this API is deprecated. * * @param body Partial application page description (required) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /API/living/application-page") @Headers({ "Content-Type: application/json", diff --git a/src/main/java/org/bonitasoft/web/client/api/BdmAccessControlApi.java b/src/main/java/org/bonitasoft/web/client/api/BdmAccessControlApi.java index 73674e75..b46e5162 100644 --- a/src/main/java/org/bonitasoft/web/client/api/BdmAccessControlApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/BdmAccessControlApi.java @@ -75,10 +75,13 @@ public interface BdmAccessControlApi extends ApiClient.Api { /** * Import a BDM Access Control - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Import a BDM Access Control + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Import a BDM Access Control Warning: as of 9.0.0, importing a BDM Access Control using this + * service is deprecated. * * @param bdmAccessControlUpload The temporary name of the previously uploaded file to install (optional) + * @deprecated */ + @Deprecated @RequestLine("POST /services/bdmAccessControl/install") @Headers({ "Content-Type: application/x-www-form-urlencoded", @@ -89,10 +92,13 @@ public interface BdmAccessControlApi extends ApiClient.Api { /** * Import a BDM Access Control * Similar to importBDMAccessControl but it also returns the http response headers . - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Import a BDM Access Control + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Import a BDM Access Control Warning: as of 9.0.0, importing a BDM Access Control using this + * service is deprecated. * * @param bdmAccessControlUpload The temporary name of the previously uploaded file to install (optional) + * @deprecated */ + @Deprecated @RequestLine("POST /services/bdmAccessControl/install") @Headers({ "Content-Type: application/x-www-form-urlencoded", @@ -103,11 +109,14 @@ ApiResponse importBDMAccessControlWithHttpInfo( /** * Upload a BDM Access Control - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control Warning: as of 9.0.0, uploading a BDM Access Control using the + * portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/bdmAccessControlUpload") @Headers({ "Content-Type: multipart/form-data", @@ -118,11 +127,14 @@ ApiResponse importBDMAccessControlWithHttpInfo( /** * Upload a BDM Access Control * Similar to uploadBDMAccessControl but it also returns the http response headers . - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control Warning: as of 9.0.0, uploading a BDM Access Control using the + * portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/bdmAccessControlUpload") @Headers({ "Content-Type: multipart/form-data", diff --git a/src/main/java/org/bonitasoft/web/client/api/BdmApi.java b/src/main/java/org/bonitasoft/web/client/api/BdmApi.java index 8b998eaa..678ffc84 100644 --- a/src/main/java/org/bonitasoft/web/client/api/BdmApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/BdmApi.java @@ -59,10 +59,12 @@ public interface BdmApi extends ApiClient.Api { /** * Install a BDM - * Install a BDM + * Install a BDM Warning: as of 9.0.0, importing a BDM using this API is deprecated. * * @param bdMInstallRequest (optional) + * @deprecated */ + @Deprecated @RequestLine("POST /API/tenant/bdm") @Headers({ "Content-Type: application/json", @@ -73,10 +75,12 @@ public interface BdmApi extends ApiClient.Api { /** * Install a BDM * Similar to installBDM but it also returns the http response headers . - * Install a BDM + * Install a BDM Warning: as of 9.0.0, importing a BDM using this API is deprecated. * * @param bdMInstallRequest (optional) + * @deprecated */ + @Deprecated @RequestLine("POST /API/tenant/bdm") @Headers({ "Content-Type: application/json", diff --git a/src/main/java/org/bonitasoft/web/client/api/FormMappingApi.java b/src/main/java/org/bonitasoft/web/client/api/FormMappingApi.java index e0d5b758..afad3cd2 100644 --- a/src/main/java/org/bonitasoft/web/client/api/FormMappingApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/FormMappingApi.java @@ -153,12 +153,15 @@ public SearchFormMappingsQueryParams s(final String value) { /** * Update the FormMapping by ID - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the FormMapping for the given ID + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the FormMapping for the given ID Warning: as of 9.0.0, updating a Form Mapping using + * this API is deprecated. * * @param id ID of the FormMapping to return (required) * @param formMappingUpdateRequest Representation of the form mapping attribute to update - {'pageId': (long)} or {'url': (string)} or {} to set * the mapping type to NONE (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/form/mapping/{id}") @Headers({ "Content-Type: application/json", @@ -169,12 +172,15 @@ public SearchFormMappingsQueryParams s(final String value) { /** * Update the FormMapping by ID * Similar to updateFormMappingById but it also returns the http response headers . - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the FormMapping for the given ID + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the FormMapping for the given ID Warning: as of 9.0.0, updating a Form Mapping using + * this API is deprecated. * * @param id ID of the FormMapping to return (required) * @param formMappingUpdateRequest Representation of the form mapping attribute to update - {'pageId': (long)} or {'url': (string)} or {} to set * the mapping type to NONE (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/form/mapping/{id}") @Headers({ "Content-Type: application/json", diff --git a/src/main/java/org/bonitasoft/web/client/api/MaintenanceApi.java b/src/main/java/org/bonitasoft/web/client/api/MaintenanceApi.java new file mode 100644 index 00000000..ff7eb7f9 --- /dev/null +++ b/src/main/java/org/bonitasoft/web/client/api/MaintenanceApi.java @@ -0,0 +1,82 @@ +/** + * Copyright (C) 2023 BonitaSoft S.A. + * BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2.0 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.bonitasoft.web.client.api; + +import org.bonitasoft.web.client.invoker.ApiClient; +import org.bonitasoft.web.client.model.ApiResponse; +import org.bonitasoft.web.client.model.MaintenanceDetails; + +import feign.*; + +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public interface MaintenanceApi extends ApiClient.Api { + + /** + * Get the maintenance details + * Returns maintenance details of the platform + * + * @return MaintenanceDetails + */ + @RequestLine("GET /API/system/maintenance") + @Headers({ + "Accept: application/json", + }) + MaintenanceDetails getMaintenanceDetails(); + + /** + * Get the maintenance details + * Similar to getMaintenanceDetails but it also returns the http response headers . + * Returns maintenance details of the platform + * + * @return A ApiResponse that wraps the response boyd and the http headers. + */ + @RequestLine("GET /API/system/maintenance") + @Headers({ + "Accept: application/json", + }) + ApiResponse getMaintenanceDetailsWithHttpInfo(); + + /** + * Update the maintenance details + * Update maintenance details + * + * @param maintenanceDetails Maintenance details; One or all attributes can be updated (required) + * @return MaintenanceDetails + */ + @RequestLine("PUT /API/system/maintenance") + @Headers({ + "Content-Type: application/json", + "Accept: application/json", + }) + MaintenanceDetails updateMaintenanceDetails(MaintenanceDetails maintenanceDetails); + + /** + * Update the maintenance details + * Similar to updateMaintenanceDetails but it also returns the http response headers . + * Update maintenance details + * + * @param maintenanceDetails Maintenance details; One or all attributes can be updated (required) + * @return A ApiResponse that wraps the response boyd and the http headers. + */ + @RequestLine("PUT /API/system/maintenance") + @Headers({ + "Content-Type: application/json", + "Accept: application/json", + }) + ApiResponse updateMaintenanceDetailsWithHttpInfo(MaintenanceDetails maintenanceDetails); + +} diff --git a/src/main/java/org/bonitasoft/web/client/api/PageApi.java b/src/main/java/org/bonitasoft/web/client/api/PageApi.java index ea5beb2c..333bd3f2 100644 --- a/src/main/java/org/bonitasoft/web/client/api/PageApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/PageApi.java @@ -34,11 +34,14 @@ public interface PageApi extends ApiClient.Api { /** * Create the Page - * Upload the page content using the `portal/pageUpload` . This returns a temporary file name that can be used as input for this operation. + * Upload the page content using the `portal/pageUpload`. This returns a temporary file name that can be used as input for this operation. Warning: as + * of 9.0.0, creating a page using this API is deprecated. * * @param body Zip name as named in the temp folder after upload (required) * @return Page + * @deprecated */ + @Deprecated @RequestLine("POST /API/portal/page") @Headers({ "Content-Type: application/json", @@ -49,11 +52,14 @@ public interface PageApi extends ApiClient.Api { /** * Create the Page * Similar to createPage but it also returns the http response headers . - * Upload the page content using the `portal/pageUpload` . This returns a temporary file name that can be used as input for this operation. + * Upload the page content using the `portal/pageUpload`. This returns a temporary file name that can be used as input for this operation. Warning: as + * of 9.0.0, creating a page using this API is deprecated. * * @param body Zip name as named in the temp folder after upload (required) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /API/portal/page") @Headers({ "Content-Type: application/json", @@ -240,11 +246,13 @@ public SearchPagesQueryParams s(final String value) { /** * Update the Page by ID * Use the PUT method to update an existing custom page. To update a custom page, upload the new page content using the pageUpload servlet, which returns a - * temporary file name, and then call this API with the temporary file name. + * temporary file name, and then call this API with the temporary file name. Warning: as of 9.0.0, updating a page using this API is deprecated. * * @param id ID of the Page to return (required) * @param pageUpdateRequest Partial Page description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/portal/page/{id}") @Headers({ "Content-Type: application/json", @@ -256,11 +264,13 @@ public SearchPagesQueryParams s(final String value) { * Update the Page by ID * Similar to updatePageById but it also returns the http response headers . * Use the PUT method to update an existing custom page. To update a custom page, upload the new page content using the pageUpload servlet, which returns a - * temporary file name, and then call this API with the temporary file name. + * temporary file name, and then call this API with the temporary file name. Warning: as of 9.0.0, updating a page using this API is deprecated. * * @param id ID of the Page to return (required) * @param pageUpdateRequest Partial Page description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/portal/page/{id}") @Headers({ "Content-Type: application/json", @@ -270,11 +280,13 @@ public SearchPagesQueryParams s(final String value) { /** * Upload a Page - * Upload Page + * Upload Page Warning: as of 9.0.0, uploading a page using the portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/pageUpload") @Headers({ "Content-Type: multipart/form-data", @@ -285,11 +297,13 @@ public SearchPagesQueryParams s(final String value) { /** * Upload a Page * Similar to uploadPage but it also returns the http response headers . - * Upload Page + * Upload Page Warning: as of 9.0.0, uploading a page using the portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/pageUpload") @Headers({ "Content-Type: multipart/form-data", diff --git a/src/main/java/org/bonitasoft/web/client/api/ProcessApi.java b/src/main/java/org/bonitasoft/web/client/api/ProcessApi.java index 95030d4d..ef740398 100644 --- a/src/main/java/org/bonitasoft/web/client/api/ProcessApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/ProcessApi.java @@ -40,11 +40,13 @@ public interface ProcessApi extends ApiClient.Api { /** * Create the Process * Create the Process. A process resource is created using the content of a .bar file that has previously been uploaded, using the [processUpload - * servlet](#operation/uploadProcess), to get the process archive path. + * servlet](#operation/uploadProcess), to get the process archive path. Warning: as of 9.0.0, creating a process using this API is deprecated. * * @param body Partial Process description (required) * @return ProcessDefinition + * @deprecated */ + @Deprecated @RequestLine("POST /API/bpm/process") @Headers({ "Content-Type: application/json", @@ -56,11 +58,13 @@ public interface ProcessApi extends ApiClient.Api { * Create the Process * Similar to createProcess but it also returns the http response headers . * Create the Process. A process resource is created using the content of a .bar file that has previously been uploaded, using the [processUpload - * servlet](#operation/uploadProcess), to get the process archive path. + * servlet](#operation/uploadProcess), to get the process archive path. Warning: as of 9.0.0, creating a process using this API is deprecated. * * @param body Partial Process description (required) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /API/bpm/process") @Headers({ "Content-Type: application/json", @@ -384,11 +388,13 @@ public SearchProcessesQueryParams s(final String value) { /** * Update the Process by ID - * Update the Process for the given ID + * Update the Process for the given ID Warning: as of 9.0.0, updating a process using this API is deprecated. * * @param id ID of the Process to return (required) * @param processUpdateRequest Partial Process description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/bpm/process/{id}") @Headers({ "Content-Type: application/json", @@ -399,11 +405,13 @@ public SearchProcessesQueryParams s(final String value) { /** * Update the Process by ID * Similar to updateProcessById but it also returns the http response headers . - * Update the Process for the given ID + * Update the Process for the given ID Warning: as of 9.0.0, updating a process using this API is deprecated. * * @param id ID of the Process to return (required) * @param processUpdateRequest Partial Process description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/bpm/process/{id}") @Headers({ "Content-Type: application/json", @@ -413,13 +421,16 @@ public SearchProcessesQueryParams s(final String value) { /** * Update the Process Connector by Process ID - * Update the ProcessConnector for the given ID + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessConnector for the given ID Warning: as of 9.0.0, updating a Process + * Connector using this API is deprecated. * * @param id ID of the process to update (required) * @param connectorImplId ID of the Process Connector implementation to update (required) * @param connectorImplVersion Version of the Process Connector implementation to update (required) * @param updateProcessConnectorByProcessIdRequest Partial ProcessConnector description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/bpm/processConnector/{id}/{connectorImplId}/{connectorImplVersion}") @Headers({ "Content-Type: application/json", @@ -432,13 +443,16 @@ void updateProcessConnectorByProcessId(@Param("id") String id, @Param("connector /** * Update the Process Connector by Process ID * Similar to updateProcessConnectorByProcessId but it also returns the http response headers . - * Update the ProcessConnector for the given ID + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessConnector for the given ID Warning: as of 9.0.0, updating a Process + * Connector using this API is deprecated. * * @param id ID of the process to update (required) * @param connectorImplId ID of the Process Connector implementation to update (required) * @param connectorImplVersion Version of the Process Connector implementation to update (required) * @param updateProcessConnectorByProcessIdRequest Partial ProcessConnector description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/bpm/processConnector/{id}/{connectorImplId}/{connectorImplVersion}") @Headers({ "Content-Type: application/json", @@ -451,11 +465,13 @@ ApiResponse updateProcessConnectorByProcessIdWithHttpInfo(@Param("id") Str /** * Upload a bar file - * Upload a bar file + * Upload a bar file Warning: as of 9.0.0, uploading a bar file using the portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/processUpload") @Headers({ "Content-Type: multipart/form-data", @@ -466,11 +482,13 @@ ApiResponse updateProcessConnectorByProcessIdWithHttpInfo(@Param("id") Str /** * Upload a bar file * Similar to uploadProcess but it also returns the http response headers . - * Upload a bar file + * Upload a bar file Warning: as of 9.0.0, uploading a bar file using the portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/processUpload") @Headers({ "Content-Type: multipart/form-data", diff --git a/src/main/java/org/bonitasoft/web/client/api/ProcessParameterApi.java b/src/main/java/org/bonitasoft/web/client/api/ProcessParameterApi.java index ae079366..eb58175b 100644 --- a/src/main/java/org/bonitasoft/web/client/api/ProcessParameterApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/ProcessParameterApi.java @@ -184,13 +184,16 @@ public SearchProcessParametersQueryParams s(final String value) { /** * Update the ProcessParameter by ID - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessParameter for the given ID + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessParameter for the given ID Warning: as of 9.0.0, importing a Process + * parameter using this API is deprecated. * * @param id ID of the process to get parameter from (required) * @param name Name of the process parameter to return (required) * @param processParameterUpdateRequest You can update only a process parameter value using the API. If you specify values for other fields in the update * request, they are ignored. (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/bpm/processParameter/{id}/{name}") @Headers({ "Content-Type: application/json", @@ -202,13 +205,16 @@ void updateProcessParameterById(@Param("id") String id, @Param("name") String na /** * Update the ProcessParameter by ID * Similar to updateProcessParameterById but it also returns the http response headers . - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessParameter for the given ID + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the ProcessParameter for the given ID Warning: as of 9.0.0, importing a Process + * parameter using this API is deprecated. * * @param id ID of the process to get parameter from (required) * @param name Name of the process parameter to return (required) * @param processParameterUpdateRequest You can update only a process parameter value using the API. If you specify values for other fields in the update * request, they are ignored. (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/bpm/processParameter/{id}/{name}") @Headers({ "Content-Type: application/json", diff --git a/src/main/java/org/bonitasoft/web/client/api/ProfileApi.java b/src/main/java/org/bonitasoft/web/client/api/ProfileApi.java index 19d7a8da..29065b85 100644 --- a/src/main/java/org/bonitasoft/web/client/api/ProfileApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/ProfileApi.java @@ -34,11 +34,13 @@ public interface ProfileApi extends ApiClient.Api { /** * Create the Profile - * Create the Profile + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Create the Profile Warning: as of 9.0.0, creating profiles using this API is deprecated. * * @param body Partial Profile description (required) * @return Profile + * @deprecated */ + @Deprecated @RequestLine("POST /API/portal/profile") @Headers({ "Content-Type: application/json", @@ -49,11 +51,13 @@ public interface ProfileApi extends ApiClient.Api { /** * Create the Profile * Similar to createProfile but it also returns the http response headers . - * Create the Profile + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Create the Profile Warning: as of 9.0.0, creating profiles using this API is deprecated. * * @param body Partial Profile description (required) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /API/portal/profile") @Headers({ "Content-Type: application/json", @@ -115,11 +119,13 @@ public interface ProfileApi extends ApiClient.Api { /** * Import profiles - * Import profiles + * Import profiles Warning: as of 9.0.0, importing profiles using this service is deprecated. * * @param profilesDataUpload Uploaded file (optional) * @param importPolicy Import policy (optional) + * @deprecated */ + @Deprecated @RequestLine("POST /services/profile/import") @Headers({ "Content-Type: application/x-www-form-urlencoded", @@ -131,11 +137,13 @@ void importProfiles(@Param("profilesDataUpload") String profilesDataUpload, /** * Import profiles * Similar to importProfiles but it also returns the http response headers . - * Import profiles + * Import profiles Warning: as of 9.0.0, importing profiles using this service is deprecated. * * @param profilesDataUpload Uploaded file (optional) * @param importPolicy Import policy (optional) + * @deprecated */ + @Deprecated @RequestLine("POST /services/profile/import") @Headers({ "Content-Type: application/x-www-form-urlencoded", @@ -271,11 +279,14 @@ public SearchProfilesQueryParams o(final String value) { /** * Update the Profile by ID - * Update the Profile for the given ID + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the Profile for the given ID Warning: as of 9.0.0, updating a profile using this API + * is deprecated. * * @param id ID of the Profile to return (required) * @param profileUpdateRequest Partial Profile description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/portal/profile/{id}") @Headers({ "Content-Type: application/json", @@ -286,11 +297,14 @@ public SearchProfilesQueryParams o(final String value) { /** * Update the Profile by ID * Similar to updateProfileById but it also returns the http response headers . - * Update the Profile for the given ID + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Update the Profile for the given ID Warning: as of 9.0.0, updating a profile using this API + * is deprecated. * * @param id ID of the Profile to return (required) * @param profileUpdateRequest Partial Profile description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/portal/profile/{id}") @Headers({ "Content-Type: application/json", @@ -300,11 +314,13 @@ public SearchProfilesQueryParams o(final String value) { /** * Upload profiles - * Upload profiles + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload profiles Warning: as of 9.0.0, uploading profiles using the portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/profilesUpload") @Headers({ "Content-Type: multipart/form-data", @@ -315,11 +331,13 @@ public SearchProfilesQueryParams o(final String value) { /** * Upload profiles * Similar to uploadprofiles but it also returns the http response headers . - * Upload profiles + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload profiles Warning: as of 9.0.0, uploading profiles using the portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/profilesUpload") @Headers({ "Content-Type: multipart/form-data", diff --git a/src/main/java/org/bonitasoft/web/client/api/SystemTenantApi.java b/src/main/java/org/bonitasoft/web/client/api/SystemTenantApi.java index 3e7e9e83..6fe29e7e 100644 --- a/src/main/java/org/bonitasoft/web/client/api/SystemTenantApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/SystemTenantApi.java @@ -28,11 +28,14 @@ public interface SystemTenantApi extends ApiClient.Api { /** * Get the current Tenant - * Pause and resume tenant services in order to do maintenance on a tenant. + * Pause and resume tenant services in order to do maintenance on a tenant. Warning: since Bonita 9.0.0, /API/system/tenant API resource is deprecated. Use + * /API/system/maintenance instead to retrieve the maintenance state. * * @param id ID of the tenant (required) * @return SystemTenant + * @deprecated */ + @Deprecated @RequestLine("GET /API/system/tenant/{id}") @Headers({ "Accept: application/json", @@ -42,11 +45,14 @@ public interface SystemTenantApi extends ApiClient.Api { /** * Get the current Tenant * Similar to getSystemTenant but it also returns the http response headers . - * Pause and resume tenant services in order to do maintenance on a tenant. + * Pause and resume tenant services in order to do maintenance on a tenant. Warning: since Bonita 9.0.0, /API/system/tenant API resource is deprecated. Use + * /API/system/maintenance instead to retrieve the maintenance state. * * @param id ID of the tenant (required) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("GET /API/system/tenant/{id}") @Headers({ "Accept: application/json", @@ -55,11 +61,14 @@ public interface SystemTenantApi extends ApiClient.Api { /** * Update the current Tenant - * Pause or resume the current tenant. + * Pause or resume the current tenant. Warning: since Bonita 9.0.0, /API/system/tenant API resource is deprecated. Use /API/system/maintenance instead to enable + * the maintenance mode (same behavior as pausing the tenant). * * @param id ID of the tenant (required) * @param tenantPauseRequest Partial SystemTenant description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/system/tenant/{id}") @Headers({ "Content-Type: application/json", @@ -70,11 +79,14 @@ public interface SystemTenantApi extends ApiClient.Api { /** * Update the current Tenant * Similar to updateSystemTenant but it also returns the http response headers . - * Pause or resume the current tenant. + * Pause or resume the current tenant. Warning: since Bonita 9.0.0, /API/system/tenant API resource is deprecated. Use /API/system/maintenance instead to enable + * the maintenance mode (same behavior as pausing the tenant). * * @param id ID of the tenant (required) * @param tenantPauseRequest Partial SystemTenant description (required) + * @deprecated */ + @Deprecated @RequestLine("PUT /API/system/tenant/{id}") @Headers({ "Content-Type: application/json", diff --git a/src/main/java/org/bonitasoft/web/client/api/TaskApi.java b/src/main/java/org/bonitasoft/web/client/api/TaskApi.java index b066a05d..19b86707 100644 --- a/src/main/java/org/bonitasoft/web/client/api/TaskApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/TaskApi.java @@ -18,12 +18,12 @@ import java.util.HashMap; import java.util.List; -import java.util.Map; import org.bonitasoft.web.client.invoker.ApiClient; import org.bonitasoft.web.client.invoker.EncodingUtils; import org.bonitasoft.web.client.model.ApiResponse; import org.bonitasoft.web.client.model.Task; +import org.bonitasoft.web.client.model.UpdateTaskByIdRequest; import feign.*; @@ -181,15 +181,15 @@ public SearchTasksQueryParams o(final String value) { * Update the Task for the given ID * * @param id ID of the Task to return (required) - * @param requestBody Task fields to update (forbidden fields are : `caseId`, `processId`, `name`, `executedBy`, - * `type`, `id`, `reached_state_date`, `last_update_date`) (required) + * @param updateTaskByIdRequest Task fields to update (forbidden fields are : `caseId`, `processId`, `name`, + * `executedBy`, `type`, `id`, `reached_state_date`, `last_update_date`) (required) */ @RequestLine("PUT /API/bpm/task/{id}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - void updateTaskById(@Param("id") String id, Map requestBody); + void updateTaskById(@Param("id") String id, UpdateTaskByIdRequest updateTaskByIdRequest); /** * Update the Task by ID @@ -197,14 +197,14 @@ public SearchTasksQueryParams o(final String value) { * Update the Task for the given ID * * @param id ID of the Task to return (required) - * @param requestBody Task fields to update (forbidden fields are : `caseId`, `processId`, `name`, `executedBy`, - * `type`, `id`, `reached_state_date`, `last_update_date`) (required) + * @param updateTaskByIdRequest Task fields to update (forbidden fields are : `caseId`, `processId`, `name`, + * `executedBy`, `type`, `id`, `reached_state_date`, `last_update_date`) (required) */ @RequestLine("PUT /API/bpm/task/{id}") @Headers({ "Content-Type: application/json", "Accept: application/json", }) - ApiResponse updateTaskByIdWithHttpInfo(@Param("id") String id, Map requestBody); + ApiResponse updateTaskByIdWithHttpInfo(@Param("id") String id, UpdateTaskByIdRequest updateTaskByIdRequest); } diff --git a/src/main/java/org/bonitasoft/web/client/api/UploadApi.java b/src/main/java/org/bonitasoft/web/client/api/UploadApi.java index 4f5b39df..656fa1b2 100644 --- a/src/main/java/org/bonitasoft/web/client/api/UploadApi.java +++ b/src/main/java/org/bonitasoft/web/client/api/UploadApi.java @@ -28,11 +28,13 @@ public interface UploadApi extends ApiClient.Api { /** * Upload a living application - * Upload application + * Upload application Warning: as of 9.0.0, uploading a living application using the portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/applicationsUpload") @Headers({ "Content-Type: multipart/form-data", @@ -43,11 +45,13 @@ public interface UploadApi extends ApiClient.Api { /** * Upload a living application * Similar to uploadApplication but it also returns the http response headers . - * Upload application + * Upload application Warning: as of 9.0.0, uploading a living application using the portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/applicationsUpload") @Headers({ "Content-Type: multipart/form-data", @@ -57,11 +61,14 @@ public interface UploadApi extends ApiClient.Api { /** * Upload a BDM Access Control - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control Warning: as of 9.0.0, uploading a BDM Access Control using the + * portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/bdmAccessControlUpload") @Headers({ "Content-Type: multipart/form-data", @@ -72,11 +79,14 @@ public interface UploadApi extends ApiClient.Api { /** * Upload a BDM Access Control * Similar to uploadBDMAccessControl but it also returns the http response headers . - * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload BDM Access Control Warning: as of 9.0.0, uploading a BDM Access Control using the + * portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/bdmAccessControlUpload") @Headers({ "Content-Type: multipart/form-data", @@ -146,11 +156,13 @@ public interface UploadApi extends ApiClient.Api { /** * Upload a Page - * Upload Page + * Upload Page Warning: as of 9.0.0, uploading a page using the portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/pageUpload") @Headers({ "Content-Type: multipart/form-data", @@ -161,11 +173,13 @@ public interface UploadApi extends ApiClient.Api { /** * Upload a Page * Similar to uploadPage but it also returns the http response headers . - * Upload Page + * Upload Page Warning: as of 9.0.0, uploading a page using the portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/pageUpload") @Headers({ "Content-Type: multipart/form-data", @@ -175,11 +189,13 @@ public interface UploadApi extends ApiClient.Api { /** * Upload a bar file - * Upload a bar file + * Upload a bar file Warning: as of 9.0.0, uploading a bar file using the portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/processUpload") @Headers({ "Content-Type: multipart/form-data", @@ -190,11 +206,13 @@ public interface UploadApi extends ApiClient.Api { /** * Upload a bar file * Similar to uploadProcess but it also returns the http response headers . - * Upload a bar file + * Upload a bar file Warning: as of 9.0.0, uploading a bar file using the portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/processUpload") @Headers({ "Content-Type: multipart/form-data", @@ -204,11 +222,13 @@ public interface UploadApi extends ApiClient.Api { /** * Upload profiles - * Upload profiles + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload profiles Warning: as of 9.0.0, uploading profiles using the portal is deprecated. * * @param file (optional) * @return String + * @deprecated */ + @Deprecated @RequestLine("POST /portal/profilesUpload") @Headers({ "Content-Type: multipart/form-data", @@ -219,11 +239,13 @@ public interface UploadApi extends ApiClient.Api { /** * Upload profiles * Similar to uploadprofiles but it also returns the http response headers . - * Upload profiles + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) Upload profiles Warning: as of 9.0.0, uploading profiles using the portal is deprecated. * * @param file (optional) * @return A ApiResponse that wraps the response boyd and the http headers. + * @deprecated */ + @Deprecated @RequestLine("POST /portal/profilesUpload") @Headers({ "Content-Type: multipart/form-data", diff --git a/src/main/java/org/bonitasoft/web/client/invoker/ApiClient.java b/src/main/java/org/bonitasoft/web/client/invoker/ApiClient.java index a33853fd..6fcae9b8 100644 --- a/src/main/java/org/bonitasoft/web/client/invoker/ApiClient.java +++ b/src/main/java/org/bonitasoft/web/client/invoker/ApiClient.java @@ -65,7 +65,7 @@ public ApiClient(String[] authNames) { this(); for (String authName : authNames) { log.log(Level.FINE, "Creating authentication {0}", authName); - RequestInterceptor auth; + RequestInterceptor auth = null; if ("bonita_auth".equals(authName)) { auth = new ApiKeyAuth("cookie", "JSESSIONID"); } else if ("bonita_token".equals(authName)) { @@ -73,7 +73,9 @@ public ApiClient(String[] authNames) { } else { throw new RuntimeException("auth name \"" + authName + "\" not found in available auth names"); } - addAuthorization(authName, auth); + if (auth != null) { + addAuthorization(authName, auth); + } } } diff --git a/src/main/java/org/bonitasoft/web/client/invoker/ApiResponseDecoder.java b/src/main/java/org/bonitasoft/web/client/invoker/ApiResponseDecoder.java index 78eb3db9..60f86548 100644 --- a/src/main/java/org/bonitasoft/web/client/invoker/ApiResponseDecoder.java +++ b/src/main/java/org/bonitasoft/web/client/invoker/ApiResponseDecoder.java @@ -39,14 +39,13 @@ public ApiResponseDecoder(ObjectMapper mapper) { @Override public Object decode(Response response, Type type) throws IOException { - Map> responseHeaders = Collections.unmodifiableMap(response.headers()); //Detects if the type is an instance of the parameterized class ApiResponse - Type responseBodyType; if (type instanceof ParameterizedType && Types.getRawType(type).isAssignableFrom(ApiResponse.class)) { //The ApiResponse class has a single type parameter, the Dto class itself - responseBodyType = ((ParameterizedType) type).getActualTypeArguments()[0]; + Type responseBodyType = ((ParameterizedType) type).getActualTypeArguments()[0]; Object body = super.decode(response, responseBodyType); - return new ApiResponse(response.status(), responseHeaders, body); + Map> responseHeaders = Collections.unmodifiableMap(response.headers()); + return new ApiResponse<>(response.status(), responseHeaders, body); } else { //The response is not encapsulated in the ApiResponse, decode the Dto as normal return super.decode(response, type); diff --git a/src/main/java/org/bonitasoft/web/client/model/ApiResponse.java b/src/main/java/org/bonitasoft/web/client/model/ApiResponse.java index 0c787fe7..79bc39fe 100644 --- a/src/main/java/org/bonitasoft/web/client/model/ApiResponse.java +++ b/src/main/java/org/bonitasoft/web/client/model/ApiResponse.java @@ -16,20 +16,20 @@ */ package org.bonitasoft.web.client.model; -import java.util.List; +import java.util.Collection; import java.util.Map; public class ApiResponse { final private int statusCode; - final private Map> headers; + final private Map> headers; final private T data; /** * @param statusCode The status code of HTTP response * @param headers The headers of HTTP response */ - public ApiResponse(int statusCode, Map> headers) { + public ApiResponse(int statusCode, Map> headers) { this(statusCode, headers, null); } @@ -38,7 +38,7 @@ public ApiResponse(int statusCode, Map> headers) { * @param headers The headers of HTTP response * @param data The object deserialized from response bod */ - public ApiResponse(int statusCode, Map> headers, T data) { + public ApiResponse(int statusCode, Map> headers, T data) { this.statusCode = statusCode; this.headers = headers; this.data = data; @@ -48,7 +48,7 @@ public int getStatusCode() { return statusCode; } - public Map> getHeaders() { + public Map> getHeaders() { return headers; } diff --git a/src/main/java/org/bonitasoft/web/client/model/ApplicationUpdateRequest.java b/src/main/java/org/bonitasoft/web/client/model/ApplicationUpdateRequest.java index 8da741b0..f2e49336 100644 --- a/src/main/java/org/bonitasoft/web/client/model/ApplicationUpdateRequest.java +++ b/src/main/java/org/bonitasoft/web/client/model/ApplicationUpdateRequest.java @@ -32,7 +32,8 @@ ApplicationUpdateRequest.JSON_PROPERTY_PROFILE_ID, ApplicationUpdateRequest.JSON_PROPERTY_TOKEN, ApplicationUpdateRequest.JSON_PROPERTY_VERSION, - ApplicationUpdateRequest.JSON_PROPERTY_THEME_ID + ApplicationUpdateRequest.JSON_PROPERTY_THEME_ID, + ApplicationUpdateRequest.JSON_PROPERTY_LAYOUT_ID }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ApplicationUpdateRequest implements Serializable { @@ -57,6 +58,9 @@ public class ApplicationUpdateRequest implements Serializable { public static final String JSON_PROPERTY_THEME_ID = "themeId"; private String themeId; + public static final String JSON_PROPERTY_LAYOUT_ID = "layoutId"; + private String layoutId; + public ApplicationUpdateRequest() { } @@ -210,6 +214,31 @@ public void setThemeId(String themeId) { this.themeId = themeId; } + public ApplicationUpdateRequest layoutId(String layoutId) { + + this.layoutId = layoutId; + return this; + } + + /** + * ![edition](https://img.shields.io/badge/edition-entreprise-blue) layout id for the application + * + * @return layoutId + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_LAYOUT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLayoutId() { + return layoutId; + } + + @JsonProperty(JSON_PROPERTY_LAYOUT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLayoutId(String layoutId) { + this.layoutId = layoutId; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -224,12 +253,13 @@ public boolean equals(Object o) { Objects.equals(this.profileId, applicationUpdateRequest.profileId) && Objects.equals(this.token, applicationUpdateRequest.token) && Objects.equals(this.version, applicationUpdateRequest.version) && - Objects.equals(this.themeId, applicationUpdateRequest.themeId); + Objects.equals(this.themeId, applicationUpdateRequest.themeId) && + Objects.equals(this.layoutId, applicationUpdateRequest.layoutId); } @Override public int hashCode() { - return Objects.hash(description, displayName, profileId, token, version, themeId); + return Objects.hash(description, displayName, profileId, token, version, themeId, layoutId); } @Override @@ -242,6 +272,7 @@ public String toString() { sb.append(" token: ").append(toIndentedString(token)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); + sb.append(" layoutId: ").append(toIndentedString(layoutId)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/bonitasoft/web/client/model/BusinessData.java b/src/main/java/org/bonitasoft/web/client/model/BusinessData.java index ebae3d39..4c880517 100644 --- a/src/main/java/org/bonitasoft/web/client/model/BusinessData.java +++ b/src/main/java/org/bonitasoft/web/client/model/BusinessData.java @@ -18,8 +18,11 @@ import java.io.Serializable; import java.util.HashMap; +import java.util.Map; import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -102,6 +105,53 @@ public void setPersistenceVersionString(String persistenceVersionString) { this.persistenceVersionString = persistenceVersionString; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key the name of the property + * @param value the value of the property + * @return self reference + */ + @JsonAnySetter + public BusinessData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) properties. + * + * @return the additional (undeclared) properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key the name of the property + * @return the additional (undeclared) property with the specified name + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/org/bonitasoft/web/client/model/Error.java b/src/main/java/org/bonitasoft/web/client/model/Error.java index 5ee73dfb..83235781 100644 --- a/src/main/java/org/bonitasoft/web/client/model/Error.java +++ b/src/main/java/org/bonitasoft/web/client/model/Error.java @@ -20,8 +20,11 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import java.util.Map; import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -135,6 +138,53 @@ public void setExplanations(List explanations) { this.explanations = explanations; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key the name of the property + * @param value the value of the property + * @return self reference + */ + @JsonAnySetter + public Error putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) properties. + * + * @return the additional (undeclared) properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key the name of the property + * @return the additional (undeclared) property with the specified name + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/org/bonitasoft/web/client/model/MaintenanceDetails.java b/src/main/java/org/bonitasoft/web/client/model/MaintenanceDetails.java new file mode 100644 index 00000000..0ddb7419 --- /dev/null +++ b/src/main/java/org/bonitasoft/web/client/model/MaintenanceDetails.java @@ -0,0 +1,205 @@ +/** + * Copyright (C) 2022 BonitaSoft S.A. + * BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2.0 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.bonitasoft.web.client.model; + +import java.io.Serializable; +import java.util.Objects; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * MaintenanceDetails + */ +@JsonPropertyOrder({ + MaintenanceDetails.JSON_PROPERTY_MAINTENANCE_STATE, + MaintenanceDetails.JSON_PROPERTY_MAINTENANCE_MESSAGE, + MaintenanceDetails.JSON_PROPERTY_MAINTENANCE_MESSAGE_ACTIVE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class MaintenanceDetails implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * maintenance state + */ + public enum MaintenanceStateEnum { + + ENABLED("ENABLED"), + + DISABLED("DISABLED"); + + private String value; + + MaintenanceStateEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static MaintenanceStateEnum fromValue(String value) { + for (MaintenanceStateEnum b : MaintenanceStateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_MAINTENANCE_STATE = "maintenanceState"; + private MaintenanceStateEnum maintenanceState; + + public static final String JSON_PROPERTY_MAINTENANCE_MESSAGE = "maintenanceMessage"; + private String maintenanceMessage; + + public static final String JSON_PROPERTY_MAINTENANCE_MESSAGE_ACTIVE = "maintenanceMessageActive"; + private Boolean maintenanceMessageActive; + + public MaintenanceDetails() { + } + + public MaintenanceDetails maintenanceState(MaintenanceStateEnum maintenanceState) { + + this.maintenanceState = maintenanceState; + return this; + } + + /** + * maintenance state + * + * @return maintenanceState + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAINTENANCE_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public MaintenanceStateEnum getMaintenanceState() { + return maintenanceState; + } + + @JsonProperty(JSON_PROPERTY_MAINTENANCE_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMaintenanceState(MaintenanceStateEnum maintenanceState) { + this.maintenanceState = maintenanceState; + } + + public MaintenanceDetails maintenanceMessage(String maintenanceMessage) { + + this.maintenanceMessage = maintenanceMessage; + return this; + } + + /** + * maintenance message + * + * @return maintenanceMessage + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAINTENANCE_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMaintenanceMessage() { + return maintenanceMessage; + } + + @JsonProperty(JSON_PROPERTY_MAINTENANCE_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMaintenanceMessage(String maintenanceMessage) { + this.maintenanceMessage = maintenanceMessage; + } + + public MaintenanceDetails maintenanceMessageActive(Boolean maintenanceMessageActive) { + + this.maintenanceMessageActive = maintenanceMessageActive; + return this; + } + + /** + * is maintenance message active + * + * @return maintenanceMessageActive + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MAINTENANCE_MESSAGE_ACTIVE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getMaintenanceMessageActive() { + return maintenanceMessageActive; + } + + @JsonProperty(JSON_PROPERTY_MAINTENANCE_MESSAGE_ACTIVE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMaintenanceMessageActive(Boolean maintenanceMessageActive) { + this.maintenanceMessageActive = maintenanceMessageActive; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MaintenanceDetails maintenanceDetails = (MaintenanceDetails) o; + return Objects.equals(this.maintenanceState, maintenanceDetails.maintenanceState) && + Objects.equals(this.maintenanceMessage, maintenanceDetails.maintenanceMessage) && + Objects.equals(this.maintenanceMessageActive, maintenanceDetails.maintenanceMessageActive); + } + + @Override + public int hashCode() { + return Objects.hash(maintenanceState, maintenanceMessage, maintenanceMessageActive); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MaintenanceDetails {\n"); + sb.append(" maintenanceState: ").append(toIndentedString(maintenanceState)).append("\n"); + sb.append(" maintenanceMessage: ").append(toIndentedString(maintenanceMessage)).append("\n"); + sb.append(" maintenanceMessageActive: ").append(toIndentedString(maintenanceMessageActive)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/src/main/java/org/bonitasoft/web/client/model/ProcessVariable.java b/src/main/java/org/bonitasoft/web/client/model/ProcessVariable.java index 02bc9393..c7761a48 100644 --- a/src/main/java/org/bonitasoft/web/client/model/ProcessVariable.java +++ b/src/main/java/org/bonitasoft/web/client/model/ProcessVariable.java @@ -18,8 +18,11 @@ import java.io.Serializable; import java.util.HashMap; +import java.util.Map; import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -67,6 +70,53 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key the name of the property + * @param value the value of the property + * @return self reference + */ + @JsonAnySetter + public ProcessVariable putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) properties. + * + * @return the additional (undeclared) properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key the name of the property + * @return the additional (undeclared) property with the specified name + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/org/bonitasoft/web/client/model/Tenant.java b/src/main/java/org/bonitasoft/web/client/model/Tenant.java index 7d99c6f3..e0d7feb2 100644 --- a/src/main/java/org/bonitasoft/web/client/model/Tenant.java +++ b/src/main/java/org/bonitasoft/web/client/model/Tenant.java @@ -343,7 +343,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" password: ").append("*").append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/bonitasoft/web/client/model/TenantCreateRequest.java b/src/main/java/org/bonitasoft/web/client/model/TenantCreateRequest.java index 73bbcab1..26583606 100644 --- a/src/main/java/org/bonitasoft/web/client/model/TenantCreateRequest.java +++ b/src/main/java/org/bonitasoft/web/client/model/TenantCreateRequest.java @@ -182,7 +182,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" password: ").append("*").append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/bonitasoft/web/client/model/TenantUpdateRequest.java b/src/main/java/org/bonitasoft/web/client/model/TenantUpdateRequest.java index ad92f292..3b3ba081 100644 --- a/src/main/java/org/bonitasoft/web/client/model/TenantUpdateRequest.java +++ b/src/main/java/org/bonitasoft/web/client/model/TenantUpdateRequest.java @@ -280,7 +280,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" password: ").append("*").append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/bonitasoft/web/client/model/UpdateTaskByIdRequest.java b/src/main/java/org/bonitasoft/web/client/model/UpdateTaskByIdRequest.java index 99ec37cb..da183cdb 100644 --- a/src/main/java/org/bonitasoft/web/client/model/UpdateTaskByIdRequest.java +++ b/src/main/java/org/bonitasoft/web/client/model/UpdateTaskByIdRequest.java @@ -18,8 +18,11 @@ import java.io.Serializable; import java.util.HashMap; +import java.util.Map; import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -96,6 +99,53 @@ public void setDisplayName(String displayName) { this.displayName = displayName; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key the name of the property + * @param value the value of the property + * @return self reference + */ + @JsonAnySetter + public UpdateTaskByIdRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) properties. + * + * @return the additional (undeclared) properties + */ + @JsonAnyGetter + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key the name of the property + * @return the additional (undeclared) property with the specified name + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/org/bonitasoft/web/client/model/User.java b/src/main/java/org/bonitasoft/web/client/model/User.java index ecb91b6f..7666798d 100644 --- a/src/main/java/org/bonitasoft/web/client/model/User.java +++ b/src/main/java/org/bonitasoft/web/client/model/User.java @@ -482,7 +482,7 @@ public String toString() { sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); sb.append(" firstname: ").append(toIndentedString(firstname)).append("\n"); sb.append(" lastname: ").append(toIndentedString(lastname)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" password: ").append("*").append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" jobTitle: ").append(toIndentedString(jobTitle)).append("\n"); diff --git a/src/main/java/org/bonitasoft/web/client/model/UserCreateRequest.java b/src/main/java/org/bonitasoft/web/client/model/UserCreateRequest.java index c7dc4947..2118d5f2 100644 --- a/src/main/java/org/bonitasoft/web/client/model/UserCreateRequest.java +++ b/src/main/java/org/bonitasoft/web/client/model/UserCreateRequest.java @@ -360,8 +360,8 @@ public String toString() { sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); sb.append(" firstname: ").append(toIndentedString(firstname)).append("\n"); sb.append(" lastname: ").append(toIndentedString(lastname)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append(" passwordConfirm: ").append(toIndentedString(passwordConfirm)).append("\n"); + sb.append(" password: ").append("*").append("\n"); + sb.append(" passwordConfirm: ").append("*").append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" jobTitle: ").append(toIndentedString(jobTitle)).append("\n"); diff --git a/src/main/java/org/bonitasoft/web/client/model/UserUpdateRequest.java b/src/main/java/org/bonitasoft/web/client/model/UserUpdateRequest.java index 74327f82..a782e462 100644 --- a/src/main/java/org/bonitasoft/web/client/model/UserUpdateRequest.java +++ b/src/main/java/org/bonitasoft/web/client/model/UserUpdateRequest.java @@ -330,7 +330,7 @@ public String toString() { sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); sb.append(" firstname: ").append(toIndentedString(firstname)).append("\n"); sb.append(" lastname: ").append(toIndentedString(lastname)).append("\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" password: ").append("*").append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" jobTitle: ").append(toIndentedString(jobTitle)).append("\n");