MICO Platform
 All Classes Namespaces Functions Variables Friends
Item.hpp
1 #ifndef ITEM_HPP
2 #define ITEM_HPP 1
3 
4 #include "Part.hpp"
5 #include "anno4cpp.h"
6 
7 namespace mico {
8  namespace persistence {
9  namespace model {
10  class URI;
11 
17  class Item
18  {
19  public:
27  virtual std::shared_ptr<Part> createPart(const mico::persistence::model::URI& extractorID) = 0;
28 
36  virtual std::shared_ptr<Part> getPart(const mico::persistence::model::URI& uri) = 0;
37 
43  virtual std::list< std::shared_ptr<Part> > getParts() = 0;
44 
48  virtual jnipp::Ref<jnipp::java::lang::Object>& createObject(const jnipp::Ref<jnipp::Class>& clazz) = 0;
49 
56  virtual jnipp::Ref<jnipp::java::lang::Object>& createObjectNoCommit(
57  jnipp::Ref<jnipp::org::openrdf::repository::object::ObjectConnection> con,
58  const jnipp::Ref<jnipp::Class>& clazz) = 0;
59 
63  virtual jnipp::Ref<jnipp::java::lang::Object>& findObject(const mico::persistence::model::URI& uri,
64  const jnipp::Ref<jnipp::Class>& clazz) = 0;
65 
66 
67  virtual std::string getSerializedAt() = 0;
68 
69  };
70  }
71  }
72 }
73 #endif
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
Definition: http_client.cpp:23
virtual jnipp::Ref< jnipp::java::lang::Object > & createObjectNoCommit(jnipp::Ref< jnipp::org::openrdf::repository::object::ObjectConnection > con, const jnipp::Ref< jnipp::Class > &clazz)=0
Create a new jnipp Object of the desired class using the connection.
virtual jnipp::Ref< jnipp::java::lang::Object > & createObject(const jnipp::Ref< jnipp::Class > &clazz)=0
Create a new jnipp Object of the desired class.
virtual std::shared_ptr< Part > createPart(const mico::persistence::model::URI &extractorID)=0
Create a new content part with a random URI and return a handle.
virtual jnipp::Ref< jnipp::java::lang::Object > & findObject(const mico::persistence::model::URI &uri, const jnipp::Ref< jnipp::Class > &clazz)=0
Retrieve an existing jnipp Object of the desired class.
virtual std::list< std::shared_ptr< Part > > getParts()=0
Return a list over all content parts contained in this item.
Representation of a Item.
Definition: Item.hpp:17
A URI.
Definition: Uri.hpp:22
virtual std::shared_ptr< Part > getPart(const mico::persistence::model::URI &uri)=0
Return a handle to the ContentPart with the given URI, or null in case the content item does not have...