Skip to content

Commit

Permalink
feat(element-template-generator): remove the value property and use t…
Browse files Browse the repository at this point in the history
…his annotation to other connetors
  • Loading branch information
mathias-vandaele committed Feb 18, 2025
1 parent d96f334 commit c216a8b
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import io.camunda.connector.generator.java.annotation.DropdownItem;

public enum DocumentLocationType {
@DropdownItem(label = "S3", order = 1)
S3,
@DropdownItem(label = "Camunda Document", order = 0)
UPLOADED;
@DropdownItem(label = "Camunda Document")
UPLOADED,
@DropdownItem(label = "S3")
S3
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import io.camunda.connector.generator.java.annotation.DropdownItem;

public enum TextractExecutionType {
@DropdownItem(label = "Real-time", order = 1)
@DropdownItem(label = "Asynchronous")
ASYNC,
@DropdownItem(label = "Real-time")
SYNC,
@DropdownItem(label = "Polling", order = 2)
POLLING,
@DropdownItem(label = "Asynchronous", order = 0)
ASYNC;
@DropdownItem(label = "Polling")
POLLING
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import io.camunda.connector.generator.java.annotation.DropdownItem;

public enum CryptographicProtocol {
@DropdownItem(label = "None", order = 2)
NONE,
@DropdownItem(label = "TLS", order = 0)
@DropdownItem(label = "TLS")
TLS,
@DropdownItem(label = "SSL", order = 1)
SSL;
@DropdownItem(label = "SSL")
SSL,
@DropdownItem(label = "None")
NONE
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

public enum ContentType {
@JsonEnumDefaultValue
@DropdownItem(label = "PLAIN", order = 0)
@DropdownItem(label = "PLAIN")
PLAIN("text/plain; charset=utf-8"),
@DropdownItem(label = "HTML", order = 1)
@DropdownItem(label = "HTML")
HTML("text/html; charset=utf-8"),
@DropdownItem(label = "HTML & Plaintext", order = 2)
@DropdownItem(label = "HTML & Plaintext")
MULTIPART("multipart/mixed; charset=utf-8");

private final String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import io.camunda.connector.generator.java.annotation.DropdownItem;

public enum SortFieldImap {
@DropdownItem(label = "Received Date", order = 0)
@DropdownItem(label = "Received Date")
RECEIVED_DATE,
@DropdownItem(label = "Sent Date", order = 1)
@DropdownItem(label = "Sent Date")
SENT_DATE,
@DropdownItem(label = "Size", order = 2)
@DropdownItem(label = "Size")
SIZE;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import io.camunda.connector.generator.java.annotation.DropdownItem;

public enum SortFieldPop3 {
@DropdownItem(label = "Sent Date", order = 0)
@DropdownItem(label = "Sent Date")
SENT_DATE,
@DropdownItem(label = "Size", order = 1)
@DropdownItem(label = "Size")
SIZE;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
import java.util.function.Function;

public enum SortOrder {
@DropdownItem(order = 0, label = "ASC")
@DropdownItem(label = "ASC")
ASC(comparison -> comparison),
@DropdownItem(order = 1, label = "DESC")
@DropdownItem(label = "DESC")
DESC(comparison -> -comparison);

private final Function<Integer, Integer> comparator;
Expand Down

0 comments on commit c216a8b

Please sign in to comment.