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