use of org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionScmConnection in project xwiki-platform by xwiki.
the class AbstractExtensionRESTResource method toScmConnection.
protected ExtensionScmConnection toScmConnection(String connectionString) {
if (connectionString != null) {
org.xwiki.extension.ExtensionScmConnection connection = new DefaultExtensionScmConnection(connectionString);
ExtensionScmConnection restConnection = new ExtensionScmConnection();
restConnection.setPath(connection.getPath());
restConnection.setSystem(connection.getSystem());
return restConnection;
}
return null;
}
Aggregations