@Documented @Target @Retention @Constraint public abstract @interface

RepositorySelectorValid

implements Annotation
com.atlassian.bitbucket.rest.validation.RepositorySelectorValid

Class Overview

Validates a RestRepositorySelector. The validation rules are as follows.

  • com.atlassian.bitbucket.migration.RepositorySelector#getSlug() should be * if the com.atlassian.bitbucket.migration.RepositorySelector#getProjectKey() is *
  • com.atlassian.bitbucket.migration.RepositorySelector#getSlug() and com.atlassian.bitbucket.migration.RepositorySelector#getProjectKey() should not be partial matches, i.e., they should not contain a *. Example of valid selectors are BITBUCKET or *

Summary

[Expand]
Inherited Methods
From interface java.lang.annotation.Annotation