Esempio n. 1
0
 /**
  * Return a Crypto5Middleware-wrapped Server11Repository.
  *
  * @throws NoCollectionKeysSetException
  * @throws URISyntaxException
  */
 protected Repository wrappedServerRepo() throws NoCollectionKeysSetException, URISyntaxException {
   String collection = this.getCollection();
   KeyBundle collectionKey = session.keyBundleForCollection(collection);
   Crypto5MiddlewareRepository cryptoRepo =
       new Crypto5MiddlewareRepository(getRemoteRepository(), collectionKey);
   cryptoRepo.recordFactory = getRecordFactory();
   return cryptoRepo;
 }