diff --git a/rest-api/.gitignore b/rest-api/.gitignore index c136aef..b17d0d1 100644 --- a/rest-api/.gitignore +++ b/rest-api/.gitignore @@ -9,4 +9,8 @@ .settings/ lib/ openapitools.json +src/com/db/capella/api/*.java +src/com/db/capella/api/factories/ +!src/com/db/capella/api/JacksonJsonProvider.java +src/com/db/capella/model/ target/ diff --git a/rest-api/src/com/db/capella/api/factories/ProjectsApiServiceFactory.java b/rest-api/src/com/db/capella/api/factories/ProjectsApiServiceFactory.java deleted file mode 100644 index 9e7d56c..0000000 --- a/rest-api/src/com/db/capella/api/factories/ProjectsApiServiceFactory.java +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -package com.db.capella.api.factories; - -import com.db.capella.api.ProjectsApiService; -import com.db.capella.api.impl.ProjectsApiServiceImpl; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class ProjectsApiServiceFactory { - private static final ProjectsApiService service = new ProjectsApiServiceImpl(); - - public static ProjectsApiService getProjectsApi() { - return service; - } -} diff --git a/rest-api/src/com/db/capella/api/factories/SelectedModelElementsApiServiceFactory.java b/rest-api/src/com/db/capella/api/factories/SelectedModelElementsApiServiceFactory.java deleted file mode 100644 index 4219cd5..0000000 --- a/rest-api/src/com/db/capella/api/factories/SelectedModelElementsApiServiceFactory.java +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -package com.db.capella.api.factories; - -import com.db.capella.api.SelectedModelElementsApiService; -import com.db.capella.api.impl.SelectedModelElementsApiServiceImpl; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class SelectedModelElementsApiServiceFactory { - private static final SelectedModelElementsApiService service = new SelectedModelElementsApiServiceImpl(); - - public static SelectedModelElementsApiService getSelectedModelElementsApi() { - return service; - } -} diff --git a/rest-api/src/com/db/capella/api/factories/WorkspaceApiServiceFactory.java b/rest-api/src/com/db/capella/api/factories/WorkspaceApiServiceFactory.java deleted file mode 100644 index 48b33d5..0000000 --- a/rest-api/src/com/db/capella/api/factories/WorkspaceApiServiceFactory.java +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -package com.db.capella.api.factories; - -import com.db.capella.api.WorkspaceApiService; -import com.db.capella.api.impl.WorkspaceApiServiceImpl; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class WorkspaceApiServiceFactory { - private static final WorkspaceApiService service = new WorkspaceApiServiceImpl(); - - public static WorkspaceApiService getWorkspaceApi() { - return service; - } -} diff --git a/rest-api/src/com/db/capella/model/Diagram.java b/rest-api/src/com/db/capella/model/Diagram.java deleted file mode 100644 index fb053e3..0000000 --- a/rest-api/src/com/db/capella/model/Diagram.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * A diagram - */ -@Schema(description = "A diagram") -@JsonPropertyOrder({ - Diagram.JSON_PROPERTY_ID, - Diagram.JSON_PROPERTY_NAME, - Diagram.JSON_PROPERTY_DESCRIPTION, - Diagram.JSON_PROPERTY_DOCUMENTATION -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class Diagram { - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - private String name; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - private String description; - - public static final String JSON_PROPERTY_DOCUMENTATION = "documentation"; - @JsonProperty(JSON_PROPERTY_DOCUMENTATION) - private String documentation; - - public Diagram id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the diagram - * @return id - **/ - @JsonProperty(value = "id") - @Schema(description = "Unique identifier of the diagram") - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public Diagram name(String name) { - this.name = name; - return this; - } - - /** - * Name of the diagram - * @return name - **/ - @JsonProperty(value = "name") - @Schema(description = "Name of the diagram") - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Diagram description(String description) { - this.description = description; - return this; - } - - /** - * Description of the diagram - * @return description - **/ - @JsonProperty(value = "description") - @Schema(description = "Description of the diagram") - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Diagram documentation(String documentation) { - this.documentation = documentation; - return this; - } - - /** - * Documentation of the diagram - * @return documentation - **/ - @JsonProperty(value = "documentation") - @Schema(description = "Documentation of the diagram") - - public String getDocumentation() { - return documentation; - } - - public void setDocumentation(String documentation) { - this.documentation = documentation; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Diagram diagram = (Diagram) o; - return Objects.equals(this.id, diagram.id) && - Objects.equals(this.name, diagram.name) && - Objects.equals(this.description, diagram.description) && - Objects.equals(this.documentation, diagram.documentation); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, description, documentation); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Diagram {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" documentation: ").append(toIndentedString(documentation)).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/rest-api/src/com/db/capella/model/DiagramEditor.java b/rest-api/src/com/db/capella/model/DiagramEditor.java deleted file mode 100644 index 2279858..0000000 --- a/rest-api/src/com/db/capella/model/DiagramEditor.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * A diagram editor in Capella - */ -@Schema(description = "A diagram editor in Capella") -@JsonPropertyOrder({ - DiagramEditor.JSON_PROPERTY_ID, - DiagramEditor.JSON_PROPERTY_NAME, - DiagramEditor.JSON_PROPERTY_URI -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class DiagramEditor { - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - private String name; - - public static final String JSON_PROPERTY_URI = "uri"; - @JsonProperty(JSON_PROPERTY_URI) - private String uri; - - public DiagramEditor id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the diagram - * @return id - **/ - @JsonProperty(value = "id") - @Schema(description = "Unique identifier of the diagram") - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public DiagramEditor name(String name) { - this.name = name; - return this; - } - - /** - * Name of the diagram - * @return name - **/ - @JsonProperty(value = "name") - @Schema(description = "Name of the diagram") - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public DiagramEditor uri(String uri) { - this.uri = uri; - return this; - } - - /** - * URI of the diagram - * @return uri - **/ - @JsonProperty(value = "uri") - @Schema(description = "URI of the diagram") - - public String getUri() { - return uri; - } - - public void setUri(String uri) { - this.uri = uri; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DiagramEditor diagramEditor = (DiagramEditor) o; - return Objects.equals(this.id, diagramEditor.id) && - Objects.equals(this.name, diagramEditor.name) && - Objects.equals(this.uri, diagramEditor.uri); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, uri); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DiagramEditor {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" uri: ").append(toIndentedString(uri)).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/rest-api/src/com/db/capella/model/EObject.java b/rest-api/src/com/db/capella/model/EObject.java deleted file mode 100644 index cd9836e..0000000 --- a/rest-api/src/com/db/capella/model/EObject.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * An abstract model object - */ -@Schema(description = "An abstract model object") -@JsonPropertyOrder({ - EObject.JSON_PROPERTY_D_U_M_M_Y -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class EObject { - public static final String JSON_PROPERTY_D_U_M_M_Y = "DUMMY"; - @JsonProperty(JSON_PROPERTY_D_U_M_M_Y) - private String DUMMY; - - public EObject DUMMY(String DUMMY) { - this.DUMMY = DUMMY; - return this; - } - - /** - * Dummy property - * @return DUMMY - **/ - @JsonProperty(value = "DUMMY") - @Schema(description = "Dummy property") - - public String getDUMMY() { - return DUMMY; - } - - public void setDUMMY(String DUMMY) { - this.DUMMY = DUMMY; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EObject eobject = (EObject) o; - return Objects.equals(this.DUMMY, eobject.DUMMY); - } - - @Override - public int hashCode() { - return Objects.hash(DUMMY); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class EObject {\n"); - - sb.append(" DUMMY: ").append(toIndentedString(DUMMY)).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/rest-api/src/com/db/capella/model/Element.java b/rest-api/src/com/db/capella/model/Element.java deleted file mode 100644 index 19d1241..0000000 --- a/rest-api/src/com/db/capella/model/Element.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * An element - */ -@Schema(description = "An element") -@JsonPropertyOrder({ - Element.JSON_PROPERTY_D_U_M_M_Y -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class Element { - public static final String JSON_PROPERTY_D_U_M_M_Y = "DUMMY"; - @JsonProperty(JSON_PROPERTY_D_U_M_M_Y) - private String DUMMY; - - public Element DUMMY(String DUMMY) { - this.DUMMY = DUMMY; - return this; - } - - /** - * Dummy property - * @return DUMMY - **/ - @JsonProperty(value = "DUMMY") - @Schema(description = "Dummy property") - - public String getDUMMY() { - return DUMMY; - } - - public void setDUMMY(String DUMMY) { - this.DUMMY = DUMMY; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Element element = (Element) o; - return Objects.equals(this.DUMMY, element.DUMMY); - } - - @Override - public int hashCode() { - return Objects.hash(DUMMY); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Element {\n"); - - sb.append(" DUMMY: ").append(toIndentedString(DUMMY)).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/rest-api/src/com/db/capella/model/ExtensibleElement.java b/rest-api/src/com/db/capella/model/ExtensibleElement.java deleted file mode 100644 index 0cfd702..0000000 --- a/rest-api/src/com/db/capella/model/ExtensibleElement.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * An extensible element - */ -@Schema(description = "An extensible element") -@JsonPropertyOrder({ - ExtensibleElement.JSON_PROPERTY_D_U_M_M_Y -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class ExtensibleElement { - public static final String JSON_PROPERTY_D_U_M_M_Y = "DUMMY"; - @JsonProperty(JSON_PROPERTY_D_U_M_M_Y) - private String DUMMY; - - public ExtensibleElement DUMMY(String DUMMY) { - this.DUMMY = DUMMY; - return this; - } - - /** - * Dummy property - * @return DUMMY - **/ - @JsonProperty(value = "DUMMY") - @Schema(description = "Dummy property") - - public String getDUMMY() { - return DUMMY; - } - - public void setDUMMY(String DUMMY) { - this.DUMMY = DUMMY; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensibleElement extensibleElement = (ExtensibleElement) o; - return Objects.equals(this.DUMMY, extensibleElement.DUMMY); - } - - @Override - public int hashCode() { - return Objects.hash(DUMMY); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ExtensibleElement {\n"); - - sb.append(" DUMMY: ").append(toIndentedString(DUMMY)).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/rest-api/src/com/db/capella/model/ImportProjectRequest.java b/rest-api/src/com/db/capella/model/ImportProjectRequest.java deleted file mode 100644 index ae0ee7c..0000000 --- a/rest-api/src/com/db/capella/model/ImportProjectRequest.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * ImportProjectRequest - */ -@JsonPropertyOrder({ - ImportProjectRequest.JSON_PROPERTY_LOCATION -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class ImportProjectRequest { - public static final String JSON_PROPERTY_LOCATION = "location"; - @JsonProperty(JSON_PROPERTY_LOCATION) - private String location; - - public ImportProjectRequest location(String location) { - this.location = location; - return this; - } - - /** - * Absolute path of the project folder in the local file system - * @return location - **/ - @JsonProperty(value = "location") - @Schema(required = true, description = "Absolute path of the project folder in the local file system ") - @NotNull - public String getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ImportProjectRequest importProjectRequest = (ImportProjectRequest) o; - return Objects.equals(this.location, importProjectRequest.location); - } - - @Override - public int hashCode() { - return Objects.hash(location); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ImportProjectRequest {\n"); - - sb.append(" location: ").append(toIndentedString(location)).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/rest-api/src/com/db/capella/model/ModelElement.java b/rest-api/src/com/db/capella/model/ModelElement.java deleted file mode 100644 index 6185bda..0000000 --- a/rest-api/src/com/db/capella/model/ModelElement.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * Common base for all capella elements [source: capella study] Used in levels: operational,system,logical,physical,epbs - */ -@Schema(description = "Common base for all capella elements [source: capella study] Used in levels: operational,system,logical,physical,epbs") -@JsonPropertyOrder({ - ModelElement.JSON_PROPERTY_ID, - ModelElement.JSON_PROPERTY_SID, - ModelElement.JSON_PROPERTY_D_U_M_M_Y -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class ModelElement { - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - private String id; - - public static final String JSON_PROPERTY_SID = "sid"; - @JsonProperty(JSON_PROPERTY_SID) - private String sid; - - public static final String JSON_PROPERTY_D_U_M_M_Y = "DUMMY"; - @JsonProperty(JSON_PROPERTY_D_U_M_M_Y) - private String DUMMY; - - public ModelElement id(String id) { - this.id = id; - return this; - } - - /** - * The unique identifier for this element [source: capella study] - * @return id - **/ - @JsonProperty(value = "id") - @Schema(description = "The unique identifier for this element [source: capella study]") - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public ModelElement sid(String sid) { - this.sid = sid; - return this; - } - - /** - * The unique system identifier for this element - * @return sid - **/ - @JsonProperty(value = "sid") - @Schema(description = "The unique system identifier for this element") - - public String getSid() { - return sid; - } - - public void setSid(String sid) { - this.sid = sid; - } - - public ModelElement DUMMY(String DUMMY) { - this.DUMMY = DUMMY; - return this; - } - - /** - * Dummy property - * @return DUMMY - **/ - @JsonProperty(value = "DUMMY") - @Schema(description = "Dummy property") - - public String getDUMMY() { - return DUMMY; - } - - public void setDUMMY(String DUMMY) { - this.DUMMY = DUMMY; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ModelElement modelElement = (ModelElement) o; - return Objects.equals(this.id, modelElement.id) && - Objects.equals(this.sid, modelElement.sid) && - Objects.equals(this.DUMMY, modelElement.DUMMY); - } - - @Override - public int hashCode() { - return Objects.hash(id, sid, DUMMY); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ModelElement {\n"); - - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" sid: ").append(toIndentedString(sid)).append("\n"); - sb.append(" DUMMY: ").append(toIndentedString(DUMMY)).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/rest-api/src/com/db/capella/model/Resource.java b/rest-api/src/com/db/capella/model/Resource.java deleted file mode 100644 index ac14e51..0000000 --- a/rest-api/src/com/db/capella/model/Resource.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * A generic resource - */ -@Schema(description = "A generic resource") -@JsonPropertyOrder({ - Resource.JSON_PROPERTY_FULL_PATH, - Resource.JSON_PROPERTY_LOCATION, - Resource.JSON_PROPERTY_NAME -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class Resource { - public static final String JSON_PROPERTY_FULL_PATH = "fullPath"; - @JsonProperty(JSON_PROPERTY_FULL_PATH) - private String fullPath; - - public static final String JSON_PROPERTY_LOCATION = "location"; - @JsonProperty(JSON_PROPERTY_LOCATION) - private String location; - - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - private String name = ""; - - public Resource fullPath(String fullPath) { - this.fullPath = fullPath; - return this; - } - - /** - * Full, absolute path of the resource relative to the workspace. A resource's full path indicates the route from the root of the workspace to the resource. Within a workspace, there is exactly one such path for any given resource. The first segment of these paths name a project; remaining segments, folders and/or files within that project. The returned path never has a trailing separator. - * @return fullPath - **/ - @JsonProperty(value = "fullPath") - @Schema(description = "Full, absolute path of the resource relative to the workspace. A resource's full path indicates the route from the root of the workspace to the resource. Within a workspace, there is exactly one such path for any given resource. The first segment of these paths name a project; remaining segments, folders and/or files within that project. The returned path never has a trailing separator. ") - - public String getFullPath() { - return fullPath; - } - - public void setFullPath(String fullPath) { - this.fullPath = fullPath; - } - - public Resource location(String location) { - this.location = location; - return this; - } - - /** - * Location of the resource in the file system - * @return location - **/ - @JsonProperty(value = "location") - @Schema(description = "Location of the resource in the file system") - - public String getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } - - public Resource name(String name) { - this.name = name; - return this; - } - - /** - * Name of the resource. The workspace root's name is the empty string. - * @return name - **/ - @JsonProperty(value = "name") - @Schema(description = "Name of the resource. The workspace root's name is the empty string. ") - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Resource resource = (Resource) o; - return Objects.equals(this.fullPath, resource.fullPath) && - Objects.equals(this.location, resource.location) && - Objects.equals(this.name, resource.name); - } - - @Override - public int hashCode() { - return Objects.hash(fullPath, location, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Resource {\n"); - - sb.append(" fullPath: ").append(toIndentedString(fullPath)).append("\n"); - sb.append(" location: ").append(toIndentedString(location)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).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/rest-api/src/com/db/capella/model/SelectedModelElement.java b/rest-api/src/com/db/capella/model/SelectedModelElement.java deleted file mode 100644 index 9627a3a..0000000 --- a/rest-api/src/com/db/capella/model/SelectedModelElement.java +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * The selected Capella model element - */ -@Schema(description = "The selected Capella model element") -@JsonPropertyOrder({ - SelectedModelElement.JSON_PROPERTY_NAME, - SelectedModelElement.JSON_PROPERTY_DESCRIPTION, - SelectedModelElement.JSON_PROPERTY_TYPE, - SelectedModelElement.JSON_PROPERTY_ID, - SelectedModelElement.JSON_PROPERTY_SID, - SelectedModelElement.JSON_PROPERTY_D_U_M_M_Y -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class SelectedModelElement { - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - private String name; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - private String description; - - public static final String JSON_PROPERTY_TYPE = "type"; - @JsonProperty(JSON_PROPERTY_TYPE) - private String type; - - public static final String JSON_PROPERTY_ID = "id"; - @JsonProperty(JSON_PROPERTY_ID) - private String id; - - public static final String JSON_PROPERTY_SID = "sid"; - @JsonProperty(JSON_PROPERTY_SID) - private String sid; - - public static final String JSON_PROPERTY_D_U_M_M_Y = "DUMMY"; - @JsonProperty(JSON_PROPERTY_D_U_M_M_Y) - private String DUMMY; - - public SelectedModelElement name(String name) { - this.name = name; - return this; - } - - /** - * The name of the selected element - * @return name - **/ - @JsonProperty(value = "name") - @Schema(description = "The name of the selected element") - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SelectedModelElement description(String description) { - this.description = description; - return this; - } - - /** - * The description of the selected element - * @return description - **/ - @JsonProperty(value = "description") - @Schema(description = "The description of the selected element") - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public SelectedModelElement type(String type) { - this.type = type; - return this; - } - - /** - * The type of the selected element - * @return type - **/ - @JsonProperty(value = "type") - @Schema(description = "The type of the selected element") - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public SelectedModelElement id(String id) { - this.id = id; - return this; - } - - /** - * The unique identifier for this element [source: capella study] - * @return id - **/ - @JsonProperty(value = "id") - @Schema(description = "The unique identifier for this element [source: capella study]") - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SelectedModelElement sid(String sid) { - this.sid = sid; - return this; - } - - /** - * The unique system identifier for this element - * @return sid - **/ - @JsonProperty(value = "sid") - @Schema(description = "The unique system identifier for this element") - - public String getSid() { - return sid; - } - - public void setSid(String sid) { - this.sid = sid; - } - - public SelectedModelElement DUMMY(String DUMMY) { - this.DUMMY = DUMMY; - return this; - } - - /** - * Dummy property - * @return DUMMY - **/ - @JsonProperty(value = "DUMMY") - @Schema(description = "Dummy property") - - public String getDUMMY() { - return DUMMY; - } - - public void setDUMMY(String DUMMY) { - this.DUMMY = DUMMY; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SelectedModelElement selectedModelElement = (SelectedModelElement) o; - return Objects.equals(this.name, selectedModelElement.name) && - Objects.equals(this.description, selectedModelElement.description) && - Objects.equals(this.type, selectedModelElement.type) && - Objects.equals(this.id, selectedModelElement.id) && - Objects.equals(this.sid, selectedModelElement.sid) && - Objects.equals(this.DUMMY, selectedModelElement.DUMMY); - } - - @Override - public int hashCode() { - return Objects.hash(name, description, type, id, sid, DUMMY); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SelectedModelElement {\n"); - - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" sid: ").append(toIndentedString(sid)).append("\n"); - sb.append(" DUMMY: ").append(toIndentedString(DUMMY)).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/rest-api/src/com/db/capella/model/Workspace.java b/rest-api/src/com/db/capella/model/Workspace.java deleted file mode 100644 index cb59c5d..0000000 --- a/rest-api/src/com/db/capella/model/Workspace.java +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * The current workspace - */ -@Schema(description = "The current workspace") -@JsonPropertyOrder({ - Workspace.JSON_PROPERTY_LOCATION -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class Workspace { - public static final String JSON_PROPERTY_LOCATION = "location"; - @JsonProperty(JSON_PROPERTY_LOCATION) - private String location; - - public Workspace location(String location) { - this.location = location; - return this; - } - - /** - * Location of the resource in the file system - * @return location - **/ - @JsonProperty(value = "location") - @Schema(description = "Location of the resource in the file system") - - public String getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Workspace workspace = (Workspace) o; - return Objects.equals(this.location, workspace.location); - } - - @Override - public int hashCode() { - return Objects.hash(location); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Workspace {\n"); - - sb.append(" location: ").append(toIndentedString(location)).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/rest-api/src/com/db/capella/model/WorkspaceProject.java b/rest-api/src/com/db/capella/model/WorkspaceProject.java deleted file mode 100644 index 5043191..0000000 --- a/rest-api/src/com/db/capella/model/WorkspaceProject.java +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright DB InfraGO AG and contributors -// SPDX-License-Identifier: Apache-2.0 - -/* - * Capella API - * API to access live data and modify Capella projects - * - * The version of the OpenAPI document: 0.0.1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.db.capella.model; - -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import io.swagger.v3.oas.annotations.media.Schema; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import jakarta.validation.constraints.*; -import jakarta.validation.Valid; - -/** - * A workspace project - */ -@Schema(description = "A workspace project") -@JsonPropertyOrder({ - WorkspaceProject.JSON_PROPERTY_OPEN, - WorkspaceProject.JSON_PROPERTY_MODIFIED, - WorkspaceProject.JSON_PROPERTY_FULL_PATH, - WorkspaceProject.JSON_PROPERTY_LOCATION, - WorkspaceProject.JSON_PROPERTY_NAME -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJerseyServerCodegen", comments = "Generator version: 7.9.0") -public class WorkspaceProject { - public static final String JSON_PROPERTY_OPEN = "open"; - @JsonProperty(JSON_PROPERTY_OPEN) - private Boolean open; - - public static final String JSON_PROPERTY_MODIFIED = "modified"; - @JsonProperty(JSON_PROPERTY_MODIFIED) - private Boolean modified = false; - - public static final String JSON_PROPERTY_FULL_PATH = "fullPath"; - @JsonProperty(JSON_PROPERTY_FULL_PATH) - private String fullPath; - - public static final String JSON_PROPERTY_LOCATION = "location"; - @JsonProperty(JSON_PROPERTY_LOCATION) - private String location; - - public static final String JSON_PROPERTY_NAME = "name"; - @JsonProperty(JSON_PROPERTY_NAME) - private String name = ""; - - public WorkspaceProject open(Boolean open) { - this.open = open; - return this; - } - - /** - * Whether the project is open or not - * @return open - **/ - @JsonProperty(value = "open") - @Schema(description = "Whether the project is open or not") - - public Boolean getOpen() { - return open; - } - - public void setOpen(Boolean open) { - this.open = open; - } - - public WorkspaceProject modified(Boolean modified) { - this.modified = modified; - return this; - } - - /** - * Whether the project is in a dirty (unsaved changes) state or not - * @return modified - **/ - @JsonProperty(value = "modified") - @Schema(description = "Whether the project is in a dirty (unsaved changes) state or not") - - public Boolean getModified() { - return modified; - } - - public void setModified(Boolean modified) { - this.modified = modified; - } - - public WorkspaceProject fullPath(String fullPath) { - this.fullPath = fullPath; - return this; - } - - /** - * Full, absolute path of the resource relative to the workspace. A resource's full path indicates the route from the root of the workspace to the resource. Within a workspace, there is exactly one such path for any given resource. The first segment of these paths name a project; remaining segments, folders and/or files within that project. The returned path never has a trailing separator. - * @return fullPath - **/ - @JsonProperty(value = "fullPath") - @Schema(description = "Full, absolute path of the resource relative to the workspace. A resource's full path indicates the route from the root of the workspace to the resource. Within a workspace, there is exactly one such path for any given resource. The first segment of these paths name a project; remaining segments, folders and/or files within that project. The returned path never has a trailing separator. ") - - public String getFullPath() { - return fullPath; - } - - public void setFullPath(String fullPath) { - this.fullPath = fullPath; - } - - public WorkspaceProject location(String location) { - this.location = location; - return this; - } - - /** - * Location of the resource in the file system - * @return location - **/ - @JsonProperty(value = "location") - @Schema(description = "Location of the resource in the file system") - - public String getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } - - public WorkspaceProject name(String name) { - this.name = name; - return this; - } - - /** - * Name of the resource. The workspace root's name is the empty string. - * @return name - **/ - @JsonProperty(value = "name") - @Schema(description = "Name of the resource. The workspace root's name is the empty string. ") - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WorkspaceProject workspaceProject = (WorkspaceProject) o; - return Objects.equals(this.open, workspaceProject.open) && - Objects.equals(this.modified, workspaceProject.modified) && - Objects.equals(this.fullPath, workspaceProject.fullPath) && - Objects.equals(this.location, workspaceProject.location) && - Objects.equals(this.name, workspaceProject.name); - } - - @Override - public int hashCode() { - return Objects.hash(open, modified, fullPath, location, name); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class WorkspaceProject {\n"); - - sb.append(" open: ").append(toIndentedString(open)).append("\n"); - sb.append(" modified: ").append(toIndentedString(modified)).append("\n"); - sb.append(" fullPath: ").append(toIndentedString(fullPath)).append("\n"); - sb.append(" location: ").append(toIndentedString(location)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).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 "); - } -}