| | |
| | | import org.apache.wicket.model.CompoundPropertyModel;
|
| | |
|
| | | import com.gitblit.Constants.FederationProposalResult;
|
| | | import com.gitblit.GitBlit;
|
| | | import com.gitblit.models.FederationProposal;
|
| | | import com.gitblit.models.RepositoryModel;
|
| | | import com.gitblit.utils.FederationUtils;
|
| | |
| | | destinationUrl = "https://";
|
| | |
|
| | | // temporary proposal
|
| | | FederationProposal proposal = GitBlit.self().createFederationProposal(myUrl, token);
|
| | | FederationProposal proposal = app().federation().createFederationProposal(myUrl, token);
|
| | | if (proposal == null) {
|
| | | error(getString("gb.couldNotCreateFederationProposal"), true);
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | // build new proposal
|
| | | FederationProposal proposal = GitBlit.self().createFederationProposal(myUrl, token);
|
| | | FederationProposal proposal = app().federation().createFederationProposal(myUrl, token);
|
| | | proposal.url = myUrl;
|
| | | proposal.message = message;
|
| | | try {
|
| | |
| | | false, repositories, false, getAccessRestrictions());
|
| | | add(repositoriesPanel);
|
| | | }
|
| | | |
| | |
|
| | | @Override
|
| | | protected Class<? extends BasePage> getRootNavPageClass() {
|
| | | return FederationPage.class;
|