Class XmlImporter

java.lang.Object
edu.internet2.middleware.grouper.xml.XmlImporter

public class XmlImporter extends Object
Utility class for importing data in XML import into the Groups Registry.

This class reads an XML file representing all or part of a Groups Registry and updates-or-creates the equivalent Stems, Groups and Memberships. This class can be used to load data exported by XmlExporter.

The API for this class will change in future Grouper releases.

Since:
1.0
Version:
$Id: XmlImporter.java,v 1.24.2.2 2009-12-18 21:03:44 tzeller Exp $
  • Constructor Details

    • XmlImporter

      public XmlImporter(GrouperSession s, Properties userOptions)
      Import the Groups Registry from XML.

      The import process is configured through the following properties.

      Key Values Default Description
      import.metadata.group-types true/false true If true create custom group types when importing.
      import.metadata.group-type-attributes true/false true If true create custom fields when importing.
      import.data.ignore-internal-attributes-and-uuids=false true/false false If true, do not attempt to set internal attributes or Group/Stem uuids
      import.data.apply-new-group-types true/false true If true custom group types are applied to pre-existing groups when importing.
      import.data.update-attributes true/false true If true overwrite attributes on pre-existing groups when importing.
      import.data.fail-on-unresolvable-subject true/false false If true, and the import file references a subject which cannot be resolved abort the import, otherwise, log the problem and continue.
      import.data.lists ignore/replace/add replace Determines whether membership lists are ignored, replaced or appended to pre-existing memberships when importing.
      import.data.privileges ignore/replace/add add Determines whether privileges are ignored, replaced or appended to pre-existing privileges when importing.
      Parameters:
      s - Perform import within this session.
      userOptions - User-specified configuration parameters.
      Since:
      1.1.0
  • Method Details