|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityValidator<T>
Entity validators are declared by importers to validate the entities in the export file before it gets imported.
| 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(T entity)
Validates a single entity before it is imported. |
| Method Detail |
|---|
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 -
ValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||