use of org.xwiki.extension.repository.xwiki.model.jaxb.ExtensionRepository in project xwiki-platform by xwiki.
the class AbstractExtensionRESTResource method toExtensionRepository.
protected ExtensionRepository toExtensionRepository(String repositoryString) throws URISyntaxException {
if (repositoryString != null) {
ExtensionRepositoryDescriptor descriptor = XWikiRepositoryModel.toRepositoryDescriptor(repositoryString, extensionFactory);
ExtensionRepository restRepository = new ExtensionRepository();
restRepository.setId(descriptor.getId());
restRepository.setType(descriptor.getType());
restRepository.setUri(descriptor.getURI().toString());
return restRepository;
}
return null;
}
Aggregations