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
Delta operations on List.
- Author:
- npiedeloup (16 sept. 2014 18:13:55)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmergeAndCheckInput(List<DtObjectValidator<D>> dtObjectValidators, UiMessageStack uiMessageStack) Merged and validate input data and set error into message stack.
-
Constructor Details
-
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 Details
-
getObjectType
- Returns:
- Object type
-
getCreatesMap
- Returns:
- Created uiObjects by client id
-
getUpdatesMap
- Returns:
- Updated uiObjects by client id
-
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
-