|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HistoryDao
Operations for historization of config files.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 - file
SortedMap<String,HistoryDescr> getRevisions(File configFile)
getOldRevision(hudson.model.AbstractItem, java.lang.String)
configFile - file
SortedMap<String,HistoryDescr> getRevisions(hudson.model.Node node)
getOldRevision(hudson.model.Node, java.lang.String)
node - node
hudson.XmlFile getOldRevision(hudson.model.AbstractItem item,
String identifier)
item - projectidentifier - timestamp or hash
hudson.XmlFile getOldRevision(hudson.model.Node node,
String identifier)
node - nodeidentifier - timestamp or hash
hudson.XmlFile getOldRevision(hudson.XmlFile xmlFile,
String identifier)
xmlFile - fileidentifier - timestamp or hash
hudson.XmlFile getOldRevision(File configFile,
String identifier)
configFile - fileidentifier - timestamp or hash
hudson.XmlFile getOldRevision(String configFileName,
String identifier)
configFileName - fileidentifier - timestamp or hash
boolean hasOldRevision(hudson.model.AbstractItem item,
String identifier)
item - projectidentifier - timestamp or hash
boolean hasOldRevision(hudson.model.Node node,
String identifier)
node - nodeidentifier - timestamp or hash
boolean hasOldRevision(hudson.XmlFile xmlFile,
String identifier)
xmlFile - fileidentifier - timestamp or hash
boolean hasOldRevision(File configFile,
String identifier)
configFile - fileidentifier - timestamp or hash
void 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-51
void copyHistoryAndDelete(String oldName,
String newName)
oldName - The old name of the project (containing "_deleted_")newName - The new name of the project
void copyNodeHistoryAndDelete(String oldName,
String newName)
oldName - The old name of the node (containing "_deleted_")newName - The new name of the node
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||