com.agentfactory.platform.service
Class AFPolicy

java.lang.Object
  extended by com.agentfactory.platform.service.AFPolicy

public class AFPolicy
extends java.lang.Object

this class models a set of rights for a given platform service. Each service has a global security policy (the default right), and then a set of agent specific rights which are implemented through the AFRight class.


Constructor Summary
AFPolicy(int globalPolicy)
          Creates a new instance of ServicePolicy
 
Method Summary
 void addRight(Agent agent, int right)
           
 void addRight(java.lang.String name, int right)
           
 boolean hasAccess(java.lang.String agent)
           
 void setGlobalPolicy(int right)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AFPolicy

public AFPolicy(int globalPolicy)
Creates a new instance of ServicePolicy

Method Detail

addRight

public void addRight(Agent agent,
                     int right)

addRight

public void addRight(java.lang.String name,
                     int right)

hasAccess

public boolean hasAccess(java.lang.String agent)

setGlobalPolicy

public void setGlobalPolicy(int right)