/** Remove a triple from the triple store. The default implementation throws a DeleteDeniedException; subclasses must override if they want to be able to remove triples. */ @Override public void performDelete( Triple t ) { throw new DeleteDeniedException( "GraphBase::delete" ); }
@Override public void performDelete(Triple t) { throw new DeleteDeniedException("GraphUnionRead::performDelete - Read-only graph") ; } }
@Override public void delete(Triple t) throws DeleteDeniedException { throw new DeleteDeniedException("read-only graph") ; }
/** Remove a triple from the triple store. The default implementation throws a DeleteDeniedException; subclasses must override if they want to be able to remove triples. */ @Override public void performDelete( Triple t ) { throw new DeleteDeniedException( "GraphBase::delete" ); }
@Override public void clear() { throw new DeleteDeniedException("read-only graph") ; }
@Override public void performDelete(Triple t) throws DeleteDeniedException { throw new DeleteDeniedException("read-only graph") ; }
@Override public void remove(Node s, Node p, Node o) { throw new DeleteDeniedException("read-only graph") ; }
/** * check that delete on the securedModel is allowed, * * @throws DeleteDeniedException * on failure * @throws AuthenticationRequiredException * if user is not authenticated and is required to be. */ protected void checkDelete() throws DeleteDeniedException, AuthenticationRequiredException { if (!canDelete()) { throw new DeleteDeniedException( SecuredItem.Util.modelPermissionMsg(modelNode)); } }
/** * check that the triple can be deleted in the securedModel., * * @param triple * The triple to check. * @throws DeleteDeniedException * on failure * @throws AuthenticationRequiredException * if user is not authenticated and is required to be. */ protected void checkDelete(final Triple triple) throws DeleteDeniedException, AuthenticationRequiredException { if (!canDelete(triple)) { throw new DeleteDeniedException( SecuredItem.Util.triplePermissionMsg(modelNode), triple); } }
@Override public void performDelete( Triple t ) { Node g = graphNode(gn) ; if ( Quad.isUnionGraph(g) ) throw new DeleteDeniedException("Can't update the union graph of a dataset") ; Node s = t.getSubject() ; Node p = t.getPredicate() ; Node o = t.getObject() ; dsg.delete(g, s, p, o) ; }
@Override public void performDelete(Triple t) { try { conn.remove(vf.asResource(t.getSubject()), vf.asURI(t .getPredicate()), vf.asValue(t.getObject()), contexts); } catch (UnauthorizedException e) { throw new DeleteDeniedException(e.getMessage()); } catch (RepositoryException e) { throw new RuntimeException(e); } }
throw new DeleteDeniedException( SecuredItem.Util.triplePermissionMsg(getModelNode())); } else {