Class SimpleBrowseContext

    • Constructor Detail

      • SimpleBrowseContext

        public SimpleBrowseContext​(AtomConfig config,
                                   Connector connector,
                                   OperationType opType,
                                   Map<String,​Object> connProps,
                                   Map<String,​Object> opProps)
        Constructs a new SimpleBrowseContext
        Parameters:
        config - the basic config for browsing
        opType - the type of operation for browsing
        connProps - the connection properties for browsing, may be null
        opProps - the operation properties for browsing, may be null
      • SimpleBrowseContext

        public SimpleBrowseContext​(AtomConfig config,
                                   Connector connector,
                                   OperationType opType,
                                   String customOpType,
                                   Map<String,​Object> connProps,
                                   Map<String,​Object> opProps)
        Constructs a new SimpleBrowseContext
        Parameters:
        config - the basic config for browsing
        opType - the type of operation for browsing
        customOpType - the custom type of operation for browsing
        connProps - the connection properties for browsing, may be null
        opProps - the operation properties for browsing, may be null
    • Method Detail

      • getCustomOperationType

        public String getCustomOperationType()
        Description copied from interface: BrowseContext
        Returns the custom type of the operation that is currently being configured. This is the customTypeId field from the connector descriptor.
        Specified by:
        getCustomOperationType in interface BrowseContext
        Returns:
        customTypeId field from the connector descriptor.
      • getConnectionProperties

        public PropertyMap getConnectionProperties()
        Description copied from interface: ConnectorContext
        Returns the relevant connection properties if this connector has the requireConnectionForBrowse flag enabled in the connector's descriptor.
        Specified by:
        getConnectionProperties in interface ConnectorContext
      • getOperationProperties

        public PropertyMap getOperationProperties()
        Description copied from interface: BrowseContext
        Returns any operation properties flagged as includeInBrowse for the current OperationType in the connector's descriptor.
        Specified by:
        getOperationProperties in interface BrowseContext
      • getConnectorCache

        public ConcurrentMap<Object,​Object> getConnectorCache()
        Description copied from interface: ConnectorContext
        Returns the current connector cache. This is the preferred means for caching any Connector resources for use across operation calls. This cache is Boomi account specific, so login/credential based information may be put in this cache. Note, however that a given Boomi account may still have multiple connector service accounts, so the cache information should take that into account (e.g. by caching information based on the service username). The lifetime of this cache is defined by the lifetime of the Connector instance (so, essentially indefinite), and, among other things, the objects in this cache must be used in a thread-safe manner.
        Specified by:
        getConnectorCache in interface ConnectorContext