public class DemoEchoBrowser extends BaseBrowser
Constructor and Description |
---|
DemoEchoBrowser(DemoConnection conn) |
Modifier and Type | Method and Description |
---|---|
DemoConnection |
getConnection()
Returns the base connection that was either provided or created when this instance was created.
|
ObjectDefinitions |
getObjectDefinitions(String objectTypeId,
Collection<ObjectDefinitionRole> roles)
Returns the object definitions for the given object type id and currently configured OperationType (as defined
by the BrowseContext).
|
ObjectTypes |
getObjectTypes()
Returns the object types which can be utilized by the currently configured OperationType (as defined by the
BrowseContext).
|
getContext
public DemoEchoBrowser(DemoConnection conn)
public ObjectTypes getObjectTypes()
Browser
AtomConfig.getMaxNumberObjectTypes()
)public ObjectDefinitions getObjectDefinitions(String objectTypeId, Collection<ObjectDefinitionRole> roles)
Browser
The returned collection of definitions must correspond to the given collection of roles (the definitions must
be in the same order as the roles). There must be a definition for each
"required"
role for a given OperationType. There may be a
definition for any "supported"
role for a given
OperationType.
Note, the DELETE operation is handled uniquely. By default, this method is not invoked for DELETE operations. However, if the connector has specified an "sdkApiVersion" of "1.0.15" or greater in the connector config file, this method will be invoked. In this situation, the connector implementation may set a cookie for the INPUT definition, but any schema will be ignored. Also, the connector implementation may return an OUTPUT definition.
objectTypeId
- the id of the relevant object type chosen from the list returned from a previous call to
Browser.getObjectTypes()
roles
- the roles corresponding to the profiles requestedpublic DemoConnection getConnection()
BaseBrowser
getConnection
in class BaseBrowser