Class GroupManagementHelper
- java.lang.Object
-
- io.imunity.webconsole.directoryBrowser.groupbrowser.GroupManagementHelper
-
@Component public class GroupManagementHelper extends java.lang.ObjectUtility class simplifies addition of an entity to a list of groups. If needed it asks for required attributes with a separate dialog, for each group.- Author:
- K. Benedyczak
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGroupManagementHelper.Callback
-
Constructor Summary
Constructors Constructor Description GroupManagementHelper(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.engine.api.GroupsManagement groupsMan, pl.edu.icm.unity.engine.api.AttributeTypeManagement attrMan, pl.edu.icm.unity.engine.api.AttributeClassManagement acMan, pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry attrHandlerRegistry, pl.edu.icm.unity.engine.api.EntityManagement identitiesMan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToGroup(java.util.Deque<java.lang.String> notMember, long entityId, GroupManagementHelper.Callback callback)Adds to groups from a deque.voidbulkAddToGroup(java.lang.String finalGroup, java.util.Collection<pl.edu.icm.unity.webui.common.EntityWithLabel> entities, boolean withConfirm)pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistrygetAttrHandlerRegistry()java.util.Set<java.lang.String>getRequiredAttributes(java.lang.String group)
-
-
-
Constructor Detail
-
GroupManagementHelper
@Autowired public GroupManagementHelper(pl.edu.icm.unity.MessageSource msg, pl.edu.icm.unity.engine.api.GroupsManagement groupsMan, pl.edu.icm.unity.engine.api.AttributeTypeManagement attrMan, pl.edu.icm.unity.engine.api.AttributeClassManagement acMan, pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry attrHandlerRegistry, pl.edu.icm.unity.engine.api.EntityManagement identitiesMan)
-
-
Method Detail
-
getRequiredAttributes
public java.util.Set<java.lang.String> getRequiredAttributes(java.lang.String group) throws pl.edu.icm.unity.exceptions.EngineException- Returns:
- set with required attributes in a group from its ACs
- Throws:
pl.edu.icm.unity.exceptions.EngineException
-
addToGroup
public void addToGroup(java.util.Deque<java.lang.String> notMember, long entityId, GroupManagementHelper.Callback callback)Adds to groups from a deque.- Parameters:
notMember-entityId-msg-groupsMan-
-
bulkAddToGroup
public void bulkAddToGroup(java.lang.String finalGroup, java.util.Collection<pl.edu.icm.unity.webui.common.EntityWithLabel> entities, boolean withConfirm)
-
getAttrHandlerRegistry
public pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry getAttrHandlerRegistry()
-
-