br.ufsc.das.policyenforcement
Class PolicyEnforcer

java.lang.Object
  extended by br.ufsc.das.policyenforcement.PolicyEnforcer

public abstract class PolicyEnforcer
extends java.lang.Object

Base class for all tuple space policies.


Constructor Summary
PolicyEnforcer()
           
 
Method Summary
 boolean canExecuteCas(int invoker, DepTuple template, DepTuple tuple)
          Executed in CAS operations to define the access permission
 boolean canExecuteInp(int invoker, DepTuple template)
          Executed in remove operations (in or inp) to define the access permission
 boolean canExecuteOut(int invoker, DepTuple tuple)
          Executed in OUT operations to define the access permission
 boolean canExecuteRdp(int invoker, DepTuple template)
          Executed in read operations (rdp or rd) to define the access permission
 java.util.List<DepTuple> getTuples()
          Read all tuples from the local space
 void setLayer(PolicyEnforcementLayer layer)
          Sets the policy enforcer layer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyEnforcer

public PolicyEnforcer()
Method Detail

setLayer

public void setLayer(PolicyEnforcementLayer layer)
Sets the policy enforcer layer


getTuples

public java.util.List<DepTuple> getTuples()
Read all tuples from the local space


canExecuteOut

public boolean canExecuteOut(int invoker,
                             DepTuple tuple)
Executed in OUT operations to define the access permission


canExecuteRdp

public boolean canExecuteRdp(int invoker,
                             DepTuple template)
Executed in read operations (rdp or rd) to define the access permission


canExecuteInp

public boolean canExecuteInp(int invoker,
                             DepTuple template)
Executed in remove operations (in or inp) to define the access permission


canExecuteCas

public boolean canExecuteCas(int invoker,
                             DepTuple template,
                             DepTuple tuple)
Executed in CAS operations to define the access permission