org.mmbase.applications.packaging.bundlehandlers
Class BasicBundle

java.lang.Object
  extended byorg.mmbase.applications.packaging.bundlehandlers.BasicBundle
All Implemented Interfaces:
BundleInterface

public class BasicBundle
extends java.lang.Object
implements BundleInterface

BasicBundle, base class for bundles

Author:
Daniel Ockeloen (MMBased)

Constructor Summary
BasicBundle()
           
BasicBundle(org.w3c.dom.Node n, ProviderInterface provider, java.lang.String name, java.lang.String type, java.lang.String maintainer, java.lang.String version, java.lang.String date, java.lang.String path)
           
 
Method Summary
 void clearInstallSteps()
           
 java.lang.String getCreationDate()
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.util.jar.JarFile getIncludedPackageJarFile(java.lang.String packageid, java.lang.String packageversion)
           
 java.lang.String getInstallationNotes()
           
 java.util.Iterator getInstallSteps()
           
 java.util.Iterator getInstallSteps(int logid)
           
 java.util.jar.JarFile getJarFile()
           
 java.io.BufferedInputStream getJarStream()
           
 java.lang.String getLicenseBody()
           
 java.lang.String getLicenseName()
           
 java.lang.String getLicenseType()
           
 java.lang.String getLicenseVersion()
           
 java.lang.String getMaintainer()
           
 java.lang.String getName()
           
 java.util.Iterator getNeededPackages()
           
 installStep getNextInstallStep()
           
 int getPackageProgressBarValue()
           
 java.lang.String getPath()
           
 int getProgressBarValue()
           
 ProviderInterface getProvider()
           
 java.util.List getRelatedPeople(java.lang.String type)
           
 java.lang.String getReleaseNotes()
           
 java.util.List getScreenshots()
           
 java.util.List getStarturls()
           
 java.lang.String getState()
           
 java.lang.String getType()
           
 java.lang.String getVersion()
           
 void increaseProgressBar()
           
 void increaseProgressBar(int stepcount)
           
 boolean install()
           
 long lastSeen()
           
 boolean removeInstallStep(installStep step)
           
 void setProgressBar(int stepcount)
           
 boolean setState(java.lang.String state)
           
 void signalUpdate()
           
 boolean uninstall()
           
 boolean updateRegistryInstalled()
           
 boolean updateRegistryUninstalled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicBundle

public BasicBundle()

BasicBundle

public BasicBundle(org.w3c.dom.Node n,
                   ProviderInterface provider,
                   java.lang.String name,
                   java.lang.String type,
                   java.lang.String maintainer,
                   java.lang.String version,
                   java.lang.String date,
                   java.lang.String path)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface BundleInterface

getName

public java.lang.String getName()
Specified by:
getName in interface BundleInterface

getNeededPackages

public java.util.Iterator getNeededPackages()
Specified by:
getNeededPackages in interface BundleInterface

getScreenshots

public java.util.List getScreenshots()
Specified by:
getScreenshots in interface BundleInterface

getStarturls

public java.util.List getStarturls()
Specified by:
getStarturls in interface BundleInterface

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface BundleInterface

getCreationDate

public java.lang.String getCreationDate()
Specified by:
getCreationDate in interface BundleInterface

getMaintainer

public java.lang.String getMaintainer()
Specified by:
getMaintainer in interface BundleInterface

getState

public java.lang.String getState()
Specified by:
getState in interface BundleInterface

getType

public java.lang.String getType()
Specified by:
getType in interface BundleInterface

getProvider

public ProviderInterface getProvider()
Specified by:
getProvider in interface BundleInterface

setState

public boolean setState(java.lang.String state)
Specified by:
setState in interface BundleInterface

install

public boolean install()
Specified by:
install in interface BundleInterface

uninstall

public boolean uninstall()
Specified by:
uninstall in interface BundleInterface

getNextInstallStep

public installStep getNextInstallStep()

removeInstallStep

public boolean removeInstallStep(installStep step)

getInstallSteps

public java.util.Iterator getInstallSteps()
Specified by:
getInstallSteps in interface BundleInterface

getInstallSteps

public java.util.Iterator getInstallSteps(int logid)
Specified by:
getInstallSteps in interface BundleInterface

clearInstallSteps

public void clearInstallSteps()
Specified by:
clearInstallSteps in interface BundleInterface

getJarFile

public java.util.jar.JarFile getJarFile()
Specified by:
getJarFile in interface BundleInterface

getIncludedPackageJarFile

public java.util.jar.JarFile getIncludedPackageJarFile(java.lang.String packageid,
                                                       java.lang.String packageversion)
Specified by:
getIncludedPackageJarFile in interface BundleInterface

getJarStream

public java.io.BufferedInputStream getJarStream()
Specified by:
getJarStream in interface BundleInterface

getPath

public java.lang.String getPath()
Specified by:
getPath in interface BundleInterface

updateRegistryInstalled

public boolean updateRegistryInstalled()

updateRegistryUninstalled

public boolean updateRegistryUninstalled()

signalUpdate

public void signalUpdate()

lastSeen

public long lastSeen()

getRelatedPeople

public java.util.List getRelatedPeople(java.lang.String type)
Specified by:
getRelatedPeople in interface BundleInterface

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface BundleInterface

getInstallationNotes

public java.lang.String getInstallationNotes()
Specified by:
getInstallationNotes in interface BundleInterface

getReleaseNotes

public java.lang.String getReleaseNotes()
Specified by:
getReleaseNotes in interface BundleInterface

getLicenseType

public java.lang.String getLicenseType()
Specified by:
getLicenseType in interface BundleInterface

getLicenseName

public java.lang.String getLicenseName()
Specified by:
getLicenseName in interface BundleInterface

getLicenseVersion

public java.lang.String getLicenseVersion()
Specified by:
getLicenseVersion in interface BundleInterface

getLicenseBody

public java.lang.String getLicenseBody()
Specified by:
getLicenseBody in interface BundleInterface

setProgressBar

public void setProgressBar(int stepcount)
Specified by:
setProgressBar in interface BundleInterface

increaseProgressBar

public void increaseProgressBar()
Specified by:
increaseProgressBar in interface BundleInterface

increaseProgressBar

public void increaseProgressBar(int stepcount)
Specified by:
increaseProgressBar in interface BundleInterface

getProgressBarValue

public int getProgressBarValue()
Specified by:
getProgressBarValue in interface BundleInterface

getPackageProgressBarValue

public int getPackageProgressBarValue()
Specified by:
getPackageProgressBarValue in interface BundleInterface


packaging build MMBase-1_8_3