[New] Added ObjectFilter.getOperation()

This commit is contained in:
Robert von Burg 2020-02-12 15:00:11 +01:00
parent c4ed21c4e5
commit fba2d3890d
1 changed files with 17 additions and 0 deletions

View File

@ -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
*