diff --git a/src/main/java/edu/harvard/iq/dataverse/api/Datasets.java b/src/main/java/edu/harvard/iq/dataverse/api/Datasets.java index 89ef51eb2e5..5bf75402a15 100644 --- a/src/main/java/edu/harvard/iq/dataverse/api/Datasets.java +++ b/src/main/java/edu/harvard/iq/dataverse/api/Datasets.java @@ -5147,7 +5147,6 @@ public Response addDatasetType(@Context ContainerRequestContext crc, String json DatasetType saved = datasetTypeSvc.save(datasetType); Long typeId = saved.getId(); String name = saved.getName(); - actionLogSvc.log(new ActionLogRecord(ActionLogRecord.ActionType.Admin, "addDatasetType").setInfo("Dataset type added with id " + typeId + " and name " + name + ".")); return ok(saved.toJson()); } catch (WrappedResponse ex) { return error(BAD_REQUEST, ex.getMessage()); diff --git a/src/main/java/edu/harvard/iq/dataverse/dataset/DatasetTypeServiceBean.java b/src/main/java/edu/harvard/iq/dataverse/dataset/DatasetTypeServiceBean.java index dcb6822d524..832182f2a4a 100644 --- a/src/main/java/edu/harvard/iq/dataverse/dataset/DatasetTypeServiceBean.java +++ b/src/main/java/edu/harvard/iq/dataverse/dataset/DatasetTypeServiceBean.java @@ -1,9 +1,7 @@ package edu.harvard.iq.dataverse.dataset; import edu.harvard.iq.dataverse.actionlogging.ActionLogRecord; -import edu.harvard.iq.dataverse.actionlogging.ActionLogServiceBean; import edu.harvard.iq.dataverse.api.AbstractApiBean; -import jakarta.ejb.EJB; import jakarta.ejb.Stateless; import jakarta.inject.Named; import jakarta.persistence.EntityManager; @@ -23,9 +21,6 @@ public class DatasetTypeServiceBean { @PersistenceContext EntityManager em; - @EJB - ActionLogServiceBean actionLogSvc; - public List listAll() { return em.createNamedQuery("DatasetType.findAll", DatasetType.class).getResultList(); } @@ -70,8 +65,6 @@ public DatasetType save(DatasetType datasetType) throws AbstractApiBean.WrappedR } public int deleteById(long id) throws AbstractApiBean.WrappedResponse { - actionLogSvc.log(new ActionLogRecord(ActionLogRecord.ActionType.Admin, "delete dataset type") - .setInfo(Long.toString(id))); try { return em.createNamedQuery("DatasetType.deleteById").setParameter("id", id).executeUpdate(); } catch (PersistenceException p) {