Software Dto
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Software Dto is a small group of Java data-transfer objects used by the OpenFrame test-service core to deserialize software-inventory and vulnerability responses. It is supplied at runtime by the com.openframe.oss:openframe-test-service-core library, version 7.0.11, which OpenFrame OSS Tenant consumes. The classes are test-facing representations of cursor-paginated GraphQL connection edges plus a compact vulnerability roll-up.
All five types are deliberately permissive JSON models: @JsonIgnoreProperties(ignoreUnknown = true) allows tests to consume responses that contain fields outside the fixture contract. Lombok supplies accessors, a builder, and no-argument and all-argument construction, making the objects convenient both for Jackson deserialization and explicit test setup.
| Component | Responsibility |
|---|---|
| Software Edge | Represents one cursor-addressable software item in a software connection. |
| Software On Device Edge | Represents one installed-software record associated with a device. |
| Software Vulnerability Edge | Represents one software-to-vulnerability association in a cursor-paginated connection. |
| Vulnerability Edge | Represents one vulnerability item in a cursor-paginated vulnerability connection. |
| Software Vulnerability Summary | Carries the highest observed severity and the total CVE count for a software title. |
The edge classes implement the same response pattern: a domain-specific node preserves the returned entity while cursor preserves its pagination position. They do not fetch data, validate CVEs, or calculate severity; those responsibilities remain with the API and software-projection layers. Software Dto only provides stable shapes for test deserialization and assertions.
flowchart LR
Api["Software Inventory API Response"] --> SoftwareConnection["Software Connection"]
SoftwareConnection --> SoftwareEdge["Software Edge"]
SoftwareEdge --> SoftwareNode["Software Node"]
SoftwareEdge --> CursorA["Cursor"]
DeviceConnection["Software On Device Connection"] --> DeviceEdge["Software On Device Edge"]
DeviceEdge --> DeviceNode["Software On Device Node"]
DeviceEdge --> CursorB["Cursor"]
VulnerabilityConnection["Vulnerability Connections"] --> AssociationEdge["Software Vulnerability Edge"]
VulnerabilityConnection --> VulnerabilityEdge["Vulnerability Edge"]
AssociationEdge --> AssociationNode["Software Vulnerability Node"]
VulnerabilityEdge --> VulnerabilityNode["Vulnerability Node"]
SoftwareNode --> Summary["Software Vulnerability Summary"]
Summary --> Severity["Highest Severity"]
Summary --> CveCount["CVE Count"]
SoftwareEdge, SoftwareOnDeviceEdge, SoftwareVulnerabilityEdge, and VulnerabilityEdge each expose two fields:
| Field | Type | Meaning |
|---|---|---|
node |
Domain DTO | The entity for the current connection entry. The concrete types are Software, SoftwareOnDevice, SoftwareVulnerability, and Vulnerability, respectively. Their definitions are outside the supplied Software Dto sources. |
cursor |
String |
Opaque pagination position returned for the current entry. Tests should pass it back only through the API pagination contract rather than derive semantics from it. |
The typed edge classes prevent mixing similar-looking connection entries in tests. For example, an installed-software result is modeled as SoftwareOnDeviceEdge, not as a generic software edge, even though both include a node and cursor.
SoftwareVulnerabilitySummary is a roll-up rather than a connection entry.
| Field | Type | Meaning |
|---|---|---|
highestSeverity |
String |
Highest CVE severity associated with the software title, as supplied by the response. |
cveCount |
Integer |
Count of associated CVEs. |
Because the DTO stores response values unchanged, callers should not assume an ordering or normalization scheme for highestSeverity beyond the API contract.
sequenceDiagram
participant Test as "Integration Test"
participant Api as "Software API"
participant Mapper as "Jackson Mapper"
participant Dto as "Software Dto"
Test->>Api: Request software inventory or vulnerabilities
Api->>Test: Return paginated JSON response
Test->>Mapper: Deserialize response payload
Mapper->>Dto: Populate edge nodes and cursors
Dto->>Test: Provide typed values for assertions
Integer, so a missing CVE count can remain distinguishable from a supplied zero count.Software Dto belongs to the test data model supplied by OpenFrame OSS Library. It supports software inventory and vulnerability assertions performed by the test-service core. At the application level, the tenant repository publishes the com.openframe:openframe-test artifact and consumes the library implementation at version 7.0.11; this module is therefore assembled into the tenant's test runtime rather than implemented in the tenant repository itself.
The source-defined DTOs align with the broader software domain: API-side software queries expose inventory and vulnerability data, and data-layer software projection services maintain the underlying read models. Those systems are not duplicated here; Software Dto is the narrow boundary used by tests to represent their returned values.