use of org.bimserver.database.actions.GetGeoTagDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method getGeoTag.
@Override
public SGeoTag getGeoTag(Long goid) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<GeoTag> action = new GetGeoTagDatabaseAction(session, getInternalAccessMethod(), getAuthorization(), goid);
return getBimServer().getSConverter().convertToSObject(session.executeAndCommitAction(action));
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations