- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 38 of file CleanupVM.java.
◆ CleanupVM()
org.turro.cleanup.CleanupVM.CleanupVM |
( |
| ) |
|
◆ cleanup()
void org.turro.cleanup.CleanupVM.cleanup |
( |
| ) |
|
Definition at line 69 of file CleanupVM.java.
70 console =
new CleanupConsole();
71 IElephantEntity iee = Entities.getController(entityPath);
73 Toasts.message(
"Entity cannot be instantiated.").show();
76 Messages.confirmProcess().add(
"Cleaup for:").add(iee.getName())
78 Cleanup.getFor(iee.getEntity(), console).forEach(action -> {
79 String stub = Stubs.json(iee.getEntity());
80 action.cleanEntity(iee.getEntity(), CleanupMode.VERBOSE);
81 SystemLogger.info().entity(iee).comment(
"cleanup")
82 .data(stub.getBytes()).log();
83 BindUtils.postNotifyChange(null, null, CleanupVM.this,
"console");
◆ entityPath()
void org.turro.cleanup.CleanupVM.entityPath |
( |
@BindingParam("entityPath") String |
entityPath | ) |
|
◆ getCaution()
Phrases org.turro.cleanup.CleanupVM.getCaution |
( |
| ) |
|
Definition at line 88 of file CleanupVM.java.
89 return Phrases.start(
"Proceed with caution!")
91 .add(
"The cleanup process involves removing the selected entity")
92 .add(
"along with those depending on.")
94 .add(
"Try the show option first, in order to see the process")
95 .add(
"before it starts.");
◆ getConsole()
String org.turro.cleanup.CleanupVM.getConsole |
( |
| ) |
|
Definition at line 98 of file CleanupVM.java.
99 return Strings.isBlank(console.message(),
"No process...");
◆ show()
void org.turro.cleanup.CleanupVM.show |
( |
| ) |
|
Definition at line 54 of file CleanupVM.java.
55 console =
new CleanupConsole();
56 IElephantEntity iee = Entities.getController(entityPath);
58 Toasts.message(
"Entity cannot be instantiated.").show();
61 Cleanup.getFor(iee.getEntity(), console).forEach(action -> {
62 action.cleanEntity(iee.getEntity(), CleanupMode.ONLY_VERBOSE);
63 BindUtils.postNotifyChange(
null,
null,
CleanupVM.this,
"console");
The documentation for this class was generated from the following file: