Folks,

I am trying to write some CMIS client code (AtomPub binding only at the moment, 
but woudn't mind it being binding-agnostic) and can't figure out where to 
start. Previously, I had used the ContentManager inteface (and the 
APPContentManager implementation) but this seems to have gone, to be replaced 
by what?

At the moment, I am having success with the following code:

private static APPConnection getConnection(String serverUrl, String username, 
String password) {

        Map<String, Serializable> params = new HashMap<String, Serializable>();
        params.put(Repository.PARAM_USERNAME, username);
        params.put(Repository.PARAM_PASSWORD, password);
                APPRepositoryService rs = new APPRepositoryService(serverUrl, 
params);
        Repository repo = rs.getDefaultRepository();
        return (APPConnection) repo.getConnection(params);
}

but I'm not sure whether this is _the_ right way to initialize a connection. 
Any hints?

        Thanks in advance,

                Ugo

-- 
Ugo Cei
Sourcesense - making sense of Open Source: http://www.sourcesense.com

Reply via email to