com.agentfactory.platform.service
Class AFRight
java.lang.Object
com.agentfactory.platform.service.AFRight
public class AFRight
- extends java.lang.Object
This file implements a specific security right for a specific agent. The agent can be specified
either by a reference to the object that implements the agent, or by the name of the agent.
The former option is provided to allow us to set default access rights for the system agents, while
the latter is used to specify access rights for application agents.
Currently two types of access right are supported:
- ALLOW means that the agent can access the specified service
- DENY means that the agent cannot access the specified service
|
Field Summary |
static int |
ALLOW
|
static int |
DENY
|
|
Constructor Summary |
AFRight(Agent agent,
int policy)
Creates a new instance of Policy |
AFRight(java.lang.String name,
int policy)
Creates a new instance of Policy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALLOW
public static final int ALLOW
- See Also:
- Constant Field Values
DENY
public static final int DENY
- See Also:
- Constant Field Values
AFRight
public AFRight(Agent agent,
int policy)
- Creates a new instance of Policy
- Parameters:
agent - the agent to whom the policy appliespolicy - the right associated with the policy
AFRight
public AFRight(java.lang.String name,
int policy)
- Creates a new instance of Policy
- Parameters:
name - the name of the agent to whom the policy appliespolicy - the right associated with the policy
getAgent
public Agent getAgent()
getAgentName
public java.lang.String getAgentName()
isAllow
public boolean isAllow()
isDeny
public boolean isDeny()