org.rhq.enterprise.server.sync.importers
Interface ExportedEntityMatcher<Entity,ExportedType>

All Known Implementing Classes:
NoSingleEntityMatcher

public interface ExportedEntityMatcher<Entity,ExportedType>

An implementation of this interface is able match instances of given type with some objects in the inventory.

This is used during the configuration synchronization where different types of entities are being obtained from the export file and it is necessary to find matches of them in the database that is being imported to.

There is a default set of matchers defined in the server for basic types of entitites like Subjects, Roles, etc. but different export/import participants (like the alert senders) can contribute new types of matchers for the data that they are exporting.

Author:
Lukas Krejci

Method Summary
 Entity findMatch(ExportedType object)
          Tries to find a match for given object in the data available in the database.
 

Method Detail

findMatch

Entity findMatch(ExportedType object)
Tries to find a match for given object in the data available in the database. The returned object is not necessarily of the same type is the provided object because the given object might function as some kind of "proxy" object that represents the data better in the sync scenarios.

Parameters:
object -
Returns:


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.