Class TopicValidator
java.lang.Object
pl.allegro.tech.hermes.management.domain.topic.validator.TopicValidator
-
Constructor Summary
ConstructorsConstructorDescriptionTopicValidator(OwnerIdValidator ownerIdValidator, ContentTypeValidator contentTypeValidator, TopicLabelsValidator topicLabelsValidator, pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository, ApiPreconditions apiPreconditions, TopicProperties topicProperties) -
Method Summary
Modifier and TypeMethodDescriptionvoidensureCreatedTopicIsValid(pl.allegro.tech.hermes.api.Topic created, RequestUser createdBy, CreatorRights creatorRights) voidensureUpdatedTopicIsValid(pl.allegro.tech.hermes.api.Topic updated, pl.allegro.tech.hermes.api.Topic previous, RequestUser modifiedBy)
-
Constructor Details
-
TopicValidator
@Autowired public TopicValidator(OwnerIdValidator ownerIdValidator, ContentTypeValidator contentTypeValidator, TopicLabelsValidator topicLabelsValidator, pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository, ApiPreconditions apiPreconditions, TopicProperties topicProperties)
-
-
Method Details
-
ensureCreatedTopicIsValid
public void ensureCreatedTopicIsValid(pl.allegro.tech.hermes.api.Topic created, RequestUser createdBy, CreatorRights creatorRights) -
ensureUpdatedTopicIsValid
public void ensureUpdatedTopicIsValid(pl.allegro.tech.hermes.api.Topic updated, pl.allegro.tech.hermes.api.Topic previous, RequestUser modifiedBy)
-