| | |
| | | */
|
| | | package com.gitblit.wicket.pages;
|
| | |
|
| | | import java.io.Serializable;
|
| | | import java.text.MessageFormat;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Arrays;
|
| | |
| | | RepositoryModel model = GitBlit.self().getRepositoryModel(
|
| | | GitBlitWebSession.get().getUser(), repositoryName);
|
| | | if (model == null) {
|
| | | error("Unauthorized access for repository " + repositoryName, true);
|
| | | authenticationError("Unauthorized access for repository " + repositoryName);
|
| | | return null;
|
| | | }
|
| | | m = model;
|
| | |
| | | return WicketUtils.newPathParameter(repositoryName, objectId, path);
|
| | | }
|
| | |
|
| | | private static class PageRegistration {
|
| | | private static class PageRegistration implements Serializable {
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | final String translationKey;
|
| | | final Class<? extends BasePage> pageClass;
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private static class SearchForm extends StatelessForm<Void> {
|
| | | private static class SearchForm extends StatelessForm<Void> implements Serializable {
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private final String repositoryName;
|