use of org.bimserver.interfaces.objects.SIfcHeader in project BIMserver by opensourceBIM.
the class ServiceImpl method getIfcHeader.
@Override
public SIfcHeader getIfcHeader(Long croid) throws UserException, ServerException {
requireAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<SIfcHeader> action = new GetIfcHeaderDatabaseAction(getBimServer(), session, getInternalAccessMethod(), croid, getAuthorization());
return session.executeAndCommitAction(action);
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations