T - the qualifying element to distinguish a Resource Reference (e.g. Resource Type, Entity Resource Action)@Role
@Unstable
public interface ResourceReferenceHandlerManager<T>
ResourceReferenceHandler
implementations to call in the right order.| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(T resourceReferenceQualifier)
Check if there's a Handler for the passed Resource Reference or not.
|
void |
handle(ResourceReference reference)
Handles a passed
ResourceReference. |
void handle(ResourceReference reference) throws ResourceReferenceHandlerException
ResourceReference.reference - the Resource Reference to handleResourceReferenceHandlerException - if an error happens during the Handler execution, for example if no
Handler was found to handle the passed Resource Referenceboolean canHandle(T resourceReferenceQualifier)
resourceReferenceQualifier - the qualifying element to distinguish a Resource Reference for which we wish
to check if we can handle it or not (ie we have a Handler available for it). This can be for example the
Resource Type or for an Entity Resource it can be an Entity Resource ActionCopyright © 2004–2015 XWiki. All rights reserved.