Class GrouperCsvReportJob
java.lang.Object
edu.internet2.middleware.grouper.app.loader.OtherJobBase
edu.internet2.middleware.grouper.app.reports.GrouperCsvReportJob
- All Implemented Interfaces:
org.quartz.Job
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.internet2.middleware.grouper.app.loader.OtherJobBase
OtherJobBase.OtherJobInput, OtherJobBase.OtherJobOutput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic File
take some data and create a csvstatic void
retrieveData
(String database, String query) retrieveHeaders
(String query, boolean removeUnderscoresAndCapitalizeHeaders) get headers for queryrun
(OtherJobBase.OtherJobInput otherJobInput) implement this method for the logic of the OtherJobMethods inherited from class edu.internet2.middleware.grouper.app.loader.OtherJobBase
execute, execute, getOtherJobInput, otherJobLogUpdaterDeregister, otherJobLogUpdaterInit, otherJobLogUpdaterRegister, setOtherJobInput, storeLogInDb
-
Constructor Details
-
GrouperCsvReportJob
public GrouperCsvReportJob()
-
-
Method Details
-
main
- Parameters:
args
-
-
run
Description copied from class:OtherJobBase
implement this method for the logic of the OtherJob- Specified by:
run
in classOtherJobBase
- Returns:
- the output
- See Also:
-
createCsv
take some data and create a csv- Parameters:
fileName
- if blank just create a fileheaders
-data
-- Returns:
- the file
-
retrieveHeaders
public static List<String> retrieveHeaders(String query, boolean removeUnderscoresAndCapitalizeHeaders) get headers for query- Parameters:
query
-removeUnderscoresAndCapitalizeHeaders
-- Returns:
- the headers
-
retrieveData
- Parameters:
database
-query
-- Returns:
- the data
-