Package org.apache.unomi.api
Class Patch
java.lang.Object
org.apache.unomi.api.Item
org.apache.unomi.api.Patch
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get the patch data For override operation, the data is the full item For patch, the data is a JsonPatch object For remove, no data is neededGet the date of the last patch applicationGet the type of patch operation : override, patch or removeGet the id of the item that will be concerned by this patchGet the item type of the item that will be concerned by this patchvoid
void
setLastApplication
(Date lastApplication) void
setOperation
(String operation) void
setPatchedItemId
(String patchedItemId) void
setPatchedItemType
(String patchedItemType) Methods inherited from class org.apache.unomi.api.Item
equals, getItemId, getItemType, getItemType, getScope, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
-
Field Details
-
PATCHABLE_TYPES
-
ITEM_TYPE
- See Also:
-
-
Constructor Details
-
Patch
public Patch()
-
-
Method Details
-
getPatchedItemId
Get the id of the item that will be concerned by this patch- Returns:
- item id
-
setPatchedItemId
-
getPatchedItemType
Get the item type of the item that will be concerned by this patch- Returns:
- item type
-
setPatchedItemType
-
getOperation
Get the type of patch operation : override, patch or remove- Returns:
- operation
-
setOperation
-
getData
Get the patch data For override operation, the data is the full item For patch, the data is a JsonPatch object For remove, no data is needed- Returns:
- data
-
setData
-
getLastApplication
Get the date of the last patch application- Returns:
- last application date
-
setLastApplication
-