T
- the object to transform into a XWiki Resource Reference@Role
public interface ResourceReferenceResolver<T>
ResourceReference
instance.Modifier and Type | Method and Description |
---|---|
ResourceReference |
resolve(T representation,
ResourceType resourceType,
Map<String,Object> parameters)
Transforms some representation of a XWiki Resource Reference into a
ResourceReference instance. |
ResourceReference resolve(T representation, ResourceType resourceType, Map<String,Object> parameters) throws CreateResourceReferenceException, UnsupportedResourceReferenceException
ResourceReference
instance.representation
- the object to transform into a ResourceReference
instanceresourceType
- the type of Resource represented by the passed representation parameter. To get this type
you can use a ResourceTypeResolver
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.ResourceReference
instanceCreateResourceReferenceException
- if there was an error while creating the XWiki Resource objectUnsupportedResourceReferenceException
- if the passed representation points to an unsupported Resource
Reference type that we don't know how to resolveCopyright © 2004–2021 XWiki. All rights reserved.