2018-09-26 14:03:08 +02:00
|
|
|
package sonia.scm.api.v2;
|
|
|
|
|
|
2018-09-27 09:27:34 +02:00
|
|
|
public final class ValidationConstraints {
|
|
|
|
|
|
|
|
|
|
private ValidationConstraints() {}
|
2018-09-26 14:03:08 +02:00
|
|
|
|
|
|
|
|
/**
|
2018-10-01 12:20:17 +02:00
|
|
|
* A user or group name should not start with <code>@</code> or a whitespace
|
2018-09-26 14:03:08 +02:00
|
|
|
* and it not contains whitespaces
|
2018-10-01 12:20:17 +02:00
|
|
|
* and the characters: . - _ @ are allowed
|
2018-09-26 14:03:08 +02:00
|
|
|
*/
|
2018-10-02 09:59:17 +02:00
|
|
|
public static final String USER_GROUP_PATTERN = "^[A-Za-z0-9\\.\\-_][A-Za-z0-9\\.\\-_@]*$";
|
2018-09-26 14:03:08 +02:00
|
|
|
|
|
|
|
|
}
|