| | |
| | |
|
| | | // set author metric exclusions
|
| | | String ax = metricAuthorExclusions.getObject();
|
| | | if (!StringUtils.isEmpty(ax)) {
|
| | | if (StringUtils.isEmpty(ax)) {
|
| | | repositoryModel.metricAuthorExclusions = new ArrayList<String>();
|
| | | } else {
|
| | | Set<String> list = new HashSet<String>();
|
| | | for (String exclusion : StringUtils.getStringsFromValue(ax, " ")) {
|
| | | if (StringUtils.isEmpty(exclusion)) {
|
| | |
| | |
|
| | | // set mailing lists
|
| | | String ml = mailingLists.getObject();
|
| | | if (!StringUtils.isEmpty(ml)) {
|
| | | if (StringUtils.isEmpty(ml)) {
|
| | | repositoryModel.mailingLists = new ArrayList<String>();
|
| | | } else {
|
| | | Set<String> list = new HashSet<String>();
|
| | | for (String address : ml.split("(,|\\s)")) {
|
| | | if (StringUtils.isEmpty(address)) {
|
| | |
| | | return;
|
| | | }
|
| | | setRedirect(false);
|
| | | setResponsePage(RepositoriesPage.class);
|
| | | if (isCreate) {
|
| | | setResponsePage(RepositoriesPage.class);
|
| | | } else {
|
| | | setResponsePage(SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryModel.name));
|
| | | }
|
| | | }
|
| | | };
|
| | |
|
| | |
| | |
|
| | | @Override
|
| | | public void onSubmit() {
|
| | | setResponsePage(RepositoriesPage.class);
|
| | | if (isCreate) {
|
| | | setResponsePage(RepositoriesPage.class);
|
| | | } else {
|
| | | setResponsePage(SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryModel.name));
|
| | | }
|
| | | }
|
| | | };
|
| | | cancel.setDefaultFormProcessing(false);
|