Class SampleRulesServiceImpl
java.lang.Object
com.codebarrel.automation.sample.rules.service.SampleRulesServiceImpl
- All Implemented Interfaces:
SampleRulesService
-
Constructor Summary
ConstructorsConstructorDescriptionSampleRulesServiceImpl
(AutomationConfigService automationConfigService, I18nFactory i18nFactory, ProjectService projectService, SampleRulesProviderFactory providerFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateSampleRules
(CreateSampleRulesRequest createRequest) Creates project type specific sample rules using the supplied project key.
-
Constructor Details
-
SampleRulesServiceImpl
@Inject public SampleRulesServiceImpl(AutomationConfigService automationConfigService, I18nFactory i18nFactory, ProjectService projectService, SampleRulesProviderFactory providerFactory)
-
-
Method Details
-
createSampleRules
Description copied from interface:SampleRulesService
Creates project type specific sample rules using the supplied project key. If no project is supplied will add generic rules to global context. Sample rules will only be applied once per context, if you import sample rules once into a project, you can't import them again.- Specified by:
createSampleRules
in interfaceSampleRulesService
- Parameters:
createRequest
- containing projectKey if there is one and tenant information- Returns:
- whether the request was successful and created rules as payload if succeeded
-