Class EditorTrimmer


  • public final class EditorTrimmer
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<ComposedTypeModel,​java.util.List<ListItemDTO>> trimMap​(ReadService rs, java.util.Map<ComposedTypeModel,​java.util.List<ListItemDTO>> fullMap, org.zkoss.zul.Tree composedTypeTree)
      Trims the map created during the editing process so that it only contains checked/selected items so that it is leaner for the persistence process.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • trimMap

        public static java.util.Map<ComposedTypeModel,​java.util.List<ListItemDTO>> trimMap​(ReadService rs,
                                                                                                 java.util.Map<ComposedTypeModel,​java.util.List<ListItemDTO>> fullMap,
                                                                                                 org.zkoss.zul.Tree composedTypeTree)
        Trims the map created during the editing process so that it only contains checked/selected items so that it is leaner for the persistence process.
        Parameters:
        rs - ReadService to access the type system
        fullMap - The map created during the editing process.
        composedTypeTree - The tree representing the structure of ComposedTypes.
        Returns:
        The trimmed down map.