19 package org.turro.cleanup;
21 import java.util.Collections;
23 import org.turro.assistant.ParticipationInfo;
24 import org.turro.log.SystemLogModel;
25 import org.turro.log.SystemLogger;
26 import org.turro.related.Relateds;
27 import org.turro.skills.Skills;
28 import org.turro.tags.Tags;
38 public boolean isMine(Object entity) {
49 if(commons.contains(Commons.TAGS)) {
54 if(commons.contains(Commons.SKILLS)) {
59 if(commons.contains(Commons.PARTICIPATIONS)) {
64 if(commons.contains(Commons.RELATED)) {
69 if(commons.contains(Commons.LOGS)) {
78 return switch (common) {
84 default -> Collections.EMPTY_SET;
static void cleanup(String entityPath)
static Set< String > getAllPaths(String root)
ICleanupConsole getConsole()
static CleanupAction from(String message, Runnable action)
void execute(ICleanupConsole console, CleanupMode mode)
void cleanFromCommons(String entityPath, CleanupMode mode, Set< Commons > commons)
Set< String > pathsForRoot(String root, Commons common)
void cleanEntity(Object entity, CleanupMode mode)
boolean isMine(Object entity)
static Set< String > getAllPaths(String root)
static void cleanup(String entityPath)
static Set< String > getAllPaths(String root)
static void removeSkills(String entityPath)