public interface UpdateHandler
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_SCHEMES
Required configuration property defining the schemes, this handler is handling.
|
Modifier and Type | Method and Description |
---|---|
UpdateResult |
handleRemoval(String resourceType,
String id,
String url)
Handle the remove of a resource
|
UpdateResult |
handleUpdate(String resourceType,
String id,
String url,
Dictionary<String,Object> dict,
Map<String,Object> attributes)
Handle the update of a resource
|
UpdateResult |
handleUpdate(String resourceType,
String id,
String url,
InputStream is,
Map<String,Object> attributes)
Handle the update of a resource
|
static final String PROPERTY_SCHEMES
UpdateResult handleRemoval(String resourceType, String id, String url)
resourceType
- The resource typeid
- The resource id, e.g. symbolic name etc.url
- The url where an earlier version of this resource came fromnull
UpdateResult handleUpdate(String resourceType, String id, String url, Dictionary<String,Object> dict, Map<String,Object> attributes)
resourceType
- The resource typeid
- The resource id, e.g. symbolic name etc.url
- The url where an earlier version of this resource came from (optional)dict
- Dictionaryattributes
- Optional additional attributes.null
UpdateResult handleUpdate(String resourceType, String id, String url, InputStream is, Map<String,Object> attributes)
resourceType
- The resource typeid
- The resource id, e.g. symbolic name etc.url
- The url where an earlier version of this resource came from (optional)is
- Input stream to the contents of the resourceattributes
- Optional additional attributes.null
Copyright © 2014 The Apache Software Foundation. All rights reserved.