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