diff options
Diffstat (limited to 'src/main/java/com/c2kernel/lookup/LookupManager.java')
| -rw-r--r-- | src/main/java/com/c2kernel/lookup/LookupManager.java | 10 |
1 files changed, 8 insertions, 2 deletions
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
|
