public class MaxCountValidator<T> extends Object implements EntityValidator<T>
| Constructor and Description |
|---|
MaxCountValidator(int max) |
| 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.
|
public void initialize(org.rhq.core.domain.auth.Subject subject,
javax.persistence.EntityManager entityManager)
EntityValidatorinitialize in interface EntityValidator<T>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(T entity) throws ValidationException
EntityValidator#getValidatedEntityTypes().validateExportedEntity in interface EntityValidator<T>ValidationExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.