public class ChmodAction
extends ProvisioningAction
| Constructor and Description |
|---|
ChmodAction() |
| Modifier and Type | Method and Description |
|---|---|
IStatus |
chmod(java.lang.String fileToChmod,
java.lang.String perms,
java.lang.String[] options) |
IStatus |
execute(java.util.Map<java.lang.String,java.lang.Object> parameters)
Changes the file permission attributes.
|
IStatus |
undo(java.util.Map<java.lang.String,java.lang.Object> parameters) |
public IStatus execute(java.util.Map<java.lang.String,java.lang.Object> parameters)
Changes the file permission attributes. This is not applicable on Windows so it is a no-op in that case.
| target | targetFile | absoluteFiles | validity |
| Y | Y | Y | can't set all these arguments |
| Y | Y | N | Y today, add the ability to specify a list of fileNames |
| Y | N | Y | warning? targetFolder unnecessary |
| Y | N | N | incorrect, missing targetFile |
| N | Y | Y | incorrect, target file can't be with absoluteFiles |
| N | Y | N | incorrect, missing the targetFolder |
| N | N | Y | Y |
| N | N | N | N |
public IStatus undo(java.util.Map<java.lang.String,java.lang.Object> parameters)
public IStatus chmod(java.lang.String fileToChmod,
java.lang.String perms,
java.lang.String[] options)