use of org.bimserver.database.actions.GetRevisionSummaryDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method getRevisionSummary.
@Override
public SRevisionSummary getRevisionSummary(Long roid) throws ServerException, UserException {
requireAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<RevisionSummary> action = new GetRevisionSummaryDatabaseAction(session, getInternalAccessMethod(), roid);
RevisionSummary revisionSummary = session.executeAndCommitAction(action);
return getBimServer().getSConverter().convertToSObject(revisionSummary);
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations