Class UiListDelta<D extends DtObject>

    • Constructor Detail

      • UiListDelta

        public UiListDelta​(Class<D> objectType,
                           Map<String,​UiObject<D>> collCreates,
                           Map<String,​UiObject<D>> collUpdates,
                           Map<String,​UiObject<D>> collDeletes)
        Constructor.
        Parameters:
        objectType - Object type
        collCreates - Map of created inputs
        collUpdates - Map of updated inputs
        collDeletes - Map of removed inputs
    • Method Detail

      • getObjectType

        public Class<D> getObjectType()
        Returns:
        Object type
      • getCreatesMap

        public Map<String,​UiObject<D>> getCreatesMap()
        Returns:
        Created uiObjects by client id
      • getUpdatesMap

        public Map<String,​UiObject<D>> getUpdatesMap()
        Returns:
        Updated uiObjects by client id
      • getDeletesMap

        public Map<String,​UiObject<D>> getDeletesMap()
        Returns:
        Deleted uiObject by client id
      • mergeAndCheckInput

        public DtListDelta<D> mergeAndCheckInput​(List<DtObjectValidator<D>> dtObjectValidators,
                                                 UiMessageStack uiMessageStack)
        Merged and validate input data and set error into message stack.
        Parameters:
        dtObjectValidators - Used validators, may depends on object type.
        uiMessageStack - Message stack to update
        Returns:
        Updated and validated business object