| | |
| | |
|
| | | public static final String DEFAULT_USER_REPOSITORY_PREFIX = "~";
|
| | |
|
| | | public static final String R_PATH = "/r/";
|
| | |
|
| | | public static final String GIT_PATH = "/git/";
|
| | |
|
| | | public static final String ZIP_PATH = "/zip/";
|
| | |
| | | public static enum SearchObjectType {
|
| | | commit, blob;
|
| | |
|
| | | static SearchObjectType fromName(String name) {
|
| | | public static SearchObjectType fromName(String name) {
|
| | | for (SearchObjectType value : values()) {
|
| | | if (value.name().equals(name)) {
|
| | | return value;
|
| | |
| | | }
|
| | |
|
| | | public static enum AccountType {
|
| | | LOCAL, EXTERNAL, LDAP, REDMINE, SALESFORCE, WINDOWS, PAM, HTPASSWD;
|
| | | LOCAL, EXTERNAL, CONTAINER, LDAP, REDMINE, SALESFORCE, WINDOWS, PAM, HTPASSWD;
|
| | |
|
| | | public static AccountType fromString(String value) {
|
| | | for (AccountType type : AccountType.values()) {
|
| | | if (type.name().equalsIgnoreCase(value)) {
|
| | | return type;
|
| | | }
|
| | | }
|
| | | return AccountType.LOCAL;
|
| | | }
|
| | |
|
| | | public boolean isLocal() {
|
| | | return this == LOCAL;
|