org.nuxeo.connect.update.impl
Class UpdateServiceImpl
java.lang.Object
org.nuxeo.connect.update.impl.UpdateServiceImpl
- All Implemented Interfaces:
- org.nuxeo.connect.update.PackageUpdateService
public class UpdateServiceImpl
- extends java.lang.Object
- implements org.nuxeo.connect.update.PackageUpdateService
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateServiceImpl
public UpdateServiceImpl()
throws java.io.IOException
- Throws:
java.io.IOException
getXmap
public static XMap getXmap()
getPersistence
public PackagePersistence getPersistence()
addPackage
public org.nuxeo.connect.update.LocalPackage addPackage(java.io.File file)
throws org.nuxeo.connect.update.PackageException
- Specified by:
addPackage
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
getPackage
public org.nuxeo.connect.update.LocalPackage getPackage(java.lang.String id)
throws org.nuxeo.connect.update.PackageException
- Specified by:
getPackage
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
getPackages
public java.util.List<org.nuxeo.connect.update.LocalPackage> getPackages()
throws org.nuxeo.connect.update.PackageException
- Specified by:
getPackages
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
createXmap
public static XMap createXmap()
initialize
public void initialize()
throws org.nuxeo.connect.update.PackageException
- Specified by:
initialize
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
setPackageState
public void setPackageState(org.nuxeo.connect.update.LocalPackage pkg,
int state)
throws org.nuxeo.connect.update.PackageException
- Specified by:
setPackageState
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
shutdown
public void shutdown()
throws org.nuxeo.connect.update.PackageException
- Specified by:
shutdown
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
getCommand
public Command getCommand(java.lang.String id)
throws org.nuxeo.connect.update.PackageException
- Throws:
org.nuxeo.connect.update.PackageException
addCommand
public void addCommand(java.lang.String id,
java.lang.Class<? extends Command> cmd)
removeCommand
public void removeCommand(java.lang.String id)
getActivePackage
public org.nuxeo.connect.update.LocalPackage getActivePackage(java.lang.String name)
throws org.nuxeo.connect.update.PackageException
- Specified by:
getActivePackage
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
restart
public void restart()
throws org.nuxeo.connect.update.PackageException
- Specified by:
restart
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
loadPackageFromZip
public org.nuxeo.connect.update.model.PackageDefinition loadPackageFromZip(java.io.File file)
throws org.nuxeo.connect.update.PackageException
- Specified by:
loadPackageFromZip
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
loadPackage
public org.nuxeo.connect.update.model.PackageDefinition loadPackage(java.io.File file)
throws org.nuxeo.connect.update.PackageException
- Specified by:
loadPackage
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
loadPackage
public org.nuxeo.connect.update.model.PackageDefinition loadPackage(java.io.InputStream in)
throws org.nuxeo.connect.update.PackageException
- Specified by:
loadPackage
in interface org.nuxeo.connect.update.PackageUpdateService
- Throws:
org.nuxeo.connect.update.PackageException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.