@Override public void remove() { checkWrite(); baseIter.remove(); } };
@Override public void remove() { checkWrite(); baseIter.remove(); } };
@Override public boolean add(Triple e) { checkWrite(); return wrapped.add(e); }
@Override public boolean removeAll(Collection<?> c) { checkWrite(); return wrapped.removeAll(c); }
@Override public boolean remove(Object o) { checkWrite(); return wrapped.remove(o); }
@Override public boolean removeAll(Collection<?> c) { checkWrite(); return wrapped.removeAll(c); }
@Override public void clear() { checkWrite(); wrapped.clear(); }
@Override public boolean remove(Object o) { checkWrite(); return wrapped.remove(o); }
@Override public boolean addAll(Collection<? extends Triple> c) { checkWrite(); return wrapped.addAll(c); }
@Override public boolean retainAll(Collection<?> c) { checkWrite(); return wrapped.retainAll(c); }
@Override public boolean add(Triple e) { checkWrite(); return wrapped.add(e); }
@Override public boolean retainAll(Collection<?> c) { checkWrite(); return wrapped.retainAll(c); }
@Override public void clear() { checkWrite(); wrapped.clear(); }
@Override public boolean addAll(Collection<? extends Triple> c) { checkWrite(); return wrapped.addAll(c); }
/** * Returns the wrapped Graph if the caller has all access rights. * If the caller has only the read access right, then a write-blocked * Graph is returned. If the caller has neither the read nor the write * access right then an AccessControlException is thrown. * * @return the wrapped Graph or a write-block Graph depending * on the access rights of the caller. */ public Graph getUnsecuredGraph() { try { checkWrite(); return wrapped; } catch (AccessControlException ex) { checkRead(); return new WriteBlockedGraph(wrapped); } } }
/** * Returns the wrapped Graph if the caller has all access rights. * If the caller has only the read access right, then a write-blocked * Graph is returned. If the caller has neither the read nor the write * access right then an AccessControlException is thrown. * * @return the wrapped Graph or a write-block Graph depending * on the access rights of the caller. */ public Graph getUnsecuredGraph() { try { checkWrite(); return wrapped; } catch (AccessControlException ex) { checkRead(); return new WriteBlockedGraph(wrapped); } } }