public interface ResourceDomainDataProvider
extends com.wm.app.b2b.server.jca.LogDescriptor
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
adapterCheckValue(java.lang.String serviceName,
java.lang.String resourceDomainName,
java.lang.String[][] values,
java.lang.String testValue)
Checks a resourceDomain value.
|
ResourceDomainValues[] |
adapterResourceDomainLookup(java.lang.String serviceName,
java.lang.String resourceDomainName,
java.lang.String[][] values)
Looks up values for a resourceDomain.
|
void |
registerResourceDomain(WmAdapterAccess access)
Sets a reference to the
WmAdapterAccess object. |
java.lang.Boolean adapterCheckValue(java.lang.String serviceName, java.lang.String resourceDomainName, java.lang.String[][] values, java.lang.String testValue) throws AdapterException
Boolean.TRUE
if
testValue is valid in this context, Boolean.FALSE
if it is
not valid, or null
if the value cannot be confirmed by the
adapter.
Implement this method if your adapter supports resourceDomains. Return
null
if you are not able to confirm the value. Otherwise,
return Boolean.TRUE
if the value is valid, or
Boolean.FALSE
if the value is not valid.
This method is called when a user types a value into
the Adapter Service Editor or Adapter Notification Editor
while the editor is displaying an incomplete resourceDomain (ResourceDomainValues.complete
is false) and the
ResourceDomainValues.canValidate
flag is set to true.
serviceName
- the name of the service templateresourceDomainName
- the name of the resourceDomainvalues
- the values for the resourceDomain parameterstestValue
- the value to testBoolean.TRUE
if testValue
is valid
in this context, Boolean.FALSE
if it is not
valid, or null
if the value cannot be confirmed
by the adapter.AdapterException
- if it encounters an error.ResourceDomainValues[] adapterResourceDomainLookup(java.lang.String serviceName, java.lang.String resourceDomainName, java.lang.String[][] values) throws AdapterException
ResourceDomainValues
class with the proper data. Returns multiple objects
if you are using tuples.serviceName
- the name of the adapter service/notification templateresourceDomainName
- the name of the resourceDomainvalues
- the values for the resourceDomain parametersAdapterException
- if it encounters an error.void registerResourceDomain(WmAdapterAccess access) throws AdapterException
WmAdapterAccess
object. This method will be called
after the constructor has been called, but before any
properties are set. The reference to WmAdapterAccess should be
stored for later use, if needed.
Register resourceDomain, (using
addResourceDomainLookup
,
addResourceDomain
, etc.) in this method.
access
- a reference to WmAdapterAccess objectAdapterException
- if it encounters an error.
Copyright © 2003 - 2021 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.