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

public class FileCreateInfo extends AbstractCreateInfo
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 Details

    • FileCreateInfo

      public FileCreateInfo(String path)
    • FileCreateInfo

      public FileCreateInfo(String parentPath, String name)
  • Method Details

    • getComment

      public String getComment()
    • setComment

      public void setComment(String comment)
    • isEnableVersioning

      public boolean isEnableVersioning()
    • setEnableVersioning

      public void setEnableVersioning(boolean enableVersioning)
    • isOverwrite

      public boolean isOverwrite()
    • setOverwrite

      public void setOverwrite(boolean overwrite)
    • getVersionType

      public VersionType getVersionType()
    • setVersionType

      public void setVersionType(VersionType versionType)
    • getCustomVersion

      public String getCustomVersion()
    • setCustomVersion

      public void setCustomVersion(String customVersion)
    • comment

      public FileCreateInfo comment(String comment)
    • enableVersioning

      public FileCreateInfo enableVersioning()
    • enableVersioning

      public FileCreateInfo enableVersioning(boolean enableVersioning)
    • customVersion

      public FileCreateInfo customVersion(String customVersion)
    • overwrite

      public FileCreateInfo overwrite()
    • overwrite

      public FileCreateInfo overwrite(boolean overwrite)
    • versionType

      public FileCreateInfo versionType(VersionType versionType)
    • description

      public FileCreateInfo description(String description)
      Overrides:
      description in class AbstractCreateInfo