T- the object to transform into a XWiki Resource Reference
@Role public interface ResourceReferenceResolver<T>
ResourceReference resolve(T representation, ResourceType resourceType, Map<String,Object> parameters) throws CreateResourceReferenceException, UnsupportedResourceReferenceException
representation- the object to transform into a
resourceType- the type of Resource represented by the passed representation parameter. To get this type you can use a
parameters- generic parameters that depend on the underlying implementation. In order to know what to pass you need to check the documentation for the implementation you're using.
CreateResourceReferenceException- if there was an error while creating the XWiki Resource object
UnsupportedResourceReferenceException- if the passed representation points to an unsupported Resource Reference type that we don't know how to resolve
Copyright © 2004–2021 XWiki. All rights reserved.