org.rhq.enterprise.server.sync
Class SystemSettingsSynchronizer

java.lang.Object
  extended by org.rhq.enterprise.server.sync.SystemSettingsSynchronizer
All Implemented Interfaces:
Synchronizer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>

public class SystemSettingsSynchronizer
extends Object
implements Synchronizer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>

Author:
Lukas Krejci

Constructor Summary
SystemSettingsSynchronizer()
           
SystemSettingsSynchronizer(SystemManagerLocal systemManager)
           
 
Method Summary
 Exporter<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings> getExporter()
          The exporter to use to export the entities.
 Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings> getImporter()
          The importer to import the entities with.
 Set<ConsistencyValidator> getRequiredValidators()
          The set of validators that are required to validate the state of the export or the current installation during import.
 void initialize(org.rhq.core.domain.auth.Subject subject, javax.persistence.EntityManager entityManager)
          Initializes the synchronizer so that it can access database and is authorization aware.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemSettingsSynchronizer

public SystemSettingsSynchronizer()

SystemSettingsSynchronizer

public SystemSettingsSynchronizer(SystemManagerLocal systemManager)
Method Detail

initialize

public void initialize(org.rhq.core.domain.auth.Subject subject,
                       javax.persistence.EntityManager entityManager)
Description copied from interface: Synchronizer
Initializes the synchronizer so that it can access database and is authorization aware.

Specified by:
initialize in interface Synchronizer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>
Parameters:
subject - the currently logged in user
entityManager - the entity manager to access the database with (if not using one of the RHQ's SLSBs)

getExporter

public Exporter<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings> getExporter()
Description copied from interface: Synchronizer
The exporter to use to export the entities.

Specified by:
getExporter in interface Synchronizer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>

getImporter

public Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings> getImporter()
Description copied from interface: Synchronizer
The importer to import the entities with.

Specified by:
getImporter in interface Synchronizer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>

getRequiredValidators

public Set<ConsistencyValidator> getRequiredValidators()
Description copied from interface: Synchronizer
The set of validators that are required to validate the state of the export or the current installation during import.

The validators need not to be initialized.

Specified by:
getRequiredValidators in interface Synchronizer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>


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