Skip to content

Commit e9c060e

Browse files
committed
Add missing DisplayType values
In org.ovirt.engine.core.common.businessentities.DisplayType we have the supported DisplayType's. The API Model DisplayType values do not match these values. The ovirt-engine code contains code to map VNC and SPICE DisplayType from the API to the businessentities.DisplayType values, but never were the real values added to the API Model. In this commit we deprecate the 'legacy' DisplayType's in favor of the real DisplayType's. Signed-off-by: Jean-Louis Dupond <[email protected]> Change-Id: Ibc9d7cbec88effd62172983da6ab705160ad8879
1 parent f0d4647 commit e9c060e

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

src/main/java/types/DisplayType.java

+46-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public enum DisplayType {
3939
* @date 23 Apr 2017
4040
* @status added
4141
*/
42+
@Deprecated
4243
VNC,
4344

4445
/**
@@ -49,5 +50,49 @@ public enum DisplayType {
4950
* @date 23 Apr 2017
5051
* @status added
5152
*/
52-
SPICE;
53+
@Deprecated
54+
SPICE,
55+
56+
/**
57+
* Display of type CIRRUS
58+
* @author Jean-Louis Dupond <[email protected]>
59+
* @date 26 May 2023
60+
* @status added
61+
*/
62+
@Deprecated
63+
CIRRUS,
64+
65+
/**
66+
* Display of type QXL
67+
* @author Jean-Louis Dupond <[email protected]>
68+
* @date 26 May 2023
69+
* @status added
70+
*/
71+
@Deprecated
72+
QXL,
73+
74+
/**
75+
* Display of type VGA
76+
* @author Jean-Louis Dupond <[email protected]>
77+
* @date 26 May 2023
78+
* @status added
79+
*/
80+
VGA,
81+
82+
/**
83+
* Display of type BOCHS
84+
* @author Jean-Louis Dupond <[email protected]>
85+
* @date 26 May 2023
86+
* @status added
87+
*/
88+
BOCHS,
89+
90+
/**
91+
* Display of type NONE
92+
* This is for headless VM's
93+
* @author Jean-Louis Dupond <[email protected]>
94+
* @date 26 May 2023
95+
* @status added
96+
*/
97+
NONE;
5398
}

0 commit comments

Comments
 (0)