getJobsByUser returns an object containing all jobs created by the specified user.
getJobByJobId
returns an object containing the specified job.
administrationService.getJobsByUser(serverUrl, userName, password = NA) administrationService.getJobByJobId(serverUrl, userName, password = NA, jobId)
The password is not encrypted when it is sent from the client to the server. You can omit the password parameter if server does not require one.
For
getJobByJobId, if the requested
jobId does not exist, a warning is thrown and
an empty data frame is returned. Any other exception is passed to the client.
jobID. (The
jobID is the row name.)
For
getJobByJobId, a data frame with only one row is returned.
The column names are:
splusCode
created
createdBy
jobId
status
resultsDir
error
warnings
output
resultSpxml
The methods
administrationService.getJobs,
administrationService.getJobsByJobIds,
and
administrationService.getJobsByUserAndStatus are not implemented for this
server release.
You can use the parseXML method in the spxml library to convert the resultSpxml string into Spotfire S+ objects.
## Not run: ## userName <- "johndoe" ## password <- "mypassword" ## serverUrl <- "http://myserver:8080" ## webdavRoot = paste(serverUrl, "/SPServer/webdav", sep = "") ## resultsFolder <- paste(webdavRoot, "/results", sep = "") ## ## usersFolder <- paste(webdavRoot, "/users", sep="") ## myFolder <- paste(webdavRoot, "/users/johndoe", sep = "") ## administrationService.getJobsByUser(serverUrl, userName, password) ## administrationService.getJobsByJobId(serverUrl, userName, password, "1234") ## End(Not run)