com.agentfactory.platform.service
Class AFPolicy
java.lang.Object
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AFPolicy
public AFPolicy(int globalPolicy)
- Creates a new instance of ServicePolicy
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)