public DepTuple renew(DepTuple template, Context ctx) throws DepSpaceException { if (policyEnforcer.canExecuteOut(ctx.getInvokerId(), template, ctx)) { return upperLayer.renew(template, ctx); } else { throw new DepSpaceOperationNotAllowed("out", ctx.getInvokerId(), template); } }
/** * ************************************************ DEPSPACE INTERFACE IMPLEMENTATION * * ************************************************ */ public void out(DepTuple tuple, Context ctx) throws DepSpaceException { if (policyEnforcer.canExecuteOut(ctx.getInvokerId(), tuple, ctx)) { upperLayer.out(tuple, ctx); } else { throw new DepSpaceOperationNotAllowed("out", ctx.getInvokerId(), tuple); } }