/** * Query Entity Manager for the state of the Import Entity. This corresponds to the GET /import */ @Override public Import.State getState(UUID uuid) throws Exception { Preconditions.checkNotNull(uuid, "uuid cannot be null"); EntityManager rootEm = emf.getEntityManager(emf.getManagementAppId()); //retrieve the import entity. Import importUG = rootEm.get(uuid, Import.class); if (importUG == null) { throw new EntityNotFoundException("Could not find entity with uuid " + uuid); } return importUG.getState(); }
if (logger.isTraceEnabled()) { logger.trace("Updated import entity {}:{} with state {}", importEntity.getType(), importEntity.getUuid(), importEntity.getState());