Remove deprecated (#2800)
* ActionFields.DETAILSTATUS removed and replaces with STATUS (so status is with changed semantic - not active but real status) * MgmtAction.detailStatus removed and replaced with status (so status is with changed semantic - not active but real status) * MgmtTargetTagRestApi.assignTargetsPut removed - use POST method * ActionStatusFields.REPORTEDAT deprecation removed - it is a synonym of CREATEDAT but is part of timestamp/reported aspect while createdat is part of creted at/by * MgmtDistributionSetRequestBodyPost.os/runtime/application is removed and * ActionStatusFields.TIMESTAMPT added Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -20,10 +20,8 @@ import lombok.Getter;
|
||||
public enum ActionFields implements QueryField {
|
||||
|
||||
ID("id"),
|
||||
@Deprecated(since = "0.10.0", forRemoval = true) // use ACTIVE
|
||||
STATUS("active"), // true if status is "pending", false if "finished", after removal, will deprecate DETAILSTATUS too and replace with STATUS
|
||||
ACTIVE("active"), // true if st
|
||||
DETAILSTATUS("status"), // real status
|
||||
ACTIVE("active"),
|
||||
STATUS("status"),
|
||||
LASTSTATUSCODE("lastActionStatusCode"),
|
||||
CREATEDAT("createdAt"),
|
||||
CREATEDBY("createdBy"),
|
||||
@@ -48,19 +46,4 @@ public enum ActionFields implements QueryField {
|
||||
this.jpaEntityFieldName = jpaEntityFieldName;
|
||||
this.subEntityAttributes = List.of(subEntityAttributes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 0.10.0 - use {@link #ACTIVE} instead of {@link #STATUS}
|
||||
*/
|
||||
@Deprecated(since = "0.10.0", forRemoval = true) // remove together with STATUS (with active meaning)
|
||||
public static Object convertStatusValue(final String value) {
|
||||
final String trimmedValue = value.trim();
|
||||
if (trimmedValue.equalsIgnoreCase("pending")) {
|
||||
return true;
|
||||
} else if (trimmedValue.equalsIgnoreCase("finished")) {
|
||||
return false;
|
||||
} else {
|
||||
throw new IllegalArgumentException("field 'status' must be one of the following values {pending, finished}");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,9 +18,11 @@ import lombok.Getter;
|
||||
public enum ActionStatusFields implements QueryField {
|
||||
|
||||
ID("id"),
|
||||
@Deprecated
|
||||
REPORTEDAT("createdAt"),
|
||||
CREATEDAT("createdAt"),
|
||||
// search fields in sync with entity specifics (timestamp & report time)
|
||||
TIMESTAMP("timestamp"),
|
||||
REPORTEDAT("createdAt"), // same as CREATEDAT
|
||||
// fields for db records as in other fields - created at / by
|
||||
CREATEDAT("createdAt"), // same as REPORTEDAT
|
||||
CREATEDBY("createdBy");
|
||||
|
||||
private final String jpaEntityFieldName;
|
||||
|
||||
Reference in New Issue
Block a user