Class EnvironmentDescriptor
java.lang.Object
org.nuxeo.ecm.platform.commandline.executor.service.EnvironmentDescriptor
- All Implemented Interfaces:
Descriptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringIfnameis null, then the environment is global.
Else the environment can be associated with a command ("command name") or with a tool ("command line").protected StringFields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()The descriptor id, descriptors with same id are merged.getName()merge(Descriptor o) Returns a descriptor representingothermerged intothisprotected EnvironmentDescriptorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
name
Ifnameis 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
-
-
Constructor Details
-
EnvironmentDescriptor
public EnvironmentDescriptor()
-
-
Method Details
-
getId
Description copied from interface:DescriptorThe 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:
getIdin interfaceDescriptor
-
getName
- Since:
- 7.4
-
getWorkingDirectory
-
getParameters
- Since:
- 7.4
-
withName
-
merge
Description copied from interface:DescriptorReturns a descriptor representingothermerged intothisDefault implementation returns
other.- Specified by:
mergein interfaceDescriptor- Returns:
- the merged descriptor
-