org.hudsonci.plugins.vault
Class Vault

java.lang.Object
  extended by org.hudsonci.plugins.vault.Vault
All Implemented Interfaces:
Serializable

public class Vault
extends Object
implements Serializable

Hudson Vault.

Author:
Jason Dillon
See Also:
Serialized Form

Constructor Summary
Vault(VaultPlugin plugin)
           
 
Method Summary
 Bundle addBundle(Bundle bundle)
           
 File buildPackageCache(Bundle bundle, Package pkg)
           
 Collection<Bundle> findBundles(String type)
           
static Vault get()
           
 Bundle getBundle(String name)
           
 Collection<Bundle> getBundles()
           
 File getCacheDir()
           
 File getRootDir()
           
 File getStoreDir()
           
 File getUploadsDir()
           
 void removeBundle(String name)
           
 void removePackageCache(Bundle bundle, Package pkg)
           
 void renameBundle(String source, String target)
           
 File resolvePath(String path)
           
 void save()
           
 void setCacheDir(File dir)
           
 void setRootDir(File dir)
           
 void setStoreDir(File dir)
           
 void setUploadDir(File dir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vault

public Vault(VaultPlugin plugin)
Method Detail

save

public void save()
          throws IOException
Throws:
IOException

get

public static Vault get()

getStoreDir

public File getStoreDir()

setStoreDir

public void setStoreDir(File dir)

getRootDir

public File getRootDir()

setRootDir

public void setRootDir(File dir)

getCacheDir

public File getCacheDir()

setCacheDir

public void setCacheDir(File dir)

getUploadsDir

public File getUploadsDir()

setUploadDir

public void setUploadDir(File dir)

getBundles

public Collection<Bundle> getBundles()

getBundle

public Bundle getBundle(String name)

findBundles

public Collection<Bundle> findBundles(String type)

addBundle

public Bundle addBundle(Bundle bundle)
                 throws Exception
Throws:
Exception

removeBundle

public void removeBundle(String name)
                  throws Exception
Throws:
Exception

renameBundle

public void renameBundle(String source,
                         String target)
                  throws Exception
Throws:
Exception

resolvePath

public File resolvePath(String path)

buildPackageCache

public File buildPackageCache(Bundle bundle,
                              Package pkg)
                       throws IOException
Throws:
IOException

removePackageCache

public void removePackageCache(Bundle bundle,
                               Package pkg)


Copyright © 2004-2012 Hudson. All Rights Reserved.