Class PromoteInstance

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

public class PromoteInstance extends net.lightapi.portal.command.AbstractCommandHandler
Promotes data into an instance
  • Field Summary

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

    dbProvider, HOST_ID, INCORRECT_TOKEN_TYPE, OBJECT_NOT_FOUND, 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 String
     
    protected String
     
    protected String
     
    protected org.slf4j.Logger
     
    protected com.networknt.monad.Result<Map<String,Object>>
    validateInput(io.undertow.server.HttpServerExchange exchange, Map<String,Object> map, String userId, String host)
     

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

    additionalAction, buildCloudEvent, customizeOutput, enrichInput, handle, populateAggregateVersion, populateAggregateVersion, 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
  • Constructor Details

    • PromoteInstance

      public PromoteInstance()
  • Method Details

    • getCloudEventType

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

      protected String getCloudEventAggregateType()
      Overrides:
      getCloudEventAggregateType in class net.lightapi.portal.command.AbstractCommandHandler
    • getCloudEventAggregateId

      protected String getCloudEventAggregateId(Map<String,Object> map)
      Overrides:
      getCloudEventAggregateId in class net.lightapi.portal.command.AbstractCommandHandler
    • validateInput

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

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