Public Member Functions | |
ItemAnno4cpp (jnipp::Ref< jnipp::eu::mico::platform::anno4j::model::ItemMMM > itemMMM, PersistenceService &persistenceService) | |
std::shared_ptr< Part > | createPart (const mico::persistence::model::URI &extractorID) |
Create a new content part with a random URI and return a handle. More... | |
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 this content part. More... | |
std::list< std::shared_ptr < Part > > | getParts () |
Return a list over all content parts contained in this item. More... | |
std::string | getSerializedAt () |
jnipp::Ref < jnipp::java::lang::Object > & | createObject (const jnipp::Ref< jnipp::Class > &clazz) |
Create a new jnipp Object of the desired class. | |
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. More... | |
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. | |
Public Member Functions inherited from mico::persistence::model::ResourceAnno4cpp | |
virtual mico::persistence::model::URI | getURI () |
Return the identifier (a unique URI) for this item. More... | |
virtual jnipp::Ref < jnipp::eu::mico::platform::anno4j::model::ResourceMMM > | getRDFObject () |
virtual std::string | getSyntacticalType () |
the mime type, e.g. More... | |
virtual void | setSyntacticalType (std::string syntacticalType) |
virtual std::string | getSemanticType () |
virtual void | setSemanticType (std::string semanticType) |
virtual std::shared_ptr< Asset > | getAsset () |
virtual std::shared_ptr< Asset > | getAssetWithLocation (mico::persistence::model::URI) |
virtual bool | hasAsset () |
virtual mico::persistence::PersistenceService & | getPersistenceService () |
Protected Attributes | |
jnipp::GlobalRef < jnipp::eu::mico::platform::anno4j::model::ItemMMM > | m_itemMMM |
Protected Attributes inherited from mico::persistence::model::ResourceAnno4cpp | |
PersistenceService & | m_persistenceService |
std::string | m_jnippErrorMessage |
Additional Inherited Members | |
Protected Member Functions inherited from mico::persistence::model::ResourceAnno4cpp | |
ResourceAnno4cpp (jnipp::Ref< jnipp::eu::mico::platform::anno4j::model::ResourceMMM > resourceMMM, PersistenceService &persistenceService) | |
|
virtual |
Create a new jnipp Object of the desired class using the connection.
Notice that this method does not commit the transaction.
Implements mico::persistence::model::Item.
|
virtual |
Create a new content part with a random URI and return a handle.
The handle can then be used for updating the content and metadata of the content part.
extractorID | The id of the extractor which creates the current part |
Implements mico::persistence::model::Item.
|
virtual |
Return a handle to the ContentPart with the given URI, or null in case the content item does not have this content part.
uri | the URI of the content part to return |
Implements mico::persistence::model::Item.
|
virtual |
Return a list over all content parts contained in this item.
Implements mico::persistence::model::Item.