Package org.xwiki.model.reference
Interface EntityReferenceProvider
-
@Role public interface EntityReferenceProvider
Return default values for specified Entity Reference types. Useful when an Entity Reference value has not been specified and we need to find a default value for it (the default value returned will depend on the implementations, some will return default values defined in the XWiki configuration, others will return values taken from the current document reference, etc).- Since:
- 7.2M1
- Version:
- $Id: 767dc0f73e426a7deb20662cbbbc1f3228f9763f $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityReference
getDefaultReference(EntityType type)
-
-
-
Method Detail
-
getDefaultReference
EntityReference getDefaultReference(EntityType type)
- Parameters:
type
- the entity reference type for which to get the default value- Returns:
- the default value for the passed type
-
-