Class PartialXmlMapper

Direct Known Subclasses:
GroupMapper, MembershipMapper, UserMapper

public class PartialXmlMapper extends XmlMapper
Specialises XmlMapper for mappers that take into account just a subset of the directory types. Subclasses may override getFullBackupDirectoryTypes to specify which directory types participate in the backup, otherwise a default Set is used containing internal and delegating directory types.
  • Constructor Details

  • Method Details

    • isImportableDirectory

      protected boolean isImportableDirectory(Directory directory)
      Parameters:
      directory - the directory to be imported
      Returns:
      true if the directory data is importable
    • findAllExportableDirectories

      protected List<Directory> findAllExportableDirectories(boolean includeConnectors)
      Finds all directories that have user/group/membership data that need to be exported (ie. Internal + Delegating).
      Parameters:
      includeConnectors - flag if connectors should be returned or not
      Returns:
      list of directories that require exporting internal data.
    • findAllExportableDirectories

      protected List<Directory> findAllExportableDirectories()
      Finds all directories that have user/group/membership data that need to be exported (ie. Internal + Delegating).
      Returns:
      list of directories that require exporting internal data.
    • isExportOfNonLocalGroupsRequired

      protected boolean isExportOfNonLocalGroupsRequired(DirectoryType directoryType)
      Determines whether the backup for a directory type includes all groups (both local and non-local), or just local groups, excluding non-local (remote) groups.
      Parameters:
      directoryType - a directory type
      Returns:
      false if backups must be limited to just local groups for this directory type, or true if backups must include all groups, local and non-local as well.