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