use of org.bimserver.database.actions.DeleteObjectIDMDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method deleteObjectIDM.
@Override
public void deleteObjectIDM(Long ifid) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<Void> action = new DeleteObjectIDMDatabaseAction(session, getInternalAccessMethod(), ifid);
session.executeAndCommitAction(action);
} catch (Exception e) {
handleException(e);
} finally {
session.close();
}
}
Aggregations