|
|
The bearer_token is not a reserved keyword, and there is no specific handling for bearer token authentication in the sample implementation. It could essentially be any other string that the customization code can identify and utilize while constructing a request for the relevant external endpoint.
|
|
Connection information submitted via captureExternalConnections utility
|
Customization code submitted via CCD utility
|
|---|---|
|
"material_api": {
"baseurl": "replace with your base-url", "url_fragments": { "get_material_number": "/api/material", "get_material_data_stream": "/api/materialData/stream" }, "secrets": { "client_cert": "replace with path to clientcertchain", "bearer_token": "Bearer replace with your bearer token" }, "server_cert": "replace with path to clientcertchain" } |
CustomIntegrationHelper customIntegrationHelper
= new CustomIntegrationHelper("material_api"); public String getPartNumber() throws Exception { URL apiUr1 = customIntegrationHelper.getNamedEndpointURL("get_material_number"); Map<String, String> map = customIntegrationHelper.getSecretsMap(); String bearerToken = map.get("bearer_token"); SSLContext sslContext = customIntegrationHelper.getInitializedSSLContext(); . . . } |
|
|
The bearer_token is not a reserved keyword, and there is no specific handling for bearer token authentication in the sample implementation. It could essentially be any other string that the customization code can identify and utilize while constructing a request for the relevant external endpoint.
|
|
File Name
|
Description
|
|---|---|
|
ApiClient.java
|
This class is used make requests to the external endpoint.
|
|
NumberGenerator.java
|
This class overrides Windchill’s NumberGenerator.java class and returns a unique number from the external endpoint, which is used to create the new ACME Engineered Material.
|
|
AcmeMaterialHelper.java
|
This class is used to persist the data to external endpoint when the ACME Engineered Material is created.
|
|
Streamer.java
|
This class establishes a stream connection with the external endpoint. It parses the responses received from the endpoint and appends them to the custom-table.
|
|
InventoryTableBuilder.java
|
This class contains the table builder for displaying the global inventory.
|
|
acmeManagerResource.java
|
This is a resource bundle file for the custom-actions.
|
|
File Name
|
Description
|
|---|---|
|
ACMEOrganization.xml
|
To create an organization named ACMEOrganization.
|
|
ACMEUser.xml
|
To create a user named acmeorgadmin and assign the user admin role in ACMEOrganization.
|
|
ACMEAttributes.xml
|
To create the prerequisite attributes.
|
|
ACMEEngineeredMaterial.xml
|
To create the new sub-type under part.
|
|
ACMERuleAlgorithm.xml
|
To create an OIR required for use case 1.
|
|
ACMELifeCycleTemplate.xml
|
To create a life cycle template for use case 2.
|
|
ACMEProcessTemplate.xml
|
To create a workflow for use case 2.
|
|
loadFileSet.xml
|
To load all the loadFiles collectively.
|
|
custom.site.xconf
|
Add the property values to refer the custom-actions and custom-actionModels defined in this customization.
|
|
File Name
|
Description
|
|
inventory-actionModels.xml
|
To define the action models used in this package.
|
|
inventory-actions.xml
|
To define the actions used in this package.
|