@Component @Named(value="parentchild") @Singleton public class ParentChildScriptService extends Object implements org.xwiki.script.service.ScriptService
Constructor and Description |
---|
ParentChildScriptService() |
Modifier and Type | Method and Description |
---|---|
List<DocumentReference> |
getParents(DocumentReference docRef) |
List<DocumentReference> |
getParentsBasedOnParentChildRelationship(DocumentReference docRef)
Returns the parents of a document, based on the parent/child relationship.
|
List<DocumentReference> |
getParentsBasedOnReference(DocumentReference docRef)
Returns the parents of a document, based on the nested document paradigm (described in the document reference).
|
boolean |
isParentChildMechanismEnabled() |
public boolean isParentChildMechanismEnabled()
public List<DocumentReference> getParents(DocumentReference docRef)
docRef
- a reference of the documentpublic List<DocumentReference> getParentsBasedOnReference(DocumentReference docRef)
docRef
- a reference of the documentpublic List<DocumentReference> getParentsBasedOnParentChildRelationship(DocumentReference docRef)
docRef
- a reference of the documentCopyright © 2004–2021 XWiki. All rights reserved.