Class CommandWrapper

java.lang.Object
com.cloudimpl.outstack.runtime.CommandWrapper
All Implemented Interfaces:
AuthInput, ICommand

public class CommandWrapper
extends java.lang.Object
implements ICommand, AuthInput
Author:
nuwan
  • Constructor Details

  • Method Details

    • setMapAttr

      protected void setMapAttr​(java.util.Map<java.lang.String,​java.lang.String> mapAttr)
    • setTenantId

      protected void setTenantId​(java.lang.String tenantId)
    • setContext

      protected void setContext​(java.lang.String context)
    • getDomainOwner

      public java.lang.String getDomainOwner()
      Specified by:
      getDomainOwner in interface AuthInput
    • getDomainContext

      public java.lang.String getDomainContext()
      Specified by:
      getDomainContext in interface AuthInput
    • unwrap

      public final <T extends Command> T unwrap​(java.lang.Class<T> type)
      Specified by:
      unwrap in interface ICommand
    • commandName

      public final java.lang.String commandName()
      Specified by:
      commandName in interface ICommand
    • version

      public final java.lang.String version()
      Specified by:
      version in interface ICommand
    • getRootType

      public java.lang.String getRootType()
      Specified by:
      getRootType in interface AuthInput
    • getChildType

      public java.lang.String getChildType()
      Specified by:
      getChildType in interface AuthInput
    • setGrant

      public void setGrant​(java.lang.Object grant)
    • getGrant

      public <T> T getGrant()
    • getContext

      public java.lang.String getContext()
    • getMapAttr

      public java.util.Map<java.lang.String,​java.lang.String> getMapAttr()
      Specified by:
      getMapAttr in interface ICommand
    • builder

      public static CommandWrapper.Builder builder()
    • getId

      public java.lang.String getId()
      Specified by:
      getId in interface AuthInput
    • getRootId

      public java.lang.String getRootId()
      Specified by:
      getRootId in interface AuthInput
    • getAction

      public java.lang.String getAction()
      Specified by:
      getAction in interface AuthInput