public class UpdateServiceImpl extends Object implements org.nuxeo.connect.update.PackageUpdateService
Constructor and Description |
---|
UpdateServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(String id,
Class<? extends Command> cmd) |
org.nuxeo.connect.update.LocalPackage |
addPackage(File file) |
static XMap |
createXmap() |
org.nuxeo.connect.update.LocalPackage |
getActivePackage(String name) |
Command |
getCommand(String id) |
org.nuxeo.connect.update.LocalPackage |
getPackage(String id) |
List<org.nuxeo.connect.update.LocalPackage> |
getPackages() |
PackagePersistence |
getPersistence() |
static XMap |
getXmap() |
void |
initialize() |
org.nuxeo.connect.update.model.PackageDefinition |
loadPackage(File file) |
org.nuxeo.connect.update.model.PackageDefinition |
loadPackage(InputStream in) |
org.nuxeo.connect.update.model.PackageDefinition |
loadPackageFromZip(File file) |
void |
removeCommand(String id) |
void |
removePackage(String id) |
void |
reset() |
void |
restart() |
void |
setPackageState(org.nuxeo.connect.update.LocalPackage pkg,
int state) |
void |
shutdown() |
public UpdateServiceImpl() throws IOException
IOException
public static XMap getXmap()
public PackagePersistence getPersistence()
public org.nuxeo.connect.update.LocalPackage addPackage(File file) throws org.nuxeo.connect.update.PackageException
addPackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void removePackage(String id) throws org.nuxeo.connect.update.PackageException
removePackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.LocalPackage getPackage(String id) throws org.nuxeo.connect.update.PackageException
getPackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public List<org.nuxeo.connect.update.LocalPackage> getPackages() throws org.nuxeo.connect.update.PackageException
getPackages
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public static XMap createXmap()
public void initialize() throws org.nuxeo.connect.update.PackageException
initialize
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void setPackageState(org.nuxeo.connect.update.LocalPackage pkg, int state) throws org.nuxeo.connect.update.PackageException
setPackageState
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void shutdown() throws org.nuxeo.connect.update.PackageException
shutdown
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public Command getCommand(String id) throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
public void removeCommand(String id)
public org.nuxeo.connect.update.LocalPackage getActivePackage(String name) throws org.nuxeo.connect.update.PackageException
getActivePackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void restart() throws org.nuxeo.connect.update.PackageException
restart
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.model.PackageDefinition loadPackageFromZip(File file) throws org.nuxeo.connect.update.PackageException
loadPackageFromZip
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.model.PackageDefinition loadPackage(File file) throws org.nuxeo.connect.update.PackageException
loadPackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public org.nuxeo.connect.update.model.PackageDefinition loadPackage(InputStream in) throws org.nuxeo.connect.update.PackageException
loadPackage
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
public void reset() throws org.nuxeo.connect.update.PackageException
reset
in interface org.nuxeo.connect.update.PackageUpdateService
org.nuxeo.connect.update.PackageException
Copyright © 2011 Nuxeo SA. All Rights Reserved.