DataProvider

public interface DataProvider

Interface for classes that act as data providers for Tasks.

Methods

getName

String getName()

Returns data provider name.

Returns:the data provider name

lookup

Object lookup(String type, String lookupName, Map<String, String> lookupFields)

Returns single object matching given conditions.

Parameters:
  • type – the type of searched object
  • lookupName – the name of used lookup
  • lookupFields – the map of fields names and expected values
Returns:

single object matching conditions

supports

boolean supports(String type)

Checks if given type is supported by the DataProvider.

Parameters:
  • type – the type to be checked
Returns:

true if type is supported, false otherwise

toJSON

String toJSON()

Converts data provider to json.

Returns:json stored as String