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