Class XmlExportGshScript
java.lang.Object
edu.internet2.middleware.grouper.xml.export.XmlExportGshScript
new File("c:/temp/script.gsh").delete();
grouperSession = GrouperSession.startRootSession();
new edu.internet2.middleware.grouper.xml.export.XmlExportGshScript().assignStemName(":").assignFileNameToWriteTo("c:/temp/script.gsh").exportGsh();
or export everything under multiple stems in one script
new edu.internet2.middleware.grouper.xml.export.XmlExportGshScript().addStemName("some:folder").addStemName("another:folder").assignFileNameToWriteTo("c:/temp/script.gsh").exportGsh();
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddObjectName(String theObjectName) add a parent stem, all objects under each added stem will be exportedaddStemName(String theStemName) add a parent stem, all objects under each added stem will be exportedassignFileNameToWriteTo(String theFileName) file to write toassignStemId(String theStemId) assign a parent stem, this replaces any stems which were previously assigned or addedassignStemName(String theStemName) assign a parent stem, this replaces any stems which were previously assigned or addedvoidwrite GSH to the file
-
Constructor Details
-
XmlExportGshScript
public XmlExportGshScript()
-
-
Method Details
-
assignStemId
assign a parent stem, this replaces any stems which were previously assigned or added- Parameters:
theStemId-- Returns:
- this for chaining
-
addStemId
add a parent stem, all objects under each added stem will be exported- Parameters:
theStemId-- Returns:
- this for chaining
-
addObjectName
- Parameters:
theObjectName-- Returns:
- this for chaining
-
assignStemName
assign a parent stem, this replaces any stems which were previously assigned or added- Parameters:
theStemName-- Returns:
- this for chaining
-
addStemName
add a parent stem, all objects under each added stem will be exported- Parameters:
theStemName-- Returns:
- this for chaining
-
assignFileNameToWriteTo
file to write to- Parameters:
theFileName-- Returns:
- this for chaining
-
exportGsh
public void exportGsh()write GSH to the file
-