Package org.xwiki.xar

Class XarEntry

    • Constructor Detail

      • XarEntry

        public XarEntry​(LocalDocumentReference reference)
        Parameters:
        reference - the reference of the document
      • XarEntry

        public XarEntry​(LocalDocumentReference reference,
                        String name)
        Parameters:
        reference - the reference of the document
        name - the name of the entry (ZIP style)
      • XarEntry

        public XarEntry​(LocalDocumentReference reference,
                        String name,
                        String entryType)
        Parameters:
        reference - the reference of the document
        name - the name of the entry (ZIP style)
        entryType - the type of the entry
        Since:
        10.3
      • XarEntry

        public XarEntry​(LocalDocumentReference reference,
                        int defaultAction)
        Parameters:
        reference - the reference of the document
        defaultAction - the default action associated to a XAR entry
        Since:
        7.2M1
      • XarEntry

        public XarEntry​(LocalDocumentReference reference,
                        int defaultAction,
                        String entryType)
        Parameters:
        reference - the reference of the document
        defaultAction - the default action associated to a XAR entry
        entryType - the type of the entry
        Since:
        10.3
      • XarEntry

        public XarEntry​(LocalDocumentReference reference,
                        String name,
                        int defaultAction)
        Parameters:
        reference - the reference of the document
        name - the name of the entry (ZIP style)
        defaultAction - the default action associated to a XAR entry (not used at the moment)
      • XarEntry

        public XarEntry​(LocalDocumentReference reference,
                        String name,
                        int defaultAction,
                        String entryType)
        Parameters:
        reference - the reference of the document
        name - the name of the entry (ZIP style)
        defaultAction - the default action associated to a XAR entry (not used at the moment)
        entryType - the type of the entry
        Since:
        10.3
    • Method Detail

      • getEntryName

        public String getEntryName()
        Returns:
        the name of the entry in the ZIP (XAR) package
      • getEntryType

        public String getEntryType()
        Returns:
        the type of the entry
        Since:
        10.3
      • getDocumentName

        public String getDocumentName()
        Returns:
        the name of the document
      • getDefaultAction

        @Deprecated
        public int getDefaultAction()
        Deprecated.
        kept for retro compatibility reason (since this used to exist in XAR format) but this method never really been used in XWiki Standard. Similar concept (among other things) are exposed through getEntryType().
        Returns:
        the default action associated to the entry
      • getSpaceName

        @Deprecated
        public String getSpaceName()
        Deprecated.
        since 7.2M1, does not make much sense anymore with nested space
        Returns:
        the space of the document