Import-Package:\
org.argeo.cms.servlet,\
javax.jcr.security,\
-org.h2;resolution:=optional,\
+org.h2;resolution:=optional;version="[1,3)",\
org.postgresql;version="[42,43)";resolution:=optional,\
org.apache.commons.httpclient.cookie;resolution:=optional,\
org.osgi.framework.namespace;version=0.0.0,\
org.apache.lucene,\
org.apache.tika.core,\
org.apache.commons.dbcp,\
- org.apache.commons.pool,\
- com.google.guava,\
org.apache.jackrabbit.jcr2spi,\
org.apache.jackrabbit.spi2dav,\
org.apache.httpcomponents.httpclient,\
org.apache.httpcomponents.httpcore,\
- org.apache.tika.parsers
+ org.apache.tika.parsers,\
+ org.h2
throws RepositoryException {
super(jcrServerURI, batchReadConfig);
}
-
- public ClientDavexRepositoryService(String jcrServerURI, String defaultWorkspaceName,
- BatchReadConfig batchReadConfig, int itemInfoCacheSize, int maximumHttpConnections)
- throws RepositoryException {
- super(jcrServerURI, defaultWorkspaceName, batchReadConfig, itemInfoCacheSize, maximumHttpConnections);
- }
-
- public ClientDavexRepositoryService(String jcrServerURI, String defaultWorkspaceName,
- BatchReadConfig batchReadConfig, int itemInfoCacheSize) throws RepositoryException {
- super(jcrServerURI, defaultWorkspaceName, batchReadConfig, itemInfoCacheSize);
- }
+
+
+
+// public ClientDavexRepositoryService(String jcrServerURI, String defaultWorkspaceName,
+// BatchReadConfig batchReadConfig, int itemInfoCacheSize, ConnectionOptions connectionOptions)
+// throws RepositoryException {
+// super(jcrServerURI, defaultWorkspaceName, batchReadConfig, itemInfoCacheSize, connectionOptions);
+// // TODO Auto-generated constructor stub
+// }
+
+
+
+// public ClientDavexRepositoryService(String jcrServerURI, String defaultWorkspaceName,
+// BatchReadConfig batchReadConfig, int itemInfoCacheSize, int maximumHttpConnections)
+// throws RepositoryException {
+// super(jcrServerURI, defaultWorkspaceName, batchReadConfig, itemInfoCacheSize, maximumHttpConnections);
+// }
+//
+// public ClientDavexRepositoryService(String jcrServerURI, String defaultWorkspaceName,
+// BatchReadConfig batchReadConfig, int itemInfoCacheSize) throws RepositoryException {
+// super(jcrServerURI, defaultWorkspaceName, batchReadConfig, itemInfoCacheSize);
+// }
@Override
protected HttpContext getContext(SessionInfo sessionInfo) throws RepositoryException {
}
}
- if (maximumHttpConnections > 0) {
- return new ClientDavexRepositoryService(uri, workspaceNameDefault, brc, itemInfoCacheSize,
- maximumHttpConnections);
- } else {
- return new ClientDavexRepositoryService(uri, workspaceNameDefault, brc, itemInfoCacheSize);
- }
+ // FIXME adapt to changes in Jackrabbit
+// if (maximumHttpConnections > 0) {
+// return new ClientDavexRepositoryService(uri, workspaceNameDefault, brc, itemInfoCacheSize,
+// maximumHttpConnections);
+// } else {
+// return new ClientDavexRepositoryService(uri, workspaceNameDefault, brc, itemInfoCacheSize);
+// }
+ return null;
}
}
Object uri = parameters.get(JACKRABBIT_DAVEX_URI);
Object defaultWorkspace = parameters.get(JACKRABBIT_REMOTE_DEFAULT_WORKSPACE);
BatchReadConfig brc = null;
- return new RepositoryServiceImpl(uri.toString(), defaultWorkspace.toString(), brc,
- ItemInfoCacheImpl.DEFAULT_CACHE_SIZE) {
-
- @Override
- protected HttpContext getContext(SessionInfo sessionInfo) throws RepositoryException {
- HttpClientContext result = HttpClientContext.create();
- result.setAuthCache(new NonSerialBasicAuthCache());
- return result;
- }
-
- };
+ // FIXME adapt to change in Jackrabbit
+// return new RepositoryServiceImpl(uri.toString(), defaultWorkspace.toString(), brc,
+// ItemInfoCacheImpl.DEFAULT_CACHE_SIZE) {
+//
+// @Override
+// protected HttpContext getContext(SessionInfo sessionInfo) throws RepositoryException {
+// HttpClientContext result = HttpClientContext.create();
+// result.setAuthCache(new NonSerialBasicAuthCache());
+// return result;
+// }
+//
+// };
+ return null;
}
};
return RepositoryImpl.create(