- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 32 of file Cleanup.java.
◆ executeForCommons()
static void org.turro.cleanup.Cleanup.executeForCommons |
( |
String |
entityPath, |
|
|
ICleanupConsole |
console, |
|
|
CleanupMode |
mode, |
|
|
Set< IElephantCleanup.Commons > |
commons |
|
) |
| |
|
static |
Definition at line 49 of file Cleanup.java.
50 if(Path.pathFrom(entityPath).getSize() != 2)
return;
51 Instances.fresh().byAnnotation(ElephantCleanup.class, IElephantCleanup.class)
54 WebLoggers.info(cleanup).message(
"From commons started...").log();
55 cleanup.setConsole(console);
56 cleanup.cleanFromCommons(entityPath, mode, commons);
57 WebLoggers.info(cleanup).message(
"From commons ended...").log();
◆ executeForEntity()
Definition at line 40 of file Cleanup.java.
41 Instances.fresh().byAnnotation(ElephantCleanup.class, IElephantCleanup.class)
42 .stream().filter(cleanup -> cleanup.isMine(entity))
44 cleanup.setConsole(console);
45 cleanup.cleanEntity(entity, mode);
◆ getEntityPathsFor()
static Set<String> org.turro.cleanup.Cleanup.getEntityPathsFor |
( |
String |
root, |
|
|
IElephantCleanup.Commons |
common |
|
) |
| |
|
static |
Definition at line 70 of file Cleanup.java.
71 return Instances.fresh().byAnnotation(ElephantCleanup.class, IElephantCleanup.class)
72 .stream().flatMap(cleanup -> cleanup.pathsForRoot(root, common).stream())
73 .collect(Collectors.toSet());
◆ getFor()
Definition at line 34 of file Cleanup.java.
35 return Instances.fresh().byAnnotation(ElephantCleanup.class, IElephantCleanup.class)
36 .stream().filter(cleanup -> cleanup.isMine(entity))
37 .peek(cleanup -> cleanup.setConsole(console)).toList();
◆ orphans()
static void org.turro.cleanup.Cleanup.orphans |
( |
| ) |
|
|
static |
Definition at line 61 of file Cleanup.java.
62 Instances.fresh().byAnnotation(ElephantCleanup.class, IElephantCleanup.class)
63 .stream().forEach(cleanup -> {
64 WebLoggers.info(cleanup).message(
"Orphans started...").log();
65 cleanup.cleanOrphans();
66 WebLoggers.info(cleanup).message(
"Orphans ended...").log();
The documentation for this class was generated from the following file: