Class PageIndexNamingCriterion

  • All Implemented Interfaces:
    NamingCriterion

    @Component
    @Named("mainPageNameAndNumbering")
    @InstantiationStrategy(PER_LOOKUP)
    public class PageIndexNamingCriterion
    extends AbstractNamingCriterion
    A NamingCriterion based on the name of the main document being split.
    Since:
    1.9M1
    Version:
    $Id: dae3d90d790aa761ef7ab9d19acdfb3719df523b $
    • Constructor Detail

      • PageIndexNamingCriterion

        @Unstable
        public PageIndexNamingCriterion()
        Implicit constructor. Don't use it directly. Use the component manager instead (e.g. through injection).
        Since:
        14.10.2, 15.0RC1
    • Method Detail

      • getDocumentReference

        public org.xwiki.model.reference.DocumentReference getDocumentReference​(org.xwiki.rendering.block.XDOM newDoc)
        Description copied from interface: NamingCriterion
        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