@Component public class StepDefinitionManagerImpl extends com.marklogic.client.ext.helper.LoggingObject implements StepDefinitionManager, StepDefinitionProvider
STEP_DEFINITION_FILE_EXTENSION
Constructor and Description |
---|
StepDefinitionManagerImpl() |
StepDefinitionManagerImpl(com.marklogic.hub.HubClient hubClient,
HubProject hubProject) |
StepDefinitionManagerImpl(HubConfig hubConfig) |
Modifier and Type | Method and Description |
---|---|
StepDefinition |
createStepDefinitionFromJSON(com.fasterxml.jackson.databind.JsonNode json)
Creates a Step Definition from a given JsonNode
|
void |
deleteStepDefinition(StepDefinition stepDefinition)
Deletes a Step Definition from disk
|
StepDefinition |
getStepDefinition(java.lang.String name,
StepDefinition.StepDefinitionType type)
Returns a single Step Definition given a name and a type
|
java.util.ArrayList<java.lang.String> |
getStepDefinitionNamesByType(StepDefinition.StepDefinitionType type)
Returns a list of Step Definition names that have the given type
|
java.util.ArrayList<StepDefinition> |
getStepDefinitions()
Returns a list of all Step Definition currently defined
|
java.util.ArrayList<StepDefinition> |
getStepDefinitionsByType(StepDefinition.StepDefinitionType type)
Returns a list of Step Definitions that have the given type
|
void |
saveStepDefinition(StepDefinition stepDefinition)
Saves a Step Definition to disk
|
void |
saveStepDefinition(StepDefinition stepDefinition,
boolean autoIncrement)
Saves a Step Definition to disk
|
public StepDefinitionManagerImpl()
public StepDefinitionManagerImpl(HubConfig hubConfig)
public StepDefinitionManagerImpl(com.marklogic.hub.HubClient hubClient, HubProject hubProject)
public void saveStepDefinition(StepDefinition stepDefinition)
StepDefinitionManager
saveStepDefinition
in interface StepDefinitionManager
stepDefinition
- - the Step Definition object to be savedpublic void saveStepDefinition(StepDefinition stepDefinition, boolean autoIncrement)
StepDefinitionManager
saveStepDefinition
in interface StepDefinitionManager
stepDefinition
- - the Step Definition object to be savedautoIncrement
- - true to increment version, false if not topublic void deleteStepDefinition(StepDefinition stepDefinition)
StepDefinitionManager
deleteStepDefinition
in interface StepDefinitionManager
stepDefinition
- - the Step Definition object to be deletedpublic java.util.ArrayList<StepDefinition> getStepDefinitions()
StepDefinitionManager
getStepDefinitions
in interface StepDefinitionManager
public StepDefinition getStepDefinition(java.lang.String name, StepDefinition.StepDefinitionType type)
StepDefinitionManager
getStepDefinition
in interface StepDefinitionProvider
getStepDefinition
in interface StepDefinitionManager
name
- - name of the Step Definitiontype
- - type of the Step Definitionpublic java.util.ArrayList<StepDefinition> getStepDefinitionsByType(StepDefinition.StepDefinitionType type)
StepDefinitionManager
getStepDefinitionsByType
in interface StepDefinitionManager
type
- - type of the Step Definitionpublic java.util.ArrayList<java.lang.String> getStepDefinitionNamesByType(StepDefinition.StepDefinitionType type)
StepDefinitionManager
getStepDefinitionNamesByType
in interface StepDefinitionManager
type
- - type of the Step Definitionpublic StepDefinition createStepDefinitionFromJSON(com.fasterxml.jackson.databind.JsonNode json)
StepDefinitionManager
createStepDefinitionFromJSON
in interface StepDefinitionManager
json
- - a JsonNode