diff --git a/src/main/java/org/olat/modules/edusharing/manager/EdusharingServiceImpl.java b/src/main/java/org/olat/modules/edusharing/manager/EdusharingServiceImpl.java index e321aa745e36c13ffbd2bebb2d5da98afb8fbce6..142572c66d468a03170312513ce69542873b26af 100644 --- a/src/main/java/org/olat/modules/edusharing/manager/EdusharingServiceImpl.java +++ b/src/main/java/org/olat/modules/edusharing/manager/EdusharingServiceImpl.java @@ -51,6 +51,8 @@ import org.olat.modules.edusharing.NodeIdentifier; import org.olat.modules.edusharing.Ticket; import org.olat.modules.edusharing.model.EdusharingErrorResponse; import org.olat.modules.edusharing.model.TicketImpl; +import org.olat.repository.RepositoryEntry; +import org.olat.repository.RepositoryEntryDataDeletable; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -61,7 +63,7 @@ import org.springframework.stereotype.Service; * */ @Service -public class EdusharingServiceImpl implements EdusharingService { +public class EdusharingServiceImpl implements EdusharingService, RepositoryEntryDataDeletable { private static final OLog log = Tracing.createLoggerFor(EdusharingServiceImpl.class); @@ -258,6 +260,11 @@ public class EdusharingServiceImpl implements EdusharingService { deleteUsage(usage, userIdentifier); } + @Override + public boolean deleteRepositoryEntryData(RepositoryEntry re) { + deleteUsages(re, null); + return true; + } @Override public void deleteUsages(EdusharingProvider edusharingProvider) { deleteUsages(edusharingProvider.getOlatResourceable(), edusharingProvider.getSubPath()); @@ -291,4 +298,5 @@ public class EdusharingServiceImpl implements EdusharingService { usageDao.delete(usage.getIdentifier()); } + }