call.deployProject(data, cb);
return cb.waitUntilDone();
}
private DeployData convertProjectToDeployData(final IntegrationProject project) {
final ManagedProject mp = project.getExtensionObject(ManagedProject.class);
return new DeployData() {
@Override
public FileStore getFileStore() {
return mp.getFileStore();
}
@Override
public InputAndOutputMappingTreeStructureCache getTransformationStructureCache() {
return mp.getTransformationMappingStructureCache();
}
@Override
public PermissionsManager getPermissions() {
return mp.getPermissions();
}
@Override
public AppliedPipelinePluginStore getPluginFilters() {
return mp.getPipelinePlugins().getAppliedPlugins();
}
@Override
public EntityResources getEntityResources() {
return mp.getEntityResources();
}
@Override
public IntegrationProject getProject() {
return project;
}
@Override
public boolean isPartial() {
return false;
}
@Override
public Collection<IntegrationId> getDeletedItemsOfType(EntityType type) {
return mp.getDeletedItemsOfType(type);
}
@Override
public String getTag() {
return null;