Class CreateDeployment

java.lang.Object
net.lightapi.portal.command.AbstractCommandHandler
net.lightapi.portal.deployment.command.handler.CreateDeployment
All Implemented Interfaces:
com.networknt.rpc.HybridHandler

public class CreateDeployment extends net.lightapi.portal.command.AbstractCommandHandler
' create a deployment for the given product.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from class net.lightapi.portal.command.AbstractCommandHandler

    config, HOST_ID, INCORRECT_TOKEN_TYPE, SEND_MESSAGE_EXCEPTION, USER_ID

    Fields inherited from interface com.networknt.rpc.HybridHandler

    ERROR_NOT_DEFINED, REQUEST_SUCCESS, STATUS_VALIDATION_ERROR
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.networknt.monad.Result<Map<String,Object>>
    additionalAction(io.undertow.server.HttpServerExchange exchange, Map<String,Object> map, String userId, String host)
    Invoke platform to start a deployment job, then add returned fields (jobId, etc.) to cloud event payload.
    protected com.networknt.monad.Result<Map<String,Object>>
    enrichInput(io.undertow.server.HttpServerExchange exchange, Map<String,Object> map)
     
    protected String
     
    protected org.slf4j.Logger
     

    Methods inherited from class net.lightapi.portal.command.AbstractCommandHandler

    buildCloudEvent, customizeOutput, handle, validateInput, validateTokenType

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.networknt.rpc.HybridHandler

    getStatus, getStatus, validate
  • Field Details

  • Constructor Details

    • CreateDeployment

      public CreateDeployment()
  • Method Details

    • getCloudEventType

      protected String getCloudEventType()
      Specified by:
      getCloudEventType in class net.lightapi.portal.command.AbstractCommandHandler
    • getLogger

      protected org.slf4j.Logger getLogger()
      Specified by:
      getLogger in class net.lightapi.portal.command.AbstractCommandHandler
    • enrichInput

      protected com.networknt.monad.Result<Map<String,Object>> enrichInput(io.undertow.server.HttpServerExchange exchange, Map<String,Object> map)
      Overrides:
      enrichInput in class net.lightapi.portal.command.AbstractCommandHandler
    • additionalAction

      protected com.networknt.monad.Result<Map<String,Object>> additionalAction(io.undertow.server.HttpServerExchange exchange, Map<String,Object> map, String userId, String host)
      Invoke platform to start a deployment job, then add returned fields (jobId, etc.) to cloud event payload.
      Overrides:
      additionalAction in class net.lightapi.portal.command.AbstractCommandHandler