public class Patch extends Item
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_TYPE |
static Map<String,Class<? extends Item>> |
PATCHABLE_TYPES |
Constructor and Description |
---|
Patch() |
Modifier and Type | Method and 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 needed
|
Date |
getLastApplication()
Get the date of the last patch application
|
String |
getOperation()
Get the type of patch operation : override, patch or remove
|
String |
getPatchedItemId()
Get the id of the item that will be concerned by this patch
|
String |
getPatchedItemType()
Get the item type of the item that will be concerned by this patch
|
void |
setData(Object data) |
void |
setLastApplication(Date lastApplication) |
void |
setOperation(String operation) |
void |
setPatchedItemId(String patchedItemId) |
void |
setPatchedItemType(String patchedItemType) |
equals, getItemId, getItemType, getItemType, getScope, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
public static final String ITEM_TYPE
public String getPatchedItemId()
public void setPatchedItemId(String patchedItemId)
public String getPatchedItemType()
public void setPatchedItemType(String patchedItemType)
public String getOperation()
public void setOperation(String operation)
public Object getData()
public void setData(Object data)
public Date getLastApplication()
public void setLastApplication(Date lastApplication)
Copyright © 2014–2022 Apache Software Foundation. All rights reserved.