Package com.sas.lsaf.content.common
Class FileCreateInfo
java.lang.Object
com.sas.lsaf.content.common.AbstractCreateInfo
com.sas.lsaf.content.common.FileCreateInfo
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExportFileCreateInfo,ExtractFileCreateInfo
Represents all of the properties and attributes that can be set on a file during creation.
The following table illustrates the use of the overwrite and enableVersioning flags and how they
effect the outcome when there is or is not an existing file at the location specified. The red background indicates
the flag has no effect on the combination of factors, the green means it is directly related to the results.
| file existence | overwrite | enableVersioning | results |
|---|---|---|---|
| no file | FALSE | FALSE | New un-versioned file created |
| FALSE | TRUE | New versioned file created | |
| TRUE | FALSE | New un-versioned file created | |
| TRUE | TRUE | New versioned file created | |
| un-versioned file exists | FALSE | FALSE | Exists exception |
| FALSE | TRUE | Exists exception | |
| TRUE | FALSE | File content updated in place | |
| TRUE | TRUE | File content updated in place | |
| versioned file exists | FALSE | FALSE | New version created |
| FALSE | TRUE | New version created | |
| TRUE | FALSE | New version created | |
| TRUE | TRUE | New version created |
- Since:
- 2.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncustomVersion(String customVersion) description(String description) enableVersioning(boolean enableVersioning) booleanbooleanoverwrite(boolean overwrite) voidsetComment(String comment) voidsetCustomVersion(String customVersion) voidsetEnableVersioning(boolean enableVersioning) voidsetOverwrite(boolean overwrite) voidsetVersionType(VersionType versionType) versionType(VersionType versionType) Methods inherited from class com.sas.lsaf.content.common.AbstractCreateInfo
getDescription, getPath, setDescription
-
Constructor Details
-
FileCreateInfo
-
FileCreateInfo
-
-
Method Details
-
getComment
-
setComment
-
isEnableVersioning
public boolean isEnableVersioning() -
setEnableVersioning
public void setEnableVersioning(boolean enableVersioning) -
isOverwrite
public boolean isOverwrite() -
setOverwrite
public void setOverwrite(boolean overwrite) -
getVersionType
-
setVersionType
-
getCustomVersion
-
setCustomVersion
-
comment
-
enableVersioning
-
enableVersioning
-
customVersion
-
overwrite
-
overwrite
-
versionType
-
description
- Overrides:
descriptionin classAbstractCreateInfo
-