@Role
public interface WikiModel
Modifier and Type | Method and Description |
---|---|
String |
getDocumentEditURL(ResourceReference resourceReference) |
String |
getDocumentViewURL(ResourceReference resourceReference) |
String |
getImageURL(ResourceReference imageReference,
Map<String,String> parameters) |
String |
getLinkURL(ResourceReference linkReference) |
default XDOM |
getXDOM(ResourceReference resourceReference) |
boolean |
isDocumentAvailable(ResourceReference resourceReference) |
String getLinkURL(ResourceReference linkReference)
linkReference
- the reference to the link resourceString getImageURL(ResourceReference imageReference, Map<String,String> parameters)
imageReference
- the reference to the image resourceparameters
- the optional parameters passed to the image reference (width, height, etc)boolean isDocumentAvailable(ResourceReference resourceReference)
resourceReference
- the reference pointing to a wiki documentString getDocumentViewURL(ResourceReference resourceReference)
resourceReference
- the reference pointing to a wiki documentString getDocumentEditURL(ResourceReference resourceReference)
resourceReference
- the reference pointing to a wiki documentdefault XDOM getXDOM(ResourceReference resourceReference) throws WikiModelException
resourceReference
- the resource reference for which to return the XDOM (note that only some reference
type can be supported, such as DocumentResourceReference since some resources have
no XDOM content)WikiModelException
- if the XDOM content for the passed resource cannot be retrievedCopyright © 2004–2021 XWiki. All rights reserved.