Package com.xebialabs.deployit.core.rest
Class XLDAsCodeServiceImpl
java.lang.Object
com.xebialabs.deployit.core.rest.XLDAsCodeServiceImpl
- All Implemented Interfaces:
com.xebialabs.deployit.engine.api.XLDAsCodeService
@Controller
public class XLDAsCodeServiceImpl
extends Object
implements com.xebialabs.deployit.engine.api.XLDAsCodeService
REST Controller implementing XLDAsCodeService for DevOps-as-Code operations.
Provides REST endpoints for GitOps plugin and external workers to apply/generate YAML.
Following the same pattern as TaskBlockResource, this class:
- Annotated with @Controller (not @Service) to enable REST endpoint registration
- Uses @Workdir annotation to inject WorkDir context for file operations
- Implements the XLDAsCodeService interface defined in engine-api
-
Constructor Summary
ConstructorsConstructorDescriptionXLDAsCodeServiceImpl(com.xebialabs.deployit.ascode.service.DefinitionInterpreterService asCodeInterpretationService, com.xebialabs.deployit.ascode.service.generator.DefinitionGeneratorService generatorService, com.xebialabs.deployit.ascode.yaml.parser.XLDDefinitionParser parser) -
Method Summary
Modifier and TypeMethodDescriptioncom.xebialabs.deployit.engine.api.dto.XLDAsCodeResultcom.xebialabs.deployit.engine.api.dto.XLDAsCodeResultapplyWithScm(String yamlContent, String scmType, String scmCommit, String scmAuthor, String scmDate, String scmMessage, String scmRemote, String scmFileName) com.xebialabs.deployit.engine.api.dto.XLDAsCodeResultgenerate(String path, boolean globalPermissions, boolean roles, boolean users, boolean includeSecrets, boolean includeDefaults)
-
Constructor Details
-
XLDAsCodeServiceImpl
@Autowired public XLDAsCodeServiceImpl(com.xebialabs.deployit.ascode.service.DefinitionInterpreterService asCodeInterpretationService, com.xebialabs.deployit.ascode.service.generator.DefinitionGeneratorService generatorService, com.xebialabs.deployit.ascode.yaml.parser.XLDDefinitionParser parser)
-
-
Method Details
-
apply
- Specified by:
applyin interfacecom.xebialabs.deployit.engine.api.XLDAsCodeService
-
applyWithScm
public com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult applyWithScm(String yamlContent, String scmType, String scmCommit, String scmAuthor, String scmDate, String scmMessage, String scmRemote, String scmFileName) - Specified by:
applyWithScmin interfacecom.xebialabs.deployit.engine.api.XLDAsCodeService
-
generate
public com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult generate(String path, boolean globalPermissions, boolean roles, boolean users, boolean includeSecrets, boolean includeDefaults) - Specified by:
generatein interfacecom.xebialabs.deployit.engine.api.XLDAsCodeService
-