19 package org.turro.cleanup;
21 import java.util.Collections;
23 import org.turro.attach.search.Attachments;
24 import org.turro.file.util.AttachFiles;
34 public boolean isMine(Object entity) {
45 if(commons.contains(Commons.ATTACHMENTS)) {
50 if(commons.contains(Commons.PUBLISHABLEFILES)) {
55 if(commons.contains(Commons.PRIVATEFILES)) {
64 return switch (common) {
68 default -> Collections.EMPTY_SET;
static Attachments from(String path)
static Set< String > getAllPaths(String root)
ICleanupConsole getConsole()
void cleanEntity(Object entity, CleanupMode mode)
Set< String > pathsForRoot(String root, Commons common)
boolean isMine(Object entity)
void cleanFromCommons(String entityPath, CleanupMode mode, Set< Commons > commons)
static CleanupAction from(String message, Runnable action)
void execute(ICleanupConsole console, CleanupMode mode)
static Set< String > getAllPublishablePaths(String root)
static AttachFiles from(String path)
static Set< String > getAllPrivatePaths(String root)