| | |
| | |
|
| | | public static final String HEAD = "HEAD";
|
| | |
|
| | | public static final String R_GITBLIT = "refs/gitblit/";
|
| | | public static final String R_META = "refs/meta/";
|
| | |
|
| | | public static final String R_HEADS = "refs/heads/";
|
| | |
|
| | |
| | | public static enum RpcRequest {
|
| | | // Order is important here. anything above LIST_SETTINGS requires
|
| | | // administrator privileges and web.allowRpcManagement.
|
| | | CLEAR_REPOSITORY_CACHE, GET_PROTOCOL, LIST_REPOSITORIES, LIST_BRANCHES, GET_USER, LIST_SETTINGS,
|
| | | CLEAR_REPOSITORY_CACHE, REINDEX_TICKETS, GET_PROTOCOL, LIST_REPOSITORIES, LIST_BRANCHES, GET_USER, LIST_SETTINGS,
|
| | | CREATE_REPOSITORY, EDIT_REPOSITORY, DELETE_REPOSITORY,
|
| | | LIST_USERS, CREATE_USER, EDIT_USER, DELETE_USER,
|
| | | LIST_TEAMS, CREATE_TEAM, EDIT_TEAM, DELETE_TEAM,
|
| | |
| | | }
|
| | |
|
| | | public static enum AuthenticationType {
|
| | | CREDENTIALS, COOKIE, CERTIFICATE, CONTAINER;
|
| | | SSH, CREDENTIALS, COOKIE, CERTIFICATE, CONTAINER;
|
| | |
|
| | | public boolean isStandard() {
|
| | | return ordinal() <= COOKIE.ordinal();
|