Hi all, I've added a cleaner API to register Repository instances, and look them up. See https://issues.apache.org/jira/browse/CMIS-127 for details.
Basically I've removed APPContentManager, which is replaced by APPRepositoryService. And there is a new RepositoryManager that holds a global configuration. For example to directly lookup an AtomPub repository, you now do: Repository repo = new APPRepositoryService(URL, null).getDefaultRepository(); Or you register it from some initialization code, then look it up from other code: RepositoryService repositoryService = new APPRepositoryService(URL, null); RepositoryManager.getInstance().registerService(repositoryService); // ... Repository repo = RepositoryManager.getInstance(). getDefaultRepository(); Also when getting a Connection or a SPI from a Repository, you must now always pass authentication parameters (they aren't held by the APPRepository anymore, to make it stateless). The standard ways is: Map<String, Serializable> params = new HashMap<String, Serializable>(); params.put(Repository.PARAM_USERNAME, username); params.put(Repository.PARAM_PASSWORD, password); Connection conn = repo.getConnection(params); This will be improved later to allow other authentication schemes. Comments welcome. Florent -- Florent Guillaume, Director of R&D, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
