1 #ifndef HAVE_PERSISTENCE_SERVICE_H
2 #define HAVE_PERSISTENCE_SERVICE_H 1
8 #include <boost/iterator/iterator_facade.hpp>
11 #include "Metadata.hpp"
22 namespace persistence {
55 std::string marmottaServerUrl;
56 std::string contentDirectory;
58 std::string m_jniErrorMessage;
60 static JNIEnv* m_sEnv;
62 jnipp::GlobalRef<ComGithubAnno4jAnno4j> m_anno4j;
68 void setContext(jnipp::Ref<OrgOpenrdfRepositoryObjectObjectConnection> con, jnipp::Ref<OrgOpenrdfModelURI> context);
72 static JavaVM* m_sJvm;
75 static JavaVM* getJVM() {
return m_sJvm; }
90 PersistenceService(std::string serverAddress,
int marmottaPort, std::string user, std::string password);
116 std::shared_ptr<model::Item> createItem();
139 std::vector<std::shared_ptr<model::Item> > getItems();
155 jnipp::LocalRef<jnipp::com::github::anno4j::Anno4j> getAnno4j();
157 std::string getStoragePrefix();
159 std::string getContentDirectory();
161 std::string unmaskContentLocation(
const std::string &maskedURL );
163 void checkJavaExceptionThrow();
165 void checkJavaExceptionThrow(std::vector<std::string> exceptionNames);
167 bool checkJavaExceptionNoThrow(std::string& msg);
169 bool checkJavaExceptionNoThrow(std::vector<std::string> exceptionNames, std::string& msg);
173 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
Definition: http_client.cpp:23
Main service for accessing the MICO persistence API.
Definition: PersistenceService.hpp:51
PersistenceMetadata & getMetadata()
Get a handle on the overall metadata storage of the persistence service.
Definition: PersistenceService.hpp:108
Definition: rdf_query.hpp:17
A URI.
Definition: Uri.hpp:22