Class EnvironmentDescriptor
java.lang.Object
org.nuxeo.ecm.platform.commandline.executor.service.EnvironmentDescriptor
- All Implemented Interfaces:
Descriptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
Ifname
is null, then the environment is global.
Else the environment can be associated with a command ("command name") or with a tool ("command line").protected String
Fields 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 representingother
merged intothis
protected EnvironmentDescriptor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Descriptor
doesRemove
-
Field Details
-
name
Ifname
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
-
-
Constructor Details
-
EnvironmentDescriptor
public EnvironmentDescriptor()
-
-
Method Details
-
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 interfaceDescriptor
-
getName
- Since:
- 7.4
-
getWorkingDirectory
-
getParameters
- Since:
- 7.4
-
withName
-
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-