Interface CleanerListener
- All Known Implementing Classes:
DefaultCleanupListener
public interface CleanerListener
Listener that can be used to react on cleanup events created for items that are marked
with action
CleanupPathAction.ASK
.-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
onConfirmOptionalCleanup
(CleanupEvent<Item<?, ?>> event) Method that allows consumers to react on cleanup event marked with actionCleanupPathAction.ASK
.default Boolean
onItemCleanup
(CleanupEvent<Item<?, ?>> event) Method that allows consumers to decide whether item should be removeddefault void
Method that allows consumers to clean up references, e.g. oids, filteres, etc.
-
Method Details
-
onConfirmOptionalCleanup
Method that allows consumers to react on cleanup event marked with actionCleanupPathAction.ASK
.- Returns:
- true if the item should be removed, false otherwise
-
onReferenceCleanup
Method that allows consumers to clean up references, e.g. oids, filteres, etc.- Parameters:
event
-
-
onItemCleanup
Method that allows consumers to decide whether item should be removed- Returns:
- true if the item should be removed, false otherwise. If null is returned, the default behaviour is used.
-