| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Tries to pull the gitblit team definitions from the remote gitblit instance.
|
| | | * Tries to pull the gitblit team definitions from the remote gitblit
|
| | | * instance.
|
| | | *
|
| | | * @param registration
|
| | | * @return a collection of TeamModel objects
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * Tries to pull the referenced scripts from the remote gitblit instance.
|
| | | * |
| | | * @param registration
|
| | | * @return a map of the remote gitblit scripts by script name
|
| | | * @throws Exception
|
| | | */
|
| | | public static Map<String, String> getScripts(FederationModel registration) throws Exception {
|
| | | String url = asLink(registration.url, registration.token, FederationRequest.PULL_SCRIPTS);
|
| | | Map<String, String> scripts = JsonUtils.retrieveJson(url, SETTINGS_TYPE);
|
| | | return scripts;
|
| | | }
|
| | |
|
| | | /**
|
| | | * Send an status acknowledgment to the remote Gitblit server.
|
| | | *
|
| | | * @param identification
|