Class GroupManagementHelper


  • @Component
    public class GroupManagementHelper
    extends java.lang.Object
    Utility 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
    • 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
      void addToGroup​(java.util.Deque<java.lang.String> notMember, long entityId, GroupManagementHelper.Callback callback)
      Adds to groups from a deque.
      void bulkAddToGroup​(java.lang.String finalGroup, java.util.Collection<pl.edu.icm.unity.webui.common.EntityWithLabel> entities, boolean withConfirm)  
      pl.edu.icm.unity.webui.common.attributes.AttributeHandlerRegistry getAttrHandlerRegistry()  
      java.util.Set<java.lang.String> getRequiredAttributes​(java.lang.String group)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()