832833834835836837838839840841842
} } } if (denied) { throw new AccessDeniedException(getModelNode(), Action.Delete); } else { return this; }
496497498499500501502503
*/ protected void checkCreate() { if (!canCreate()) { throw new AccessDeniedException(modelNode, Action.Create); } }
515516517518519520521522523
*/ protected void checkCreate( final SecTriple t ) { if (!canCreate(t)) { throw new AccessDeniedException(modelNode, t.toString(), Action.Create); } }
585586587588589590591592
*/ protected void checkDelete() { if (!canDelete()) { throw new AccessDeniedException(modelNode, Action.Delete); } }
604605606607608609610611612
*/ protected void checkDelete( final SecTriple t ) { if (!canDelete(t)) { throw new AccessDeniedException(modelNode, t.toString(), Action.Delete); } }
662663664665666667668669
*/ protected void checkRead() { if (!canRead()) { throw new AccessDeniedException(modelNode, Action.Read); } }
681682683684685686687688689
*/ protected void checkRead( final SecTriple t ) { if (!canRead(t)) { throw new AccessDeniedException(modelNode, t.toString(), Action.Read); } }
732733734735736737738739
*/ protected void checkUpdate() { if (!canUpdate()) { throw new AccessDeniedException(modelNode, Action.Update); } }
754755756757758759760761762
*/ protected void checkUpdate( final SecTriple from, final SecTriple to ) { if (!canUpdate(from, to)) { throw new AccessDeniedException(modelNode, String.format( "%s to %s", from, to), Action.Update); } }
248249250251252253254255256257258
{ return; } else { throw new AccessDeniedException(graphIRI, Action.Read); } } // if the user can read any triple just add the opBGP if (securityEvaluator.evaluate(Action.Read, graphIRI, SecTriple.ANY))