Package org.apache.unomi.api
Class Patch
- java.lang.Object
-
- org.apache.unomi.api.Item
-
- org.apache.unomi.api.Patch
-
- All Implemented Interfaces:
Serializable
public class Patch extends Item
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Patch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
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 neededDate
getLastApplication()
Get the date of the last patch applicationString
getOperation()
Get the type of patch operation : override, patch or removeString
getPatchedItemId()
Get the id of the item that will be concerned by this patchString
getPatchedItemType()
Get the item type of the item that will be concerned by this patchvoid
setData(Object data)
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
-
-
-
-
Method Detail
-
getPatchedItemId
public String getPatchedItemId()
Get the id of the item that will be concerned by this patch- Returns:
- item id
-
setPatchedItemId
public void setPatchedItemId(String patchedItemId)
-
getPatchedItemType
public String getPatchedItemType()
Get the item type of the item that will be concerned by this patch- Returns:
- item type
-
setPatchedItemType
public void setPatchedItemType(String patchedItemType)
-
getOperation
public String getOperation()
Get the type of patch operation : override, patch or remove- Returns:
- operation
-
setOperation
public void setOperation(String operation)
-
getData
public Object 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
public void setData(Object data)
-
getLastApplication
public Date getLastApplication()
Get the date of the last patch application- Returns:
- last application date
-
setLastApplication
public void setLastApplication(Date lastApplication)
-
-