|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.internet2.middleware.grouper.xml.export.XmlExportMain
public class XmlExportMain
Constructor Summary | |
---|---|
XmlExportMain()
|
Method Summary | |
---|---|
XmlExportMain |
addObjectName(String objectName)
add an object name to export e.g. |
XmlExportMain |
addStem(String stem)
add a stem pattern e.g. |
void |
appendHqlStemLikeOrObjectEquals(StringBuilder queryBuilder,
String aliasName,
String fieldName,
boolean forStemsOnly)
|
boolean |
filterStemsOrObjects()
|
Set<String> |
getAttributeAssignIds()
|
Map<String,AttributeAssign> |
getAttributeAssignsForSecondPhase()
|
Map<String,AttributeAssignValue> |
getAttributeAssignValuesForSecondPhase()
|
Set<String> |
getObjectNames()
get the object names filtering on |
Set<String> |
getStemNamePatterns()
stem patterns to filter on, e.g. |
Set<String> |
getStems()
stem patterns to filter on, e.g. |
void |
incrementRecordCount()
|
void |
incrementRecordCount(int numberOfRecords)
increment by an index |
boolean |
isIncludeAudits()
if audits should be included |
boolean |
isIncludeComments()
if comments should be included for foreign keys, note, this slows down the export |
static void |
main(String[] args)
|
void |
setIncludeAudits(boolean theIncludeAudits)
include audits, default to true |
void |
setIncludeComments(boolean includeComments1)
if comments should be included for foreign keys, note, this slows down the export |
void |
writeAllTables(File file)
|
void |
writeAllTables(Writer writer,
String fileName)
write the xml to a writer |
void |
writeAllTablesGsh(Writer writer,
String fileName)
write the xml to a writer |
void |
writeGshScriptForSubject(String subjectId,
String sourceId,
String subjectVariableName,
Writer writer,
String errorVariable)
write gsh script for subject, include error handling |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlExportMain()
Method Detail |
---|
public XmlExportMain addStem(String stem)
stem
-
public XmlExportMain addObjectName(String objectName)
objectName
-
public Set<String> getObjectNames()
public Set<String> getStems()
public Set<String> getStemNamePatterns()
public void setIncludeAudits(boolean theIncludeAudits)
theIncludeAudits
- public boolean isIncludeAudits()
public boolean isIncludeComments()
public void setIncludeComments(boolean includeComments1)
includeComments1
- the includeComments to setpublic static void main(String[] args) throws Exception
args
-
Exception
public void incrementRecordCount()
public void incrementRecordCount(int numberOfRecords)
numberOfRecords
- public void writeAllTables(File file)
file
- public void writeAllTablesGsh(Writer writer, String fileName)
writer
- fileName
- for loggingpublic void writeGshScriptForSubject(String subjectId, String sourceId, String subjectVariableName, Writer writer, String errorVariable) throws IOException
subjectId
- sourceId
- subjectVariableName
- writer
- errorVariable
- set to true if error if applicable
IOException
public void writeAllTables(Writer writer, String fileName)
writer
- fileName
- for loggingpublic Set<String> getAttributeAssignIds()
public Map<String,AttributeAssign> getAttributeAssignsForSecondPhase()
public Map<String,AttributeAssignValue> getAttributeAssignValuesForSecondPhase()
public boolean filterStemsOrObjects()
public void appendHqlStemLikeOrObjectEquals(StringBuilder queryBuilder, String aliasName, String fieldName, boolean forStemsOnly)
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |