/** * When a context node is deleted, all relations have to be deleted too. */ protected void delContextNodeDelAllRelations() { for (Relation relation : this.getAllRelations()) relation.delete(); }
/** * When a context node is deleted, all incoming relations have to be deleted too. */ protected void delContextNodeDelAllIncomingRelations() { for (Relation relation : this.getAllIncomingRelations()) relation.delete(); }
@Override public void delRelations() { for (Relation relation : this.getRelations()) relation.delete(); }
@Override public void delIncomingRelations() { for (Relation relation : this.getIncomingRelations()) relation.delete(); }
@Override public void delRelations(XDIAddress XDIaddress) { for (Relation relation : this.getRelations(XDIaddress)) relation.delete(); }
@Override public synchronized void delContextNodes() { // delete all relations and incoming relations for (ContextNode contextNode : this.getContextNodes()) { for (Relation relation : contextNode.getAllRelations()) relation.delete(); for (Relation relation : contextNode.getAllIncomingRelations()) relation.delete(); } // delete context nodes this.contextNodes.clear(); }
@Override public synchronized void delContextNodes() { // delete all relations and incoming relations for (ContextNode contextNode : this.getContextNodes()) { for (Relation relation : contextNode.getAllRelations()) relation.delete(); for (Relation relation : contextNode.getAllIncomingRelations()) relation.delete(); } // delete context nodes String contextNodesKey = this.getContextNodesKey(); this.keyValueStore.delete(contextNodesKey); }
/** * Deletes all operations from this message. */ public void deleteOperations() { for (Operation operation : new IteratorListMaker<Operation> (this.getOperations()).list()) { XdiInnerRoot targetInnerRoot = operation.getTargetXdiInnerRoot(); if (targetInnerRoot != null) { targetInnerRoot.getContextNode().delete(); } else { operation.getRelation().delete(); } } }