Package com.sas.lsaf.execution.job
Class JobPublishCheckin
java.lang.Object
com.sas.lsaf.execution.job.OutputFileSpec
com.sas.lsaf.execution.job.JobPublishCheckin
- All Implemented Interfaces:
Serializable
The class that represents the method to check in outputs and, optionally, the locations from which to checkin the
outputs.
- Since:
- 2.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocation(String path) Adds the path to the folder to checkin when the job completes.voidaddLocation(String path, boolean includeSubfolders) Adds the path to the folder and whether to include child folder content at check in when the job completes.Gets a JobPublishCheckin with theVersionTypeas CUSTOM.Gets a JobPublishCheckin with versioning enabled for new files.enableVersioningForNewFiles(boolean enableVersioningOnNewFiles) Gets a JobPublishCheckin to specify whether to version new files.Gets the folder locations for check in when the job completes.major()Gets a JobPublishCheckin with theVersionTypeof MAJOR.minor()Gets a JobPublishCheckin with theVersionTypeof MINOR.voidsetLocations(List<JobPublishCheckinLocation> locations) Sets the locations of the folders to check in when the job completes.toString()versionType(VersionType versionType, String customVersion) Gets a JobPublishCheckin with the specifiedVersionTypeusing the specified version, if version type is CUSTOM.Methods inherited from class com.sas.lsaf.execution.job.OutputFileSpec
equals, getCustomVersion, getVersionType, hashCode, isEnableVersioningForNewFiles, setCustomVersion, setEnableVersioningForNewFiles, setVersionType
-
Constructor Details
-
JobPublishCheckin
public JobPublishCheckin()Constructor.
-
-
Method Details
-
getLocations
Gets the folder locations for check in when the job completes.- Returns:
- The locations of the folders.
-
setLocations
Sets the locations of the folders to check in when the job completes.- Parameters:
locations- The locations to the folders.
-
addLocation
Adds the path to the folder to checkin when the job completes.- Parameters:
path- The path to the folder.
-
addLocation
Adds the path to the folder and whether to include child folder content at check in when the job completes.- Parameters:
path- The path to the folder.includeSubfolders- Indicates whether to include child folder content.
-
enableVersioningForNewFiles
Gets a JobPublishCheckin with versioning enabled for new files.- Returns:
- A JobPublishCheckin.
-
enableVersioningForNewFiles
Gets a JobPublishCheckin to specify whether to version new files. The default is false.- Parameters:
enableVersioningOnNewFiles- Indicates whether to version new files.- Returns:
- A JobPublishCheckin to specify whether to version new files.
-
major
Gets a JobPublishCheckin with theVersionTypeof MAJOR.- Returns:
- A JobPublishCheckin with the
VersionTypeof MAJOR.
-
minor
Gets a JobPublishCheckin with theVersionTypeof MINOR.- Returns:
- A JobPublishCheckin with the
VersionTypeof MINOR.
-
custom
Gets a JobPublishCheckin with theVersionTypeas CUSTOM.- Parameters:
customVersion- The custom version.- Returns:
- A JobPublishCheckin with the
VersionTypeof CUSTOM.
-
versionType
Gets a JobPublishCheckin with the specifiedVersionTypeusing the specified version, if version type is CUSTOM.- Parameters:
versionType- The method to generate the version for the file.customVersion- The custom version.- Returns:
- A JobPublishCheckin with the specified
VersionType.
-
toString
- Overrides:
toStringin classOutputFileSpec
-