public interface HistoryDao
| Modifier and Type | Method and Description |
|---|---|
void |
copyHistoryAndDelete(String oldName,
String newName)
Copies the history files of a restored project from the old location (_deleted_) to a directory with the new name and
deletes the old entries.
|
void |
copyNodeHistoryAndDelete(String oldName,
String newName)
Copies the history files of a restored node from the old location (_deleted_) to a directory with the new name and
deletes the old entries.
|
hudson.XmlFile |
getOldRevision(hudson.model.AbstractItem item,
String identifier)
Returns one old configuration of item.
|
hudson.XmlFile |
getOldRevision(File configFile,
String identifier)
Returns one old configuration of file.
|
hudson.XmlFile |
getOldRevision(hudson.model.Node node,
String identifier)
Returns one old configuration of node.
|
hudson.XmlFile |
getOldRevision(String configFileName,
String identifier)
Returns one old configuration of file.
|
hudson.XmlFile |
getOldRevision(hudson.XmlFile xmlFile,
String identifier)
Returns one old configuration of xmlFile.
|
SortedMap<String,HistoryDescr> |
getRevisions(File configFile)
Returns a sorted map of all revisions for this configFile.
|
SortedMap<String,HistoryDescr> |
getRevisions(hudson.model.Node node)
Returns a sorted map of all revisions for this node.
|
SortedMap<String,HistoryDescr> |
getRevisions(hudson.XmlFile xmlFile)
Returns a sorted map of all revisions for this xmlFile.
|
boolean |
hasOldRevision(hudson.model.AbstractItem item,
String identifier)
Returns whether the revision exists.
|
boolean |
hasOldRevision(File configFile,
String identifier)
Returns whether the revision exists.
|
boolean |
hasOldRevision(hudson.model.Node node,
String identifier)
Returns whether the revision exists.
|
boolean |
hasOldRevision(hudson.XmlFile xmlFile,
String identifier)
Returns whether the revision exists.
|
boolean |
isCreatedEntry(File historyDir)
Checks whether the respective history entry is a 'Created' entry.
|
void |
purgeOldEntries(File itemHistoryRoot,
int maxEntries)
Purges old entries for the given history root to maxEntries.
|
void |
saveItem(hudson.model.AbstractItem item)
Saves the current configuration of an item.
|
void |
saveItem(hudson.XmlFile file)
Saves a copy of an xml file.
|
void |
saveNode(hudson.model.Node node)
Saves the current configuration of an node.
|
void saveItem(hudson.model.AbstractItem item)
item - projectvoid saveNode(hudson.model.Node node)
node - nodevoid saveItem(hudson.XmlFile file)
file - xmlFileSortedMap<String,HistoryDescr> getRevisions(hudson.XmlFile xmlFile)
getOldRevision(hudson.model.AbstractItem, java.lang.String)xmlFile - fileSortedMap<String,HistoryDescr> getRevisions(File configFile)
getOldRevision(hudson.model.AbstractItem, java.lang.String)configFile - fileSortedMap<String,HistoryDescr> getRevisions(hudson.model.Node node)
getOldRevision(hudson.model.Node, java.lang.String)node - nodehudson.XmlFile getOldRevision(hudson.model.AbstractItem item,
String identifier)
item - projectidentifier - timestamp or hashhudson.XmlFile getOldRevision(hudson.model.Node node,
String identifier)
node - nodeidentifier - timestamp or hashhudson.XmlFile getOldRevision(hudson.XmlFile xmlFile,
String identifier)
xmlFile - fileidentifier - timestamp or hashhudson.XmlFile getOldRevision(File configFile, String identifier)
configFile - fileidentifier - timestamp or hashhudson.XmlFile getOldRevision(String configFileName, String identifier)
configFileName - fileidentifier - timestamp or hashboolean hasOldRevision(hudson.model.AbstractItem item,
String identifier)
item - projectidentifier - timestamp or hashboolean hasOldRevision(hudson.model.Node node,
String identifier)
node - nodeidentifier - timestamp or hashboolean hasOldRevision(hudson.XmlFile xmlFile,
String identifier)
xmlFile - fileidentifier - timestamp or hashboolean hasOldRevision(File configFile, String identifier)
configFile - fileidentifier - timestamp or hashvoid purgeOldEntries(File itemHistoryRoot, int maxEntries)
itemHistoryRoot - directory to inspect.maxEntries - maximum number of entries.boolean isCreatedEntry(File historyDir)
historyDir - The directory, e.g. 2013-01-18_17-33-51void copyHistoryAndDelete(String oldName, String newName)
oldName - The old name of the project (containing "_deleted_")newName - The new name of the projectvoid copyNodeHistoryAndDelete(String oldName, String newName)
oldName - The old name of the node (containing "_deleted_")newName - The new name of the nodeCopyright © 2004–2015. All rights reserved.