org.rhq.enterprise.server.sync.validators
Class SystemSettingsValidator
java.lang.Object
org.rhq.enterprise.server.sync.validators.SystemSettingsValidator
- All Implemented Interfaces:
- EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>
public class SystemSettingsValidator
- extends Object
- implements EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>
- Author:
- Lukas Krejci
|
Method Summary |
void |
initialize(org.rhq.core.domain.auth.Subject subject,
javax.persistence.EntityManager entityManager)
Initializes the validator with the current authentication info and access to database. |
void |
validateExportedEntity(org.rhq.core.domain.sync.entity.SystemSettings entity)
Validates a single entity before it is imported. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemSettingsValidator
public SystemSettingsValidator()
SystemSettingsValidator
public SystemSettingsValidator(SystemManagerLocal systemManager)
initialize
public void initialize(org.rhq.core.domain.auth.Subject subject,
javax.persistence.EntityManager entityManager)
- Description copied from interface:
EntityValidator
- Initializes the validator with the current authentication info and access to database.
This method is only called during import.
- Specified by:
initialize in interface EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>
- Parameters:
subject - the currently authenticated userentityManager - the entity manager that can be used to access the database if the
validator needs to do so.
validateExportedEntity
public void validateExportedEntity(org.rhq.core.domain.sync.entity.SystemSettings entity)
throws ValidationException
- Description copied from interface:
EntityValidator
- Validates a single entity before it is imported.
The supplied entity has one of the types returned by
#getValidatedEntityTypes().
- Specified by:
validateExportedEntity in interface EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>
- Throws:
ValidationException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.