diff --git a/dspace-api/src/main/java/org/dspace/core/ProvenanceMessageProvider.java b/dspace-api/src/main/java/org/dspace/core/ProvenanceMessageProvider.java index e5d109b8bcf4..f5f368fd0aa8 100644 --- a/dspace-api/src/main/java/org/dspace/core/ProvenanceMessageProvider.java +++ b/dspace-api/src/main/java/org/dspace/core/ProvenanceMessageProvider.java @@ -29,8 +29,8 @@ import org.slf4j.LoggerFactory; /** - * The ProvenanceMessageProviderImpl class implements the ProvenanceMessageProvider interface, - * providing methods to generate provenance messages for DSpace items. It loads message templates + * The ProvenanceMessageProvider providing methods to generate provenance messages for DSpace items. + * It loads message templates * from a JSON file and formats messages based on the context, including user details and timestamps. * * @author Michaela Paurikova (dspace at dataquest.sk) diff --git a/dspace-api/src/main/java/org/dspace/core/ProvenanceProvider.java b/dspace-api/src/main/java/org/dspace/core/ProvenanceProvider.java index b92cbd62d3bf..f41dc57a136d 100644 --- a/dspace-api/src/main/java/org/dspace/core/ProvenanceProvider.java +++ b/dspace-api/src/main/java/org/dspace/core/ProvenanceProvider.java @@ -39,7 +39,7 @@ import org.dspace.content.service.clarin.ClarinLicenseResourceMappingService; /** - * Provenance is responsible for creating provenance metadata for items based on the actions performed. + * ProvenanceProviderrest is responsible for creating provenance metadata for items based on the actions performed. * * @author Michaela Paurikova (dspace at dataquest.sk) */ @@ -47,9 +47,12 @@ public class ProvenanceProvider { private static final Logger log = LogManager.getLogger(ProvenanceProvider.class); private ItemService itemService = ContentServiceFactory.getInstance().getItemService(); - private ResourcePolicyService resourcePolicyService = AuthorizeServiceFactory.getInstance().getResourcePolicyService(); + private ResourcePolicyService resourcePolicyService = + AuthorizeServiceFactory.getInstance().getResourcePolicyService(); + private ClarinItemService clarinItemService = ClarinServiceFactory.getInstance().getClarinItemService(); - private ClarinLicenseResourceMappingService clarinResourceMappingService = ClarinServiceFactory.getInstance().getClarinLicenseResourceMappingService(); + private ClarinLicenseResourceMappingService clarinResourceMappingService = + ClarinServiceFactory.getInstance().getClarinLicenseResourceMappingService(); private BitstreamService bitstreamService = ContentServiceFactory.getInstance().getBitstreamService(); private final ProvenanceMessageProvider messageProvider = new ProvenanceMessageProvider();