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