|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.connect.update.impl.PackagePersistence
public class PackagePersistence
The file nxserver/data/packages/.packages is storing the state of all local
features
Each local package have a corresponding directory in
nxserver/data/features/store which is named:
Constructor Summary
PackagePersistence()
Method Summary
org.nuxeo.connect.update.LocalPackage
addPackage(File file)
org.nuxeo.connect.update.LocalPackage
getActivePackage(String name)
Get the local package having the given name and which is in either one of
the following states:
PackageState.INSTALLING
PackageState.INSTALLED
PackageState.STARTED
String
getActivePackageId(String name)
org.nuxeo.connect.update.LocalPackage
getPackage(String id)
List<org.nuxeo.connect.update.LocalPackage>
getPackages()
File
getRoot()
int
getState(String featureId)
Map<String,Integer>
getStates()
void
removePackage(String id)
void
updateState(String id,
int state)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail
PackagePersistence
public PackagePersistence()
throws IOException
IOException
Method Detail
getRoot
public File getRoot()
getStates
public Map<String,Integer> getStates()
getPackage
public org.nuxeo.connect.update.LocalPackage getPackage(String id)
throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
addPackage
public org.nuxeo.connect.update.LocalPackage addPackage(File file)
throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
getState
public int getState(String featureId)
throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
getActivePackage
public org.nuxeo.connect.update.LocalPackage getActivePackage(String name)
throws org.nuxeo.connect.update.PackageException
PackageState.INSTALLING
PackageState.INSTALLED
PackageState.STARTED
name
-
org.nuxeo.connect.update.PackageException
getActivePackageId
public String getActivePackageId(String name)
getPackages
public List<org.nuxeo.connect.update.LocalPackage> getPackages()
throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
removePackage
public void removePackage(String id)
throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
updateState
public void updateState(String id,
int state)
throws org.nuxeo.connect.update.PackageException
org.nuxeo.connect.update.PackageException
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
Nuxeo Enterprise Platform 5.4
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2011 Nuxeo SAS. All Rights Reserved.