summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/lookup/AgentPath.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2013-02-18 15:01:46 +0100
committerAndrew Branson <andrew.branson@cern.ch>2013-03-18 14:03:53 +0100
commitd6cfc7505be13b3b09adf423206cf75d9f806c12 (patch)
tree8689ba2c6fdb7fba16ca7db9f9b11e90c010970b /src/main/java/com/c2kernel/lookup/AgentPath.java
parent843f2d127ca11a93de706bda4025dd27eeaed97c (diff)
Initial Interface creation. Some compilation problems remain.
Diffstat (limited to 'src/main/java/com/c2kernel/lookup/AgentPath.java')
-rw-r--r--src/main/java/com/c2kernel/lookup/AgentPath.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/c2kernel/lookup/AgentPath.java b/src/main/java/com/c2kernel/lookup/AgentPath.java
index 5ff6988..8c83251 100644
--- a/src/main/java/com/c2kernel/lookup/AgentPath.java
+++ b/src/main/java/com/c2kernel/lookup/AgentPath.java
@@ -70,7 +70,7 @@ public class AgentPath extends EntityPath
if (mAgentName==null)
{
try {
- LDAPEntry agentEntry = LDAPLookupUtils.getEntry(Gateway.getLDAPLookup().getConnection(), this.getDN() + mLocalPath);
+ LDAPEntry agentEntry = LDAPLookupUtils.getEntry(Gateway.getLookup().getConnection(), this.getDN() + mLocalPath);
mAgentName = LDAPLookupUtils.getFirstAttributeValue(agentEntry,"uid");
} catch (ObjectNotFoundException e) {
mAgentName = "";
@@ -81,16 +81,16 @@ public class AgentPath extends EntityPath
public RolePath[] getRoles()
{
- return Gateway.getLDAPLookup().getRoleManager().getRoles(this);
+ return Gateway.getLookup().getRoleManager().getRoles(this);
}
public boolean hasRole(RolePath role) {
- return Gateway.getLDAPLookup().getRoleManager().hasRole(this, role);
+ return Gateway.getLookup().getRoleManager().hasRole(this, role);
}
public boolean hasRole(String role) {
try {
- return hasRole(Gateway.getLDAPLookup().getRoleManager().getRolePath(role));
+ return hasRole(Gateway.getLookup().getRoleManager().getRolePath(role));
} catch (ObjectNotFoundException ex) {
return false;
}