| | |
| | | error("Relative folder references (../) are prohibited.");
|
| | | return false;
|
| | | }
|
| | | if (rname.endsWith("/")) {
|
| | | rname = rname.substring(0, rname.length() - 1);
|
| | | }
|
| | |
|
| | | // confirm valid characters in repository name
|
| | | Character c = StringUtils.findInvalidCharacter(rname);
|
| | |
| | | JOptionPane.showMessageDialog(EditRepositoryDialog.this, message,
|
| | | Translation.get("gb.error"), JOptionPane.ERROR_MESSAGE);
|
| | | }
|
| | | |
| | | public void setAccessRestriction(AccessRestrictionType restriction) {
|
| | | this.accessRestriction.setSelectedItem(restriction);
|
| | | }
|
| | |
|
| | | public void setUsers(String owner, List<String> all, List<String> selected) {
|
| | | ownerField.setModel(new DefaultComboBoxModel(all.toArray()));
|