Class EnvironmentDescriptor

java.lang.Object
org.nuxeo.ecm.platform.commandline.executor.service.EnvironmentDescriptor
All Implemented Interfaces:
Descriptor

public class EnvironmentDescriptor extends Object implements Descriptor
  • Field Details

    • name

      protected String name
      If name is null, then the environment is global.
      Else the environment can be associated with a command ("command name") or with a tool ("command line").
      Since:
      7.4
    • workingDirectory

      protected String workingDirectory
  • Constructor Details

    • EnvironmentDescriptor

      public EnvironmentDescriptor()
  • Method Details

    • getId

      public String getId()
      Description copied from interface: Descriptor
      The descriptor id, descriptors with same id are merged.

      To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.

      To forbid merge use a unique value, non-overriden toString() for exemple.

      Specified by:
      getId in interface Descriptor
    • getName

      public String getName()
      Since:
      7.4
    • getWorkingDirectory

      public String getWorkingDirectory()
    • getParameters

      public Map<String,String> getParameters()
      Since:
      7.4
    • withName

      protected EnvironmentDescriptor withName(String name)
    • merge

      Description copied from interface: Descriptor
      Returns a descriptor representing other merged into this

      Default implementation returns other.

      Specified by:
      merge in interface Descriptor
      Returns:
      the merged descriptor