From 3743d182d99dbed9d2be84dc357f6839ffe4d2ec Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 18 Sep 2014 10:39:05 +0200 Subject: Hierarchical Roles. Fixes #199 --- src/main/java/com/c2kernel/lookup/LookupManager.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/c2kernel/lookup/LookupManager.java') diff --git a/src/main/java/com/c2kernel/lookup/LookupManager.java b/src/main/java/com/c2kernel/lookup/LookupManager.java index ce1268e..a8ce41b 100644 --- a/src/main/java/com/c2kernel/lookup/LookupManager.java +++ b/src/main/java/com/c2kernel/lookup/LookupManager.java @@ -40,16 +40,20 @@ public interface LookupManager extends Lookup { // Role and agent management /** + * Creates a new Role in this centre + * * @param role * @param hasJobList * @return * @throws ObjectAlreadyExistsException * @throws ObjectCannotBeUpdated */ - public RolePath createRole(String role, boolean hasJobList) throws ObjectAlreadyExistsException, ObjectCannotBeUpdated; + public RolePath createRole(RolePath role) throws ObjectAlreadyExistsException, ObjectCannotBeUpdated; /** - * @param agent + * Adds the given Agent to the given Role, if they both exist. + * + * @param agent - the * @param rolePath * @throws ObjectCannotBeUpdated * @throws ObjectNotFoundException @@ -57,6 +61,8 @@ public interface LookupManager extends Lookup { public void addRole(AgentPath agent, RolePath rolePath) throws ObjectCannotBeUpdated, ObjectNotFoundException; /** + * Removes the given Agent from the given Role. Does not delete the Role. + * * @param agent * @param role * @throws ObjectCannotBeUpdated -- cgit v1.2.3