MCPcopy Create free account
hub / github.com/annmuor/jnode / delete

Method delete

jnode-core/src/jnode/ftn/FtnTools.java:1667–1687  ·  view source on GitHub ↗
(Filearea area)

Source from the content-addressed store, hash-verified

1665 }
1666
1667 public static void delete(Filearea area) {
1668 synchronized (Filearea.class) {
1669 if (area != null) {
1670 area.setGroup("_TO_DELETE_XXX"); // to prevent suncribing while
1671 // deleting
1672 ORMManager.get(Filearea.class).update(area);
1673 ORMManager.get(FileSubscription.class).delete("filearea_id",
1674 "=", area);
1675 List<Filemail> toDelete = ORMManager.get(Filemail.class)
1676 .getAnd("filearea_id", "=", area);
1677 for (Filemail mail : toDelete) {
1678 ORMManager.get(FilemailAwaiting.class).delete(
1679 "filemail_id", "=", mail);
1680 ORMManager.get(Filemail.class).delete(mail);
1681 }
1682 ORMManager.get(Filearea.class).delete(area);
1683 logger.l2("Filearea " + area.getName() + " deleted");
1684 }
1685 }
1686
1687 }
1688
1689 public static void delete(Echoarea area) {
1690 synchronized (Echoarea.class) {

Callers 15

handleMethod · 0.95
handleMethod · 0.95
handleMethod · 0.95
setUpMethod · 0.45
tearDownMethod · 0.45
moveToZipMethod · 0.45
moveMethod · 0.45
remMethod · 0.45
remMethod · 0.45
tossIncomingMethod · 0.45
tossInboundDirectoryMethod · 0.45
packNetmailMethod · 0.45

Calls 11

getMethod · 0.95
getInstanseMethod · 0.95
updateMethod · 0.80
getAndMethod · 0.80
l2Method · 0.80
setProtocolHostMethod · 0.80
setProtocolPortMethod · 0.80
setProtocolPasswordMethod · 0.80
getLinkAddressMethod · 0.80
setGroupMethod · 0.45
getNameMethod · 0.45

Tested by 2

setUpMethod · 0.36
tearDownMethod · 0.36