|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.sync.importers.SystemSettingsImporter
public class SystemSettingsImporter
| Field Summary | |
|---|---|
static String |
DEFAULT_IMPORTED_PROPERTIES_LIST
|
static String |
PROPERTIES_TO_IMPORT_PROPERTY
|
| Constructor Summary | |
|---|---|
SystemSettingsImporter(org.rhq.core.domain.auth.Subject subject,
SystemManagerLocal systemManager)
|
|
| Method Summary | |
|---|---|
void |
configure(org.rhq.core.domain.configuration.Configuration importConfiguration)
Configures the importer. |
String |
finishImport()
Finishes the import. |
Set<EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>> |
getEntityValidators()
The set of entity validators that should be called on each entity before the import actually starts. |
ExportedEntityMatcher<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings> |
getExportedEntityMatcher()
Returns an entity matcher that can match the entities from the export file with the real entities in the database. |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getImportConfigurationDefinition()
A configuration definition describing the configuration of the importer and the default values for individual properties. |
org.rhq.core.domain.sync.entity.SystemSettings |
unmarshallExportedEntity(ExportReader reader)
Unmarshalls an entity from the provided reader. |
void |
update(NoSingleEntity entity,
org.rhq.core.domain.sync.entity.SystemSettings exportedEntity)
Updates the entity with the data from the export. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTIES_TO_IMPORT_PROPERTY
public static final String DEFAULT_IMPORTED_PROPERTIES_LIST
| Constructor Detail |
|---|
public SystemSettingsImporter(org.rhq.core.domain.auth.Subject subject,
SystemManagerLocal systemManager)
| Method Detail |
|---|
public org.rhq.core.domain.configuration.definition.ConfigurationDefinition getImportConfigurationDefinition()
ImporterThe returned configuration definition MUST define a default template.
getImportConfigurationDefinition in interface Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>public void configure(org.rhq.core.domain.configuration.Configuration importConfiguration)
Importer
configure in interface Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>importConfiguration - the configuration of the import as defined by the Importer.getImportConfigurationDefinition()public ExportedEntityMatcher<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings> getExportedEntityMatcher()
Importer
getExportedEntityMatcher in interface Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>public Set<EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>> getEntityValidators()
Importer
getEntityValidators in interface Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>
public void update(NoSingleEntity entity,
org.rhq.core.domain.sync.entity.SystemSettings exportedEntity)
throws Exception
Importer
This method is responsible for persisting the entity in the database
using the provided entityManager. Note that the actual persist can
also be delayed until the Importer.finishImport() method is called
so that the importer can take advantage of batching.
update in interface Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>entity - the entity to persist (may be null if the Importer.getExportedEntityMatcher() returned null of if the entity matcher didn't find a match)exportedEntity - the entity found in the export file that should be used to update the entity in the database
Exception
public org.rhq.core.domain.sync.entity.SystemSettings unmarshallExportedEntity(ExportReader reader)
throws XMLStreamException
Importer
unmarshallExportedEntity in interface Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>XMLStreamExceptionpublic String finishImport()
Importerupdated.
This is useful for importers that need to batch the updates to the database.
finishImport in interface Importer<NoSingleEntity,org.rhq.core.domain.sync.entity.SystemSettings>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||