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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult
    apply(String yamlContent)
     
    com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult
    applyWithScm(String yamlContent, String scmType, String scmCommit, String scmAuthor, String scmDate, String scmMessage, String scmRemote, String scmFileName)
     
    com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult
    generate(String path, boolean globalPermissions, boolean roles, boolean users, boolean includeSecrets, boolean includeDefaults)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public com.xebialabs.deployit.engine.api.dto.XLDAsCodeResult apply(String yamlContent)
      Specified by:
      apply in interface com.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:
      applyWithScm in interface com.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:
      generate in interface com.xebialabs.deployit.engine.api.XLDAsCodeService