Interface NamingCriterion

    • Method Detail

      • getDocumentName

        @Deprecated
        default String getDocumentName​(org.xwiki.rendering.block.XDOM newDoc)
        Deprecated.
        since 14.10.2, 15.0RC1 use getDocumentReference(XDOM) instead
        Generates a suitable name for the new document represented by 'newDoc' which is a result of the splitting operation.
        Parameters:
        newDoc - the XDOM representing the newly split document
        Returns:
        the name generated for the new document
      • getDocumentReference

        @Unstable
        org.xwiki.model.reference.DocumentReference getDocumentReference​(org.xwiki.rendering.block.XDOM newDoc)
        Generates a suitable reference for the new document represented by 'newDoc' which is a result of the splitting operation.
        Parameters:
        newDoc - the XDOM representing the newly split document
        Returns:
        the reference generated for the new document
        Since:
        14.10.2, 15.0RC1