Package com.sas.lsaf.content.repository
Class RepositoryExecutableFile
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.content.repository.RepositoryItem
com.sas.lsaf.content.repository.RepositoryFile
com.sas.lsaf.content.repository.RepositoryExecutableFile
- All Implemented Interfaces:
Identifiable,Serializable
The class that represents an executable file that is stored in the repository.
- Since:
- 2.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sas.lsaf.content.repository.RepositoryFile
RepositoryFile.SigningStatusNested classes/interfaces inherited from class com.sas.lsaf.content.repository.RepositoryItem
RepositoryItem.State, RepositoryItem.Syncable -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryExecutableFile(String typeId, String id, String name, String path, long revision, RepositoryItem.State state, String createdBy, Date created, String lastModifiedBy, Date lastModified, String propertiesLastModifiedBy, Date propertiesLastModified, String description, RepositoryItem.Syncable syncable, List<Attribute> attributes, long size, boolean checkedOut, String checkedOutBy, Date checkedOutDate, boolean versioned, String version, String comment, boolean locked, RepositoryFile.SigningStatus signingStatus, boolean runAsOwner, VersionLimits versionLimits, String digest, Date lastRunDate, RunHealthStatus healthStatus) It is not intended or recommended that the consumer of the API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf available, indicates whether a job is up-to-date since the last successful run.If available, gets the date on which the job last successfully ran.inthashCode()booleanGets whether the executable file runs as the owner of the file or the user who submitted the file for execution.voidsetRunAsOwner(boolean runAsOwner) Sets the executable file to run as the owner of the file or the user who submitted the file for execution.toString()Methods inherited from class com.sas.lsaf.content.repository.RepositoryFile
getCheckedOutBy, getCheckedOutDate, getComment, getDigest, getMajorLimit, getMinorLimit, getSigningStatus, getSize, getVersion, getVersionLimits, isCheckedOut, isLocked, isVersioned, setVersionLimitsMethods inherited from class com.sas.lsaf.content.repository.RepositoryItem
getAttributes, getCreated, getCreatedBy, getDescription, getLastModified, getLastModifiedBy, getName, getPath, getPropertiesLastModified, getPropertiesLastModifiedBy, getRevision, getState, getSyncable, setAttributes, setDescription, setSyncableMethods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
Constructor Details
-
RepositoryExecutableFile
public RepositoryExecutableFile(String typeId, String id, String name, String path, long revision, RepositoryItem.State state, String createdBy, Date created, String lastModifiedBy, Date lastModified, String propertiesLastModifiedBy, Date propertiesLastModified, String description, RepositoryItem.Syncable syncable, List<Attribute> attributes, long size, boolean checkedOut, String checkedOutBy, Date checkedOutDate, boolean versioned, String version, String comment, boolean locked, RepositoryFile.SigningStatus signingStatus, boolean runAsOwner, VersionLimits versionLimits, String digest, Date lastRunDate, RunHealthStatus healthStatus) It is not intended or recommended that the consumer of the API construct these objects. They should only deal with the repository executable file objects returned by the API.- Parameters:
typeId- The object type identifier of the repository file.id- The unique identifier of the repository file.name- The name of the file.path- The full path of this file in the repository, which includes the name.revision- The internally managed revision number of the repository file.state- The current state of the repository file.createdBy- The user who created the repository file.created- The date on which the repository file was created.lastModifiedBy- The user who last modified the repository file's content.lastModified- The date on which the repository file's content was last modified.propertiesLastModifiedBy- The user who last modified the repository file's properties.propertiesLastModified- The date on which the repository file's properties were last modified.description- The description of the file.syncable- Indicates whether the file can be copied to the user's workspace.attributes- The extended attributes that are defined on the repository file.size- The size (in bytes) of the file.checkedOut- Indicates whether the file is currently checked out or not.checkedOutBy- The user who has the file checked out (if it is checked out).checkedOutDate- The date on which the file was checked out (if it is checked out).versioned- Indicates whether the file is versioned.version- The current version of the file (if it is versioned).comment- The comment provided when the content was created.locked- Indicates whether the file is locked.signingStatus- The signature status of the file.runAsOwner- Indicates whether the executable file is run as the owner of the file or the user who submitted the file for execution.versionLimits- The version retention limits of the file.digest- The digest value of the file.lastRunDate- If available, the date on which the job last successfully ran.healthStatus- If available, indicates whether a job is up-to-date since the last successful run.
-
-
Method Details
-
isRunAsOwner
public boolean isRunAsOwner()Gets whether the executable file runs as the owner of the file or the user who submitted the file for execution.- Returns:
- The indication that the executable file runs as the owner of the file or the user who submitted the file for execution.
-
setRunAsOwner
public void setRunAsOwner(boolean runAsOwner) Sets the executable file to run as the owner of the file or the user who submitted the file for execution.- Parameters:
runAsOwner- Whether executable file is to run as the owner of the file or the user who submitted the file for execution.
-
getLastRunDate
If available, gets the date on which the job last successfully ran. Note: If job health status is not enabled on the system, the last run date is not set, and the run health status is set to unknown. Please contact your system administrator to enable this feature.- Returns:
- The date on which the job last successfully ran.
-
getHealthStatus
If available, indicates whether a job is up-to-date since the last successful run. The health status is stale if any of the related job files have changed since the last successful run. Note: This attribute is updated only if the job contains only SAS programs and the job health status feature is enabled on the system. Otherwise, the status is unknown. Please contact your system administrator to enable this feature.- Returns:
- The job run health status.
-
hashCode
public int hashCode()- Overrides:
hashCodein classRepositoryFile
-
equals
- Overrides:
equalsin classRepositoryFile
-
toString
- Overrides:
toStringin classRepositoryFile
-