org.xwiki.model
Interface ModelContext
@ComponentRole
public interface ModelContext
Allows accessing Model Objects for current objects (current document, current wiki, current space, etc) placed in the
Execution Context.
- Since:
- 2.2M1
- Version:
- $Id: 18e1bd51d8e736e608ff86678776e046abae492c $
getCurrentEntityReference
EntityReference getCurrentEntityReference()
- Returns:
- the reference to the current entity located in the Execution Context or null if there's none
setCurrentEntityReference
void setCurrentEntityReference(EntityReference entityReference)
- Parameters:
entityReference - the reference to the current entity located in the Execution Context- Since:
- 2.4M2
Copyright © 2004-2011 XWiki. All Rights Reserved.