use of org.vcell.util.DataAccessException in project vcell by virtualcell.
the class ClientDocumentManager method setGroupPrivate.
/**
* Insert the method's description here.
* Creation date: (11/28/00 5:43:44 PM)
* @param bioModelInfo cbit.vcell.biomodel.BioModelInfo
*/
public GeometryInfo setGroupPrivate(GeometryInfo geometryInfo) throws DataAccessException {
try {
//
// unpublish from database
//
GeometryInfo newGeometryInfo = (GeometryInfo) setGroupPrivate0(geometryInfo, VersionableType.Geometry, geoInfoHash);
// //
// // delete Geometry from cache
// //
// xmlHash.remove(geometryInfo.getVersion().getVersionKey());
// //
// // delete any MathModelMetaData's that use this GeometryInfo from cache
// //
// MathModelInfo referencedMathModelInfos[] = getMathModelReferences(geometryInfo);
// for (int i = 0; i < referencedMathModelInfos.length; i++){
// xmlHash.remove(referencedMathModelInfos[i].getVersion().getVersionKey());
// }
// //
// // delete any BioModelMetaData's that use this GeometryInfo from cache
// //
// BioModelInfo referencedBioModelInfos[] = getBioModelReferences(geometryInfo);
// for (int i = 0; i < referencedBioModelInfos.length; i++){
// xmlHash.remove(referencedBioModelInfos[i].getVersion().getVersionKey());
// }
fireDatabaseUpdate(new DatabaseEvent(this, DatabaseEvent.UPDATE, geometryInfo, newGeometryInfo));
return newGeometryInfo;
} catch (RemoteProxyException e) {
handleRemoteProxyException(e);
throw new DataAccessException(e.getMessage());
}
}
use of org.vcell.util.DataAccessException in project vcell by virtualcell.
the class ClientDocumentManager method setGroupPrivate.
/**
* Insert the method's description here.
* Creation date: (11/28/00 5:43:44 PM)
* @param bioModelInfo cbit.vcell.biomodel.BioModelInfo
*/
public MathModelInfo setGroupPrivate(MathModelInfo mathModelInfo) throws DataAccessException {
try {
//
// unpublish from database
//
MathModelInfo newMathModelInfo = (MathModelInfo) setGroupPrivate0(mathModelInfo, VersionableType.MathModelMetaData, mathModelInfoHash);
//
// delete MathModelMetaData from cache
//
xmlHash.remove(mathModelInfo.getVersion().getVersionKey());
fireDatabaseUpdate(new DatabaseEvent(this, DatabaseEvent.UPDATE, mathModelInfo, newMathModelInfo));
return newMathModelInfo;
} catch (RemoteProxyException e) {
handleRemoteProxyException(e);
throw new DataAccessException(e.getMessage());
}
}
use of org.vcell.util.DataAccessException in project vcell by virtualcell.
the class ClientDocumentManager method curate.
/**
* Insert the method's description here.
* Creation date: (5/23/2006 9:23:34 AM)
*/
public void curate(CurateSpec curateSpec) throws DataAccessException {
try {
VCDocumentInfo newVCDocumentInfo = getSessionManager().getUserMetaDbServer().curate(curateSpec);
xmlHash.remove(curateSpec.getVCDocumentInfo().getVersion().getVersionKey());
if (curateSpec.getVCDocumentInfo() instanceof MathModelInfo) {
mathModelInfoHash.remove(curateSpec.getVCDocumentInfo().getVersion().getVersionKey());
mathModelInfoHash.put(newVCDocumentInfo.getVersion().getVersionKey(), (MathModelInfo) newVCDocumentInfo);
} else if (curateSpec.getVCDocumentInfo() instanceof BioModelInfo) {
bioModelInfoHash.remove(curateSpec.getVCDocumentInfo().getVersion().getVersionKey());
bioModelInfoHash.put(newVCDocumentInfo.getVersion().getVersionKey(), (BioModelInfo) newVCDocumentInfo);
}
fireDatabaseUpdate(new DatabaseEvent(this, DatabaseEvent.UPDATE, curateSpec.getVCDocumentInfo(), newVCDocumentInfo));
} catch (Exception e) {
e.printStackTrace();
throw new DataAccessException(e.getClass().getName() + " " + e.getMessage());
}
}
use of org.vcell.util.DataAccessException in project vcell by virtualcell.
the class ClientDocumentManager method reloadGeometryInfos.
/**
* Insert the method's description here.
* Creation date: (11/14/00 5:33:21 PM)
* @return cbit.vcell.biomodel.BioModelInfo[]
*/
private void reloadGeometryInfos() throws DataAccessException {
try {
System.out.println("ClientDocumentManager.reloadGeometryInfos()");
GeometryInfo[] geometryInfos = sessionManager.getUserMetaDbServer().getGeometryInfos(true);
if (geometryInfos != null) {
geoInfoHash.clear();
for (int i = 0; i < geometryInfos.length; i++) {
geoInfoHash.put(geometryInfos[i].getVersion().getVersionKey(), geometryInfos[i]);
}
}
} catch (RemoteProxyException e) {
handleRemoteProxyException(e);
throw new DataAccessException("RemoteProxyException: " + e.getMessage());
}
}
use of org.vcell.util.DataAccessException in project vcell by virtualcell.
the class ClientDocumentManager method setGroupPublic.
/**
* Insert the method's description here.
* Creation date: (11/28/00 5:43:44 PM)
* @param bioModelInfo cbit.vcell.biomodel.BioModelInfo
*/
public VCImageInfo setGroupPublic(VCImageInfo imageInfo) throws DataAccessException {
try {
//
// publish from database
//
VCImageInfo newImageInfo = (VCImageInfo) setGroupPublic0(imageInfo, VersionableType.VCImage, imgInfoHash);
//
// delete Image from cache
//
xmlHash.remove(imageInfo.getVersion().getVersionKey());
fireDatabaseUpdate(new DatabaseEvent(this, DatabaseEvent.UPDATE, imageInfo, newImageInfo));
return newImageInfo;
} catch (RemoteProxyException e) {
handleRemoteProxyException(e);
throw new DataAccessException(e.getMessage());
}
}
Aggregations