diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-06-30 23:03:03 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-06-30 23:03:03 +0200 |
| commit | 2495be9ecfa8aea47e285f63b5bb27b0c133b1f8 (patch) | |
| tree | d85f6df165386a86683de6ccee4c1767723573dd /src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java | |
| parent | dc2bbfdda8ee4f32937c3e91f77e52dc4501f0f1 (diff) | |
Separated modifying Lookup methods into LookupManager, which is only
present in a server process. This stops clients trying to write to the
directory without relying on their permissions.
Diffstat (limited to 'src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java')
| -rw-r--r-- | src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java b/src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java index 78ef5a9..f311dc1 100644 --- a/src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java +++ b/src/main/java/com/c2kernel/lifecycle/instance/predefined/agent/CreateAgentFromDescription.java @@ -68,7 +68,7 @@ public class CreateAgentFromDescription extends CreateItemFromDescription CorbaServer factory = Gateway.getCorbaServer();
if (factory == null) throw new AccessRightsException("This process cannot create new Items", "");
ActiveEntity newAgent = (ActiveEntity)factory.createEntity(newAgentPath);
- Gateway.getLookup().add(newAgentPath);
+ Gateway.getLookupManager().add(newAgentPath);
// initialise it with its properties and workflow
@@ -85,7 +85,7 @@ public class CreateAgentFromDescription extends CreateItemFromDescription // add its domain path
Logger.msg(3, "CreateItemFromDescription - Creating "+context);
context.setEntity(newAgentPath);
- Gateway.getLookup().add(context);
+ Gateway.getLookupManager().add(context);
return requestData;
} catch (Exception e) {
Logger.error(e);
|
