Package com.boomi.connector.openapi
Class OpenAPIBrowser
- java.lang.Object
-
- com.boomi.connector.util.BaseBrowser
-
- com.boomi.connector.openapi.OpenAPIBrowser
-
- All Implemented Interfaces:
Browser
- Direct Known Subclasses:
OpenAPIDslBrowser
public class OpenAPIBrowser extends BaseBrowser
-
-
Constructor Summary
Constructors Constructor Description OpenAPIBrowser(OpenAPIConnection<? extends BrowseContext> connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenAPIConnection<? extends BrowseContext>
getConnection()
Returns the base connection that was either provided or created when this instance was created.ObjectDefinitions
getObjectDefinitions(String objectTypeId, Collection<ObjectDefinitionRole> roles)
Generates the Input / Output Object Definition based off of the Path (objectTypeId) and the selectedBrowseContext.getCustomOperationType()
.ObjectTypes
getObjectTypes()
Creates anObjectTypes
with a list ofObjectType
which will contain all the Paths that contain the selectedBrowseContext.getCustomOperationType()
If the spec provides an optional "operationId" then that will be used as the label, otherwise the path is used as both ID and Label.-
Methods inherited from class com.boomi.connector.util.BaseBrowser
getContext
-
-
-
-
Constructor Detail
-
OpenAPIBrowser
public OpenAPIBrowser(OpenAPIConnection<? extends BrowseContext> connection)
-
-
Method Detail
-
getObjectTypes
public ObjectTypes getObjectTypes()
Creates anObjectTypes
with a list ofObjectType
which will contain all the Paths that contain the selectedBrowseContext.getCustomOperationType()
If the spec provides an optional "operationId" then that will be used as the label, otherwise the path is used as both ID and Label.- Returns:
- the ObjectTypes
-
getObjectDefinitions
public ObjectDefinitions getObjectDefinitions(String objectTypeId, Collection<ObjectDefinitionRole> roles)
Generates the Input / Output Object Definition based off of the Path (objectTypeId) and the selectedBrowseContext.getCustomOperationType()
. This will also includeOpenAPIRequestCookie
andBrowseField
for operation parameters- Parameters:
objectTypeId
- the selected ObjectType's IDroles
- Roles for Operation- Returns:
- the ObjectDefinitions
-
getConnection
public OpenAPIConnection<? extends BrowseContext> getConnection()
Description copied from class:BaseBrowser
Returns the base connection that was either provided or created when this instance was created.- Overrides:
getConnection
in classBaseBrowser
- Returns:
- the base connection
-
-