public class SystemSettingsValidator extends Object implements EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>
| Constructor and Description |
|---|
SystemSettingsValidator() |
SystemSettingsValidator(SystemManagerLocal systemManager) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SystemSettingsValidator()
public SystemSettingsValidator(SystemManagerLocal systemManager)
public void initialize(org.rhq.core.domain.auth.Subject subject,
javax.persistence.EntityManager entityManager)
EntityValidatorinitialize in interface EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>subject - the currently authenticated userentityManager - the entity manager that can be used to access the database if the
validator needs to do so.public void validateExportedEntity(org.rhq.core.domain.sync.entity.SystemSettings entity)
throws ValidationException
EntityValidator#getValidatedEntityTypes().validateExportedEntity in interface EntityValidator<org.rhq.core.domain.sync.entity.SystemSettings>ValidationExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.