@Component
public class TopicValidator
extends java.lang.Object
| Constructor and Description |
|---|
TopicValidator(OwnerIdValidator ownerIdValidator,
ContentTypeValidator contentTypeValidator,
TopicLabelsValidator topicLabelsValidator,
pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository,
ApiPreconditions apiPreconditions) |
| Modifier and Type | Method and Description |
|---|---|
void |
ensureCreatedTopicIsValid(pl.allegro.tech.hermes.api.Topic created,
TopicManipulatorUser createdBy,
CreatorRights creatorRights) |
void |
ensureUpdatedTopicIsValid(pl.allegro.tech.hermes.api.Topic updated,
pl.allegro.tech.hermes.api.Topic previous,
TopicManipulatorUser modifiedBy) |
@Autowired public TopicValidator(OwnerIdValidator ownerIdValidator, ContentTypeValidator contentTypeValidator, TopicLabelsValidator topicLabelsValidator, pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository, ApiPreconditions apiPreconditions)
public void ensureCreatedTopicIsValid(pl.allegro.tech.hermes.api.Topic created,
TopicManipulatorUser createdBy,
CreatorRights creatorRights)
public void ensureUpdatedTopicIsValid(pl.allegro.tech.hermes.api.Topic updated,
pl.allegro.tech.hermes.api.Topic previous,
TopicManipulatorUser modifiedBy)