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.ObjectDefinitionsgetObjectDefinitions(String objectTypeId, Collection<ObjectDefinitionRole> roles)Generates the Input / Output Object Definition based off of the Path (objectTypeId) and the selectedBrowseContext.getCustomOperationType().ObjectTypesgetObjectTypes()Creates anObjectTypeswith a list ofObjectTypewhich 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 anObjectTypeswith a list ofObjectTypewhich 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 includeOpenAPIRequestCookieandBrowseFieldfor 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:BaseBrowserReturns the base connection that was either provided or created when this instance was created.- Overrides:
getConnectionin classBaseBrowser- Returns:
- the base connection
-
-