org.xwiki.model.reference
Interface EntityReferenceResolver<T>
- Type Parameters:
T - the object to resolve into an Entity Reference
@ComponentRole
public interface EntityReferenceResolver<T>
Resolve an Entity reference defined in a given representation into a validated EntityReference object,
ie with valid values and a valid hierarchy (eg a Document reference must have a parent which is a space reference,
reference values must not be null, etc).
- Since:
- 2.2M1
- Version:
- $Id$
resolve
EntityReference resolve(T entityReferenceRepresentation,
EntityType type,
Object... parameters)
- Parameters:
entityReferenceRepresentation - the representation of an entity reference (eg as a String)type - the type of the Entity (Document, Space, Attachment, Wiki, etc) to resolve out of the representationparameters - optional parameters. Their meaning depends on the resolver implementation
- Returns:
- the valid resolved reference as an Object
Copyright © 2004-2011 XWiki. All Rights Reserved.