public interface EntityValidator<T>
| 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(T entity)
Validates a single entity before it is imported.
|
void initialize(org.rhq.core.domain.auth.Subject subject,
javax.persistence.EntityManager entityManager)
subject - the currently authenticated userentityManager - the entity manager that can be used to access the database if the
validator needs to do so.void validateExportedEntity(T entity) throws ValidationException
#getValidatedEntityTypes().entity - ValidationExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.