Class FileAction
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.actions.FileAction
-
- All Implemented Interfaces:
OSHostable
,Referenceable
- Direct Known Subclasses:
CreateLaunchAnywhere
,DownloadFile
,InstallDirectory
,InstallFile
public abstract class FileAction extends Action implements OSHostable
A super class for all file based actions.
-
-
Constructor Summary
Constructors Constructor Description FileAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDestinationName()
The name of the file in the target machine when the file get installed.FileOverwriteBehavior
getFileOverwriteBehavior()
The behavior when the file already exists in the target machine.boolean
getOverrideUnixPermissions()
Whether the file unix permissions should be overwrited or not.boolean
getShouldUninstall()
Whether the file should be uninstalled.java.lang.String
getSourceFile()
The path to the file to include in the installer.java.lang.String
getUnixPermissions()
The unix file permissions to set when installing this file.void
setDestinationName(java.lang.String destinationName)
The name of the file in the target machine when the file get installed.void
setFileOverwriteBehavior(FileOverwriteBehavior fileOverwriteBehavior)
The behavior when the file already exists in the target machine.void
setOverrideUnixPermissions(boolean override)
Whether the file unix permissions should be overwrited or not.void
setShouldUninstall(boolean ShouldUninstall)
Whether the file should be uninstalled.void
setSourceFile(java.lang.String path)
The path to the file to include in the installer.void
setUnixPermissions(java.lang.String permissions)
The unix file permissions to set when installing this file.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
setDestinationName
public void setDestinationName(java.lang.String destinationName)
The name of the file in the target machine when the file get installed.- Parameters:
destinationName
- The name of the file in the target machine.
-
getDestinationName
public java.lang.String getDestinationName()
The name of the file in the target machine when the file get installed.- Returns:
- The name of the file in the target machine.
-
getOverrideUnixPermissions
public boolean getOverrideUnixPermissions()
Whether the file unix permissions should be overwrited or not.
-
setOverrideUnixPermissions
public void setOverrideUnixPermissions(boolean override)
Whether the file unix permissions should be overwrited or not.
-
getUnixPermissions
public java.lang.String getUnixPermissions()
The unix file permissions to set when installing this file.
-
setUnixPermissions
public void setUnixPermissions(java.lang.String permissions)
The unix file permissions to set when installing this file.
-
setFileOverwriteBehavior
public void setFileOverwriteBehavior(FileOverwriteBehavior fileOverwriteBehavior)
The behavior when the file already exists in the target machine.
-
getFileOverwriteBehavior
public FileOverwriteBehavior getFileOverwriteBehavior()
The behavior when the file already exists in the target machine.
-
getShouldUninstall
public boolean getShouldUninstall()
Whether the file should be uninstalled.
-
setShouldUninstall
public void setShouldUninstall(boolean ShouldUninstall)
Whether the file should be uninstalled.
-
setSourceFile
public void setSourceFile(java.lang.String path)
The path to the file to include in the installer.
-
getSourceFile
public java.lang.String getSourceFile()
The path to the file to include in the installer.
-
-