1 #ifndef ITEMANNO4CPP_HPP
2 #define ITEMANNO4CPP_HPP 1
4 #include "rdf_model.hpp"
6 #include "PartAnno4cpp.hpp"
7 #include "ResourceAnno4cpp.hpp"
11 namespace persistence {
19 jnipp::GlobalRef<jnipp::eu::mico::platform::anno4j::model::ItemMMM> m_itemMMM;
34 std::list< std::shared_ptr<Part> >
getParts();
36 std::string getSerializedAt() {
37 jnipp::Env::Scope scope(PersistenceService::m_sJvm);
38 std::string timestamp = m_itemMMM->getSerializedAt()->std_str();
39 m_persistenceService.checkJavaExceptionNoThrow(m_jnippErrorMessage);
46 jnipp::Ref<jnipp::java::lang::Object>&
createObject(
const jnipp::Ref<jnipp::Class>& clazz);
55 jnipp::Ref<jnipp::org::openrdf::repository::object::ObjectConnection> con,
56 const jnipp::Ref<jnipp::Class>& clazz);
62 const jnipp::Ref<jnipp::Class>& clazz);
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
Definition: http_client.cpp:23
std::shared_ptr< Part > getPart(const mico::persistence::model::URI &uri)
Return a handle to the ContentPart with the given URI, or null in case the content item does not have...
Definition: ItemAnno4cpp.cpp:88
jnipp::Ref< jnipp::java::lang::Object > & createObjectNoCommit(jnipp::Ref< jnipp::org::openrdf::repository::object::ObjectConnection > con, const jnipp::Ref< jnipp::Class > &clazz)
Create a new jnipp Object of the desired class using the connection.
Definition: ItemAnno4cpp.cpp:171
jnipp::Ref< jnipp::java::lang::Object > & createObject(const jnipp::Ref< jnipp::Class > &clazz)
Create a new jnipp Object of the desired class.
Definition: ItemAnno4cpp.cpp:140
Main service for accessing the MICO persistence API.
Definition: PersistenceService.hpp:51
std::list< std::shared_ptr< Part > > getParts()
Return a list over all content parts contained in this item.
Definition: ItemAnno4cpp.cpp:114
Definition: ResourceAnno4cpp.hpp:15
jnipp::Ref< jnipp::java::lang::Object > & findObject(const mico::persistence::model::URI &uri, const jnipp::Ref< jnipp::Class > &clazz)
Retrieve an existing jnipp Object of the desired class.
Definition: ItemAnno4cpp.cpp:187
std::shared_ptr< Part > createPart(const mico::persistence::model::URI &extractorID)
Create a new content part with a random URI and return a handle.
Definition: ItemAnno4cpp.cpp:23
Representation of a Item.
Definition: Item.hpp:17
Definition: ItemAnno4cpp.hpp:13
A URI.
Definition: Uri.hpp:22