| | |
| | | import javax.swing.JTextField;
|
| | | import javax.swing.KeyStroke;
|
| | |
|
| | | import com.gitblit.Constants;
|
| | | import com.gitblit.Constants.AccessRestrictionType;
|
| | | import com.gitblit.Constants.AuthorizationControl;
|
| | | import com.gitblit.Constants.PermissionType;
|
| | |
| | | List<String> list = new ArrayList<String>();
|
| | | // repositories
|
| | | list.add(".*");
|
| | | // all repositories excluding personal repositories
|
| | | list.add("[^~].*");
|
| | | |
| | | String prefix;
|
| | | if (settings.hasKey(Keys.git.userRepositoryPrefix)) {
|
| | | prefix = settings.get(Keys.git.userRepositoryPrefix).currentValue;
|
| | | if (StringUtils.isEmpty(prefix)) {
|
| | | prefix = Constants.DEFAULT_USER_REPOSITORY_PREFIX;
|
| | | }
|
| | | } else {
|
| | | prefix = Constants.DEFAULT_USER_REPOSITORY_PREFIX;
|
| | | }
|
| | |
|
| | | if (prefix.length() == 1) {
|
| | | // all repositories excluding personal repositories
|
| | | list.add("[^" + prefix + "].*");
|
| | | }
|
| | | |
| | | String lastProject = null;
|
| | | for (String repo : restricted) {
|
| | | String projectPath = StringUtils.getFirstPathElement(repo).toLowerCase();
|