Class UiListDelta<D extends DtObject>
- java.lang.Object
-
- io.vertigo.vega.engines.webservice.json.UiListDelta<D>
-
- Type Parameters:
D
- Object type
- All Implemented Interfaces:
Serializable
public final class UiListDelta<D extends DtObject> extends Object implements Serializable
Delta operations on List.- Author:
- npiedeloup (16 sept. 2014 18:13:55)
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,UiObject<D>>
getCreatesMap()
Map<String,UiObject<D>>
getDeletesMap()
Class<D>
getObjectType()
Map<String,UiObject<D>>
getUpdatesMap()
DtListDelta<D>
mergeAndCheckInput(List<DtObjectValidator<D>> dtObjectValidators, UiMessageStack uiMessageStack)
Merged and validate input data and set error into message stack.
-
-
-
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 typecollCreates
- Map of created inputscollUpdates
- Map of updated inputscollDeletes
- Map of removed inputs
-
-
Method Detail
-
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
-
-