This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new e9909f26bab5 camel-workday: three options are each filed under a doc
group named after themselves (#29969)
e9909f26bab5 is described below
commit e9909f26bab5525bed1fad399bf4c5834f1e09fd
Author: dhairya05 <[email protected]>
AuthorDate: Sun Nov 15 12:51:46 2026 +0530
camel-workday: three options are each filed under a doc group named after
themselves (#29969)
host, tenant and reportFormat label themselves rather than a group:
@UriParam(label = "host", description = "Workday Host name.")
@UriParam(label = "tenant", description = "Workday Tenant name.")
@UriParam(label = "format", description = "Workday Report as a service
output format.", ...)
label is a set of group tokens, so workday.json gains three groups -
host, tenant and format - each holding the one option that named it,
while the same class uses security and advanced correctly for its other
options.
All three are plain connection and output settings of a producer-only
component, so they belong in common, which is where an option with no
label of its own goes.
The regenerated workday.json files are included (produced by
camel-package-maven-plugin).
---
.../apache/camel/catalog/components/workday.json | 16 ++++-----
.../apache/camel/component/workday/workday.json | 16 ++++-----
.../component/workday/WorkdayConfiguration.java | 6 ++--
.../dsl/WorkdayEndpointBuilderFactory.java | 42 +++++++++++-----------
4 files changed, 40 insertions(+), 40 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/workday.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/workday.json
index b90c60542de1..f73f9913d95d 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/workday.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/workday.json
@@ -37,13 +37,13 @@
"properties": {
"entity": { "index": 0, "kind": "path", "displayName": "Entity", "group":
"producer", "label": "", "required": true, "type": "enum", "javaType":
"org.apache.camel.component.workday.WorkdayConfiguration.Entity", "enum": [
"report", "commonAPI" ], "deprecated": false, "autowired": false, "secret":
false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "The entity to be
requested or subscribed [...]
"path": { "index": 1, "kind": "path", "displayName": "Path", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "The API path to
access an entity structure." },
- "lazyStartProducer": { "index": 2, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
- "httpConnectionManager": { "index": 3, "kind": "parameter", "displayName":
"Http Connection Manager", "group": "advanced", "label": "advanced",
"required": false, "type": "object", "javaType":
"org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Pool connection
manag [...]
- "reportFormat": { "index": 4, "kind": "parameter", "displayName": "Report
Format", "group": "format", "label": "format", "required": false, "type":
"enum", "javaType": "java.lang.String", "enum": [ "json" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue": "json",
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Report as
a service output format." },
- "host": { "index": 5, "kind": "parameter", "displayName": "Host", "group":
"host", "label": "host", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Host
name." },
- "clientId": { "index": 6, "kind": "parameter", "displayName": "Client Id",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday client Id
generated by API client for integrations." },
- "clientSecret": { "index": 7, "kind": "parameter", "displayName": "Client
Secret", "group": "security", "label": "security", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday client
Secret generated by API client for integrations." },
- "tokenRefresh": { "index": 8, "kind": "parameter", "displayName": "Token
Refresh", "group": "security", "label": "security", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday token
Refresh generated for integrations system user." },
- "tenant": { "index": 9, "kind": "parameter", "displayName": "Tenant",
"group": "tenant", "label": "tenant", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Tenant
name." }
+ "host": { "index": 2, "kind": "parameter", "displayName": "Host", "group":
"common", "label": "common", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Host
name." },
+ "reportFormat": { "index": 3, "kind": "parameter", "displayName": "Report
Format", "group": "common", "label": "common", "required": false, "type":
"enum", "javaType": "java.lang.String", "enum": [ "json" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue": "json",
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Report as
a service output format." },
+ "tenant": { "index": 4, "kind": "parameter", "displayName": "Tenant",
"group": "common", "label": "common", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Tenant
name." },
+ "lazyStartProducer": { "index": 5, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
+ "httpConnectionManager": { "index": 6, "kind": "parameter", "displayName":
"Http Connection Manager", "group": "advanced", "label": "advanced",
"required": false, "type": "object", "javaType":
"org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Pool connection
manag [...]
+ "clientId": { "index": 7, "kind": "parameter", "displayName": "Client Id",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday client Id
generated by API client for integrations." },
+ "clientSecret": { "index": 8, "kind": "parameter", "displayName": "Client
Secret", "group": "security", "label": "security", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday client
Secret generated by API client for integrations." },
+ "tokenRefresh": { "index": 9, "kind": "parameter", "displayName": "Token
Refresh", "group": "security", "label": "security", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday token
Refresh generated for integrations system user." }
}
}
diff --git
a/components/camel-workday/src/generated/resources/META-INF/org/apache/camel/component/workday/workday.json
b/components/camel-workday/src/generated/resources/META-INF/org/apache/camel/component/workday/workday.json
index b90c60542de1..f73f9913d95d 100644
---
a/components/camel-workday/src/generated/resources/META-INF/org/apache/camel/component/workday/workday.json
+++
b/components/camel-workday/src/generated/resources/META-INF/org/apache/camel/component/workday/workday.json
@@ -37,13 +37,13 @@
"properties": {
"entity": { "index": 0, "kind": "path", "displayName": "Entity", "group":
"producer", "label": "", "required": true, "type": "enum", "javaType":
"org.apache.camel.component.workday.WorkdayConfiguration.Entity", "enum": [
"report", "commonAPI" ], "deprecated": false, "autowired": false, "secret":
false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "The entity to be
requested or subscribed [...]
"path": { "index": 1, "kind": "path", "displayName": "Path", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "The API path to
access an entity structure." },
- "lazyStartProducer": { "index": 2, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
- "httpConnectionManager": { "index": 3, "kind": "parameter", "displayName":
"Http Connection Manager", "group": "advanced", "label": "advanced",
"required": false, "type": "object", "javaType":
"org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Pool connection
manag [...]
- "reportFormat": { "index": 4, "kind": "parameter", "displayName": "Report
Format", "group": "format", "label": "format", "required": false, "type":
"enum", "javaType": "java.lang.String", "enum": [ "json" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue": "json",
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Report as
a service output format." },
- "host": { "index": 5, "kind": "parameter", "displayName": "Host", "group":
"host", "label": "host", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Host
name." },
- "clientId": { "index": 6, "kind": "parameter", "displayName": "Client Id",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday client Id
generated by API client for integrations." },
- "clientSecret": { "index": 7, "kind": "parameter", "displayName": "Client
Secret", "group": "security", "label": "security", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday client
Secret generated by API client for integrations." },
- "tokenRefresh": { "index": 8, "kind": "parameter", "displayName": "Token
Refresh", "group": "security", "label": "security", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday token
Refresh generated for integrations system user." },
- "tenant": { "index": 9, "kind": "parameter", "displayName": "Tenant",
"group": "tenant", "label": "tenant", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Tenant
name." }
+ "host": { "index": 2, "kind": "parameter", "displayName": "Host", "group":
"common", "label": "common", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Host
name." },
+ "reportFormat": { "index": 3, "kind": "parameter", "displayName": "Report
Format", "group": "common", "label": "common", "required": false, "type":
"enum", "javaType": "java.lang.String", "enum": [ "json" ], "deprecated":
false, "autowired": false, "secret": false, "defaultValue": "json",
"configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Report as
a service output format." },
+ "tenant": { "index": 4, "kind": "parameter", "displayName": "Tenant",
"group": "common", "label": "common", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday Tenant
name." },
+ "lazyStartProducer": { "index": 5, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
+ "httpConnectionManager": { "index": 6, "kind": "parameter", "displayName":
"Http Connection Manager", "group": "advanced", "label": "advanced",
"required": false, "type": "object", "javaType":
"org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager",
"deprecated": false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Pool connection
manag [...]
+ "clientId": { "index": 7, "kind": "parameter", "displayName": "Client Id",
"group": "security", "label": "security", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday client Id
generated by API client for integrations." },
+ "clientSecret": { "index": 8, "kind": "parameter", "displayName": "Client
Secret", "group": "security", "label": "security", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday client
Secret generated by API client for integrations." },
+ "tokenRefresh": { "index": 9, "kind": "parameter", "displayName": "Token
Refresh", "group": "security", "label": "security", "required": true, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.workday.WorkdayConfiguration",
"configurationField": "workdayConfiguration", "description": "Workday token
Refresh generated for integrations system user." }
}
}
diff --git
a/components/camel-workday/src/main/java/org/apache/camel/component/workday/WorkdayConfiguration.java
b/components/camel-workday/src/main/java/org/apache/camel/component/workday/WorkdayConfiguration.java
index c3e0fce3eee0..4ae7c3e75793 100644
---
a/components/camel-workday/src/main/java/org/apache/camel/component/workday/WorkdayConfiguration.java
+++
b/components/camel-workday/src/main/java/org/apache/camel/component/workday/WorkdayConfiguration.java
@@ -59,15 +59,15 @@ public class WorkdayConfiguration {
@Metadata(required = true)
private String tokenRefresh;
- @UriParam(label = "host", description = "Workday Host name.")
+ @UriParam(label = "common", description = "Workday Host name.")
@Metadata(required = true)
private String host;
- @UriParam(label = "tenant", description = "Workday Tenant name.")
+ @UriParam(label = "common", description = "Workday Tenant name.")
@Metadata(required = true)
private String tenant;
- @UriParam(label = "format", description = "Workday Report as a service
output format.", enums = "json",
+ @UriParam(label = "common", description = "Workday Report as a service
output format.", enums = "json",
defaultValue = "json")
private String reportFormat = "json";
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WorkdayEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WorkdayEndpointBuilderFactory.java
index 09256400b6f3..bc47f3f2d865 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WorkdayEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WorkdayEndpointBuilderFactory.java
@@ -44,13 +44,28 @@ public interface WorkdayEndpointBuilderFactory {
return (AdvancedWorkdayEndpointBuilder) this;
}
+ /**
+ * Workday Host name.
+ *
+ * The option is a: <code>java.lang.String</code> type.
+ *
+ * Required: true
+ * Group: common
+ *
+ * @param host the value to set
+ * @return the dsl builder
+ */
+ default WorkdayEndpointBuilder host(String host) {
+ doSetProperty("host", host);
+ return this;
+ }
/**
* Workday Report as a service output format.
*
* The option is a: <code>java.lang.String</code> type.
*
* Default: json
- * Group: format
+ * Group: common
*
* @param reportFormat the value to set
* @return the dsl builder
@@ -60,18 +75,18 @@ public interface WorkdayEndpointBuilderFactory {
return this;
}
/**
- * Workday Host name.
+ * Workday Tenant name.
*
* The option is a: <code>java.lang.String</code> type.
*
* Required: true
- * Group: host
+ * Group: common
*
- * @param host the value to set
+ * @param tenant the value to set
* @return the dsl builder
*/
- default WorkdayEndpointBuilder host(String host) {
- doSetProperty("host", host);
+ default WorkdayEndpointBuilder tenant(String tenant) {
+ doSetProperty("tenant", tenant);
return this;
}
/**
@@ -119,21 +134,6 @@ public interface WorkdayEndpointBuilderFactory {
doSetProperty("tokenRefresh", tokenRefresh);
return this;
}
- /**
- * Workday Tenant name.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Required: true
- * Group: tenant
- *
- * @param tenant the value to set
- * @return the dsl builder
- */
- default WorkdayEndpointBuilder tenant(String tenant) {
- doSetProperty("tenant", tenant);
- return this;
- }
}
/**