Class XmlExportGshScript

java.lang.Object
edu.internet2.middleware.grouper.xml.export.XmlExportGshScript

public class XmlExportGshScript extends Object
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();
  • Constructor Details

    • XmlExportGshScript

      public XmlExportGshScript()
  • Method Details

    • assignStemId

      public XmlExportGshScript assignStemId(String theStemId)
      assign a parent stem
      Parameters:
      theStemId -
      Returns:
      this for chaining
    • addObjectName

      public XmlExportGshScript addObjectName(String theObjectName)
      Parameters:
      theObjectName -
      Returns:
      this for chaining
    • assignStemName

      public XmlExportGshScript assignStemName(String theStemName)
      assign a parent stem
      Parameters:
      theStemName -
      Returns:
      this for chaining
    • assignFileNameToWriteTo

      public XmlExportGshScript assignFileNameToWriteTo(String theFileName)
      file to write to
      Parameters:
      theFileName -
      Returns:
      this for chaining
    • exportGsh

      public void exportGsh()
      write GSH to the file