use of org.bimserver.database.actions.GetObjectIDMByIdDatabaseAction in project BIMserver by opensourceBIM.
the class PluginServiceImpl method getObjectIDMById.
@Override
public SObjectIDMPluginConfiguration getObjectIDMById(Long oid) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(new GetObjectIDMByIdDatabaseAction(session, getInternalAccessMethod(), oid)));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations