public static void archive(String servicePointId) { // TODO Auto-generated method stub Key serviceKey = ServicePointService.getKey(servicePointId); EntityManager em = EmfService.getEntityManager(); em.getTransaction().begin(); ServicePoint servicePoint = em.find(ServicePoint.class, serviceKey); if (servicePoint == null) { em.getTransaction().rollback(); return; } servicePoint.setActive(false); em.getTransaction().commit(); }
public static String getShortName(String serviceId) { ServicePoint servicePoint = getServicePoint(serviceId); return servicePoint.getShortName(); }