Class XmlExportMain
java.lang.Object
edu.internet2.middleware.grouper.xml.export.XmlExportMain
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddObjectName
(String objectName) add an object name to export e.g.add a stem pattern e.g.void
appendHqlStemLikeOrObjectEquals
(StringBuilder queryBuilder, String aliasName, String fieldName, boolean forStemsOnly) boolean
get the object names filtering onstem patterns to filter on, e.g.getStems()
stem patterns to filter on, e.g.void
void
incrementRecordCount
(int numberOfRecords) increment by an indexboolean
if audits should be includedboolean
if comments should be included for foreign keys, note, this slows down the exportstatic void
void
setIncludeAudits
(boolean theIncludeAudits) include audits, default to truevoid
setIncludeComments
(boolean includeComments1) if comments should be included for foreign keys, note, this slows down the exportvoid
writeAllTables
(File file) void
writeAllTables
(Writer writer, String fileName) write the xml to a writervoid
writeAllTablesGsh
(Writer writer, String fileName) write the xml to a writervoid
writeGshScriptForSubject
(String subjectId, String sourceId, String subjectVariableName, Writer writer, String errorVariable) write gsh script for subject, include error handling
-
Constructor Details
-
XmlExportMain
public XmlExportMain()
-
-
Method Details
-
addStem
add a stem pattern e.g. this:stem, that stem and all substems and objects will be exported- Parameters:
stem
-- Returns:
- this for chaining
-
addObjectName
add an object name to export e.g. this:stem or this:stem:group- Parameters:
objectName
-- Returns:
- this for chaining
-
getObjectNames
get the object names filtering on- Returns:
- object names
-
getStems
stem patterns to filter on, e.g. a:b or a:%- Returns:
- stem patterns to filter on
-
getStemNamePatterns
stem patterns to filter on, e.g. a:b or a:%. This will return a:b:% or a:%:%- Returns:
- stem patterns to filter on
-
setIncludeAudits
public void setIncludeAudits(boolean theIncludeAudits) include audits, default to true- Parameters:
theIncludeAudits
-
-
isIncludeAudits
public boolean isIncludeAudits()if audits should be included- Returns:
- if audits should be included
-
isIncludeComments
public boolean isIncludeComments()if comments should be included for foreign keys, note, this slows down the export- Returns:
- the includeComments
-
setIncludeComments
public void setIncludeComments(boolean includeComments1) if comments should be included for foreign keys, note, this slows down the export- Parameters:
includeComments1
- the includeComments to set
-
main
- Parameters:
args
-- Throws:
Exception
-
incrementRecordCount
public void incrementRecordCount() -
incrementRecordCount
public void incrementRecordCount(int numberOfRecords) increment by an index- Parameters:
numberOfRecords
-
-
writeAllTables
- Parameters:
file
-
-
writeAllTablesGsh
write the xml to a writer- Parameters:
writer
-fileName
- for logging
-
writeGshScriptForSubject
public void writeGshScriptForSubject(String subjectId, String sourceId, String subjectVariableName, Writer writer, String errorVariable) throws IOException write gsh script for subject, include error handling- Parameters:
subjectId
-sourceId
-subjectVariableName
-writer
-errorVariable
- set to true if error if applicable- Throws:
IOException
-
writeAllTables
write the xml to a writer- Parameters:
writer
-fileName
- for logging
-
getAttributeAssignIds
- Returns:
- the attributeAssignIds
-
getAttributeAssignsForSecondPhase
- Returns:
- the attributeAssignsForSecondPhase
-
getAttributeAssignValuesForSecondPhase
- Returns:
- the attributeAssignValuesForSecondPhase
-
filterStemsOrObjects
public boolean filterStemsOrObjects()- Returns:
- filter
-
appendHqlStemLikeOrObjectEquals
public void appendHqlStemLikeOrObjectEquals(StringBuilder queryBuilder, String aliasName, String fieldName, boolean forStemsOnly) - Parameters:
queryBuilder
-aliasName
-fieldName
-forStemsOnly
- this param doesnt matter right now. used to let you specify an exact folder, but might as well specify any exact object
-