public class JobPublishCheckin extends OutputFileSpec
Constructor and Description |
---|
JobPublishCheckin()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addLocation(String path)
Adds the path to the folder to checkin when the job completes.
|
void |
addLocation(String path,
boolean includeSubfolders)
Adds the path to the folder and whether to include child folder content at check in when the job completes.
|
JobPublishCheckin |
custom(String customVersion)
Gets a JobPublishCheckin with the
VersionType as CUSTOM. |
JobPublishCheckin |
enableVersioningForNewFiles()
Gets a JobPublishCheckin with versioning enabled for new files.
|
JobPublishCheckin |
enableVersioningForNewFiles(boolean enableVersioningOnNewFiles)
Gets a JobPublishCheckin to specify whether to version new files.
|
List<JobPublishCheckinLocation> |
getLocations()
Gets the folder locations for check in when the job completes.
|
JobPublishCheckin |
major()
Gets a JobPublishCheckin with the
VersionType of MAJOR. |
JobPublishCheckin |
minor()
Gets a JobPublishCheckin with the
VersionType of MINOR. |
void |
setLocations(List<JobPublishCheckinLocation> locations)
Sets the locations of the folders to check in when the job completes.
|
String |
toString() |
JobPublishCheckin |
versionType(VersionType versionType,
String customVersion)
Gets a JobPublishCheckin with the specified
VersionType using the specified version, if version type is
CUSTOM. |
equals, getCustomVersion, getVersionType, hashCode, isEnableVersioningForNewFiles, setCustomVersion, setEnableVersioningForNewFiles, setVersionType
public List<JobPublishCheckinLocation> getLocations()
public void setLocations(List<JobPublishCheckinLocation> locations)
locations
- The locations to the folders.public void addLocation(String path)
path
- The path to the folder.public void addLocation(String path, boolean includeSubfolders)
path
- The path to the folder.includeSubfolders
- Indicates whether to include child folder content.public JobPublishCheckin enableVersioningForNewFiles()
public JobPublishCheckin enableVersioningForNewFiles(boolean enableVersioningOnNewFiles)
enableVersioningOnNewFiles
- Indicates whether to version new files.public JobPublishCheckin major()
VersionType
of MAJOR.VersionType
of MAJOR.public JobPublishCheckin minor()
VersionType
of MINOR.VersionType
of MINOR.public JobPublishCheckin custom(String customVersion)
VersionType
as CUSTOM.customVersion
- The custom version.VersionType
of CUSTOM.public JobPublishCheckin versionType(VersionType versionType, String customVersion)
VersionType
using the specified version, if version type is
CUSTOM.versionType
- The method to generate the version for the file.customVersion
- The custom version.VersionType
.public String toString()
toString
in class OutputFileSpec
<i>Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA</i>