@Role
public interface SheetBinder
Modifier and Type | Method and Description |
---|---|
boolean |
bind(DocumentModelBridge document,
DocumentReference sheetReference)
Binds a sheet to a XWiki document.
|
default boolean |
bind(DocumentModelBridge document,
EntityReference sheetReference)
Binds a sheet to a XWiki document.
|
List<DocumentReference> |
getDocuments(DocumentReference sheetReference)
Retrieves the list of XWiki documents explicitly bound to a given sheet.
|
List<DocumentReference> |
getSheets(DocumentModelBridge document)
Retrieves the list of sheets explicitly bound to a XWiki document.
|
boolean |
unbind(DocumentModelBridge document,
DocumentReference sheetReference)
Removes the binding between a sheet and a XWiki document.
|
List<DocumentReference> getSheets(DocumentModelBridge document)
document
- a XWiki documentList<DocumentReference> getDocuments(DocumentReference sheetReference)
sheetReference
- a reference to a sheetboolean bind(DocumentModelBridge document, DocumentReference sheetReference)
document
- a XWiki documentsheetReference
- a reference to a sheettrue
if the sheet was successfully bound to the given document, false
otherwise (e.g. if
the specified sheet was already bound to the given document)default boolean bind(DocumentModelBridge document, EntityReference sheetReference)
document
- a XWiki documentsheetReference
- a reference to a sheettrue
if the sheet was successfully bound to the given document, false
otherwise (e.g. if
the specified sheet was already bound to the given document)boolean unbind(DocumentModelBridge document, DocumentReference sheetReference)
document
- a XWiki documentsheetReference
- a reference to a sheettrue
if the sheet was successfully unbound from the given document, false
otherwise (e.g.
if the specified sheet wasn't bound to the given document)Copyright © 2004–2022 XWiki. All rights reserved.