[New] Added ObjectFilter.getOperation()
This commit is contained in:
parent
c4ed21c4e5
commit
fba2d3890d
|
@ -432,6 +432,23 @@ public class ObjectFilter {
|
|||
return element;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the {@link Operation} for the given keys
|
||||
*
|
||||
* @param key
|
||||
* the key under which it was registered
|
||||
* @param objectKey
|
||||
* the objectKey
|
||||
*
|
||||
* @return the {@link Operation} for the given keys
|
||||
*/
|
||||
public Operation getOperation(String key, Object objectKey) {
|
||||
ObjectCache objectCache = this.cache.getElement(key, objectKey);
|
||||
if (objectCache == null)
|
||||
return null;
|
||||
return objectCache.getOperation();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if the element with the given key and objectKey exist
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue