From 79fdba0448f04f9e21b449e2046f13ce159efe44 Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Thu, 6 Jun 2024 18:28:37 +0200 Subject: [PATCH] impl Issue #391 --- .../org/imixs/marty/team/TeamController.java | 47 ------------------- 1 file changed, 47 deletions(-) diff --git a/src/main/java/org/imixs/marty/team/TeamController.java b/src/main/java/org/imixs/marty/team/TeamController.java index a2c72822..f53459e1 100644 --- a/src/main/java/org/imixs/marty/team/TeamController.java +++ b/src/main/java/org/imixs/marty/team/TeamController.java @@ -638,53 +638,6 @@ private List getMemberListByRole(String aUniqueID, String role) return resultList; } - /** - * This method updates the space.ref item with the first space ID the current - * user is member of. - * The method can be used as a default selector as in the Imixs-Office-Workflwo - * form part 'spaceref.xhtml' - * - * The method updates the items space.ref and space.name and returns the - * space.ref - */ - public String setDefaultSpace(ItemCollection workitem) { - // If the current workitem is assigned to a process then first resolve all - // spaces assigned to this process... - ItemCollection defaultSpace = null; - List _spaceList = getSpacesByProcessId(workitem.getItemValueString("process.Ref")); - if (_spaceList != null) { - for (ItemCollection space : _spaceList) { - if (space.getItemValueBoolean("isMember")) { - defaultSpace = space; - break; - } - } - } - // we did not yet find a matching space in the process list. - // so we iterate over all spaces - if (defaultSpace == null) { - _spaceList = getSpaces(); - if (_spaceList != null) { - for (ItemCollection space : _spaceList) { - if (space.getItemValueBoolean("isMember")) { - defaultSpace = space; - break; - } - } - } - } - // do we have a match? - if (defaultSpace != null) { - workitem.setItemValue("space.ref", defaultSpace.getUniqueID()); - workitem.setItemValue("space.name", defaultSpace.getItemValueString("name")); - return defaultSpace.getUniqueID(); - } - - // no match ! - return ""; - - } - /** * This method resolves the field 'process.default.ref'. * This fields holds the first space ID the current user is member of.