03-12-2012 08:58 AM
03-12-2012 10:34 AM
04-19-2012 03:23 PM
04-19-2012 03:49 PM
protected boolean deploymentsDiffer(DeploymentEntity deployment,
DeploymentEntity saved) {
Map<String, ResourceEntity> resources = deployment.getResources();
Map<String, ResourceEntity> savedResources = saved.getResources();
for (String resourceName : resources.keySet()) {
String diagramName = resourceName.replaceAll(".+\\/", "");
boolean isNewDiagram = true; //by default
for (String pathToDiagram : savedResources.keySet()) {
if (pathToDiagram.indexOf(diagramName) >= 0) {
isNewDiagram = false;
ResourceEntity savedResource = savedResources
.get(pathToDiagram);
if (!savedResource.isGenerated()) {
ResourceEntity resource = resources.get(resourceName);
byte[] bytes = resource.getBytes();
byte[] savedBytes = savedResource.getBytes();
if (!Arrays.equals(bytes, savedBytes)) {
return true;
}
}
}
}
if(isNewDiagram) {
return true;
}
}
return false;
}
04-20-2012 04:59 AM
04-23-2012 06:16 AM
05-02-2012 04:26 AM
05-02-2012 05:04 AM
05-02-2012 09:45 AM
05-02-2012 03:30 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.