org.jenkinsci.plugins.periodicbackup
Class ConfigOnly

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by org.jenkinsci.plugins.periodicbackup.FileManager
          extended by org.jenkinsci.plugins.periodicbackup.ConfigOnly
All Implemented Interfaces:
hudson.model.Describable<FileManager>, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem

public class ConfigOnly
extends FileManager

This implementation of FileManager will only select the .xml files from the Jenkins homedir and the config.xml files of all the jobs during backup. During restore it will try to overwrite the existing files.


Nested Class Summary
static class ConfigOnly.DescriptorImpl
           
 
Constructor Summary
ConfigOnly()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getDisplayName()
           
 java.lang.Iterable<java.io.File> getFilesToBackup()
          This method determines files and folders for Storage
 int hashCode()
           
 
Methods inherited from class org.jenkinsci.plugins.periodicbackup.FileManager
all, getDescriptor, getSearchUrl, restoreFiles
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigOnly

@DataBoundConstructor
public ConfigOnly()
Method Detail

getDisplayName

public java.lang.String getDisplayName()

getFilesToBackup

public java.lang.Iterable<java.io.File> getFilesToBackup()
                                                  throws org.jenkinsci.plugins.periodicbackup.PeriodicBackupException
Description copied from class: FileManager
This method determines files and folders for Storage

Specified by:
getFilesToBackup in class FileManager
Returns:
Files to be included in the backup
Throws:
PeriodicBackupException - if anything bad happens

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class FileManager

hashCode

public int hashCode()
Overrides:
hashCode in class FileManager


Copyright © 2004-2013. All Rights Reserved.