Interface HistoryDao

    • Method Detail

      • saveNode

        void saveNode​(hudson.model.Node node)
        Saves the current configuration of an node.
        Parameters:
        node - node
      • saveItem

        void saveItem​(hudson.XmlFile file)
        Saves a copy of an xml file.
        Parameters:
        file - xmlFile
      • getRevisionAmount

        int getRevisionAmount​(hudson.XmlFile xmlFile)
        Parameters:
        xmlFile - the config's history xml file
        Returns:
        the amount of revision entries of a certain config.
      • getOldRevision

        hudson.XmlFile getOldRevision​(hudson.model.AbstractItem item,
                                      String identifier)
        Returns one old configuration of item.
        Parameters:
        item - project
        identifier - timestamp or hash
        Returns:
        old configuration.
      • getOldRevision

        hudson.XmlFile getOldRevision​(hudson.model.Node node,
                                      String identifier)
        Returns one old configuration of node.
        Parameters:
        node - node
        identifier - timestamp or hash
        Returns:
        old configuration.
      • getOldRevision

        hudson.XmlFile getOldRevision​(hudson.XmlFile xmlFile,
                                      String identifier)
        Returns one old configuration of xmlFile.
        Parameters:
        xmlFile - file
        identifier - timestamp or hash
        Returns:
        old configuration.
      • getOldRevision

        hudson.XmlFile getOldRevision​(String configFileName,
                                      String identifier)
        Returns one old configuration of file.
        Parameters:
        configFileName - file
        identifier - timestamp or hash
        Returns:
        old configuration.
      • deleteRevision

        void deleteRevision​(hudson.model.AbstractItem item,
                            String identifier)
        Permanently delete the given revision.
        Parameters:
        item - item
        identifier - timestamp or hash
      • deleteRevision

        void deleteRevision​(hudson.model.Node node,
                            String identifier)
      • deleteRevision

        void deleteRevision​(File historyDir,
                            String identifier)
      • revisionEqualsCurrent

        boolean revisionEqualsCurrent​(hudson.model.AbstractItem project,
                                      String identifier1)
      • revisionEqualsCurrent

        boolean revisionEqualsCurrent​(hudson.model.Node node,
                                      String identifier1)
      • hasOldRevision

        boolean hasOldRevision​(hudson.model.Node node,
                               String identifier)
        Returns whether the revision exists.
        Parameters:
        node - node
        identifier - timestamp or hash
        Returns:
        old configuration.
      • hasOldRevision

        boolean hasOldRevision​(hudson.XmlFile xmlFile,
                               String identifier)
        Returns whether the revision exists.
        Parameters:
        xmlFile - file
        identifier - timestamp or hash
        Returns:
        old configuration.
      • hasDuplicateHistory

        boolean hasDuplicateHistory​(hudson.model.Node node)
        Determines whether the given node has already been recorded in the history.
        Parameters:
        node - the node to check for duplicate history.
        Returns:
        true if the node is a duplicate, false otherwise.