Search in sources :

Example 1 with ExtensionScmConnection

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;
}
Also used : DefaultExtensionScmConnection(org.xwiki.extension.DefaultExtensionScmConnection) ExtensionScmConnection(org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionScmConnection) DefaultExtensionScmConnection(org.xwiki.extension.DefaultExtensionScmConnection)

Aggregations

DefaultExtensionScmConnection (org.xwiki.extension.DefaultExtensionScmConnection)1 ExtensionScmConnection (org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionScmConnection)1