Interface ImportInfo


  • public interface ImportInfo
    ImportInfo...
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  ImportInfo.Info
      The detailed information about an imported path
      static class  ImportInfo.Type
      The modification type
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.Exception getError​(java.lang.String path)
      Deprecated.
      since 3.1.
      ImportInfo.Info getInfo​(java.lang.String path)
      Returns the info at path
      java.util.TreeMap<java.lang.String,​ImportInfo.Info> getInfos()
      Returns the import information
      java.util.Map<java.lang.String,​java.lang.String[]> getMemberships()
      Returns a list of memberships that need to be resolved
      java.util.TreeMap<java.lang.String,​ImportInfo.Type> getModifications()
      Returns the modifications of all infos
      NodeNameList getNameList()
      Deprecated.
      since 3.1
      java.util.Collection<java.lang.String> getToVersion()
      Returns a collection of UUIDs of the nodes that need to be versioned.
      ImportInfo merge​(ImportInfo info)
      Merges an import info into this one.
      int numErrors()
      returns the number of errors
      int numModified()
      returns the number of non-NOP entries.
      void onCreated​(java.lang.String path)
      Marks that the node at path was created.
      void onDeleted​(java.lang.String path)
      Marks that the node at path was deleted.
      void onError​(java.lang.String path, java.lang.Exception e)
      Marks that the node at path caused an error.
      void onMissing​(java.lang.String path)
      Marks that the node at path is missing.
      void onModified​(java.lang.String path)
      Marks that the node at path was modified.
      void onNop​(java.lang.String path)
      Marks that nothing changed at path
      void onReplaced​(java.lang.String path)
      Marks that the node at path was replaced.
    • Method Detail

      • getNameList

        @Deprecated
        NodeNameList getNameList()
        Deprecated.
        since 3.1
        Returns:
        the name list
      • onModified

        void onModified​(java.lang.String path)
        Marks that the node at path was modified.
        Parameters:
        path - the path
      • onNop

        void onNop​(java.lang.String path)
        Marks that nothing changed at path
        Parameters:
        path - the path
      • onCreated

        void onCreated​(java.lang.String path)
        Marks that the node at path was created.
        Parameters:
        path - the path
      • onDeleted

        void onDeleted​(java.lang.String path)
        Marks that the node at path was deleted.
        Parameters:
        path - the path
      • onReplaced

        void onReplaced​(java.lang.String path)
        Marks that the node at path was replaced.
        Parameters:
        path - the path
      • onMissing

        void onMissing​(java.lang.String path)
        Marks that the node at path is missing.
        Parameters:
        path - the path
      • onError

        void onError​(java.lang.String path,
                     java.lang.Exception e)
        Marks that the node at path caused an error.
        Parameters:
        path - the path
        e - exception
      • getInfos

        java.util.TreeMap<java.lang.String,​ImportInfo.Info> getInfos()
        Returns the import information
        Returns:
        the import information
        Since:
        3.1
      • getInfo

        ImportInfo.Info getInfo​(java.lang.String path)
        Returns the info at path
        Parameters:
        path - path
        Returns:
        the info or null
        Since:
        3.1
      • getModifications

        java.util.TreeMap<java.lang.String,​ImportInfo.Type> getModifications()
        Returns the modifications of all infos
        Returns:
        the modifications
      • getError

        @Deprecated
        java.lang.Exception getError​(java.lang.String path)
        Deprecated.
        since 3.1. use getInfo(path).getError();
        Parameters:
        path - the path
        Returns:
        the error exception
      • getToVersion

        java.util.Collection<java.lang.String> getToVersion()
        Returns a collection of UUIDs of the nodes that need to be versioned.
        Returns:
        a collection of UUIDs.
      • getMemberships

        java.util.Map<java.lang.String,​java.lang.String[]> getMemberships()
        Returns a list of memberships that need to be resolved
        Returns:
        a list of memberships
      • merge

        ImportInfo merge​(ImportInfo info)
        Merges an import info into this one.
        Parameters:
        info - the other info
        Returns:
        a new, merged info.
      • numModified

        int numModified()
        returns the number of non-NOP entries.
        Returns:
        the number of modified entries.
      • numErrors

        int numErrors()
        returns the number of errors
        Returns:
        the number of errors