Class TopicValidator
- java.lang.Object
-
- pl.allegro.tech.hermes.management.domain.topic.validator.TopicValidator
-
@Component public class TopicValidator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TopicValidator(OwnerIdValidator ownerIdValidator, ContentTypeValidator contentTypeValidator, TopicLabelsValidator topicLabelsValidator, pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository, ApiPreconditions apiPreconditions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidensureCreatedTopicIsValid(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 Detail
-
TopicValidator
@Autowired public TopicValidator(OwnerIdValidator ownerIdValidator, ContentTypeValidator contentTypeValidator, TopicLabelsValidator topicLabelsValidator, pl.allegro.tech.hermes.schema.SchemaRepository schemaRepository, ApiPreconditions apiPreconditions)
-
-
Method Detail
-
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)
-
-