...
Code Block |
---|
##################################################### ## CSV reportsfiles ## "csvJobId" is the key of the config, change that for your csv report ##################################################### # set this to enable the instrumentation # {valueType: "class", mustExtendClass: "edu.internet2.middleware.grouper.app.loader.OtherJobBase"} otherJob.csvJobId.class = edu.internet2.middleware.grouper.app.reports.GrouperCsvReportJob # cron string # {valueType: "string"} otherJob.csvJobId.quartzCron = 0 21 7 * * ? # query to run # {valueType: "string", regex: "^otherJob\\.([^.]+)\\.csvReport\\.query$"} otherJob.csvJobId.csvReport.query = select USER_ID, USER_NAME, EMAIL_ADDRESS, AUTH_TYPE, TITLE, DEPARTMENT, CUSTOM_STRING, DAY_PASS, CUSTOM_STRING2, GROUPS from some_view # database to hit # {valueType: "string", regex: "^otherJob\\.([^.]+)\\.csvReport\\.database$"} otherJob.csvJobId.csvReport.database = pennCommunity # remove underscores and capitalize headers, go from USER_NAME to UserName # {valueType: "string", regex: "^otherJob\\.([^.]+)\\.csvReport\\.removeUnderscoresAndCapitalizeHeaders$"} otherJob.csvJobId.csvReport.removeUnderscoresAndCapitalizeHeaders = false # fileName, e.g. myFile.csv or /opt/whatever/myFile.csv. If blank will create a name # {valueType: "string", regex: "^otherJob\\.([^.]+)\\.csvReport\\.database$"} otherJob.csvJobId.csvReport.fileName = MyFile.csv # sftp config id (from grouper.properties) if sftp'ing this file somewhere, otherwise blank # https://spaces.at.internet2.edu/display/Grouper/Grouper+Sftp+files # {valueType: "string", regex: "^otherJob\\.([^.]+)\\.csvReport\\.sftp\\.configId$"} otherJob.csvJobId.csvReport.sftp.configId = someSftpServer # remote file to sftp to if sftp'ing # {valueType: "string", regex: "^otherJob\\.([^.]+)\\.csvReport\\.sftp\\.fileNameRemote$"} otherJob.csvJobId.csvReport.sftp.fileNameRemote = /data01/whatever/MyFile.csv # if the file should be deleted from the grouper daemon server after sending it # {valueType: "boolean", regex: "^otherJob\\.([^.]+)\\.csvReport\\.deleteFile$"} # otherJob.csvJobId.csvReport.deleteFile = true |
...