Class ResourceMetadataManager
java.lang.Object
it.uniroma2.art.semanticturkey.versioning.ResourceMetadataManager
Managed metadata about a resource across its life cycle.
- Author:
- Manuel Fiorelli
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected it.uniroma2.art.coda.core.CODACore
getInitializedCodaCore
(org.eclipse.rdf4j.repository.RepositoryConnection repoConnection) getResourceMetadataPattern
(Project project, String reference) Returns theResourceMetadataPattern
with the given reference.void
onCreation
(ResourceCreated event) Manages metadata about a resource just created.void
onDeletion
(ResourceDeleted event) Manages metadata about a resource that was created.void
onUpdate
(ResourceModified event) Manages metadata about a resource that was updated.
-
Field Details
-
exptManager
-
-
Constructor Details
-
ResourceMetadataManager
public ResourceMetadataManager()
-
-
Method Details
-
onCreation
Manages metadata about a resource just created. This listener is executed before the current transaction is committed, so that it can add metadata within the same transaction that created a resource.- Parameters:
event
-
-
onUpdate
Manages metadata about a resource that was updated. This listener is executed before the current transaction is committed, so that it can add metadata within the same transaction that updated a resource.- Parameters:
event
-
-
onDeletion
Manages metadata about a resource that was created. This listener (which is not transactional) is executed Immediately as the event is first published. Indeed, deletions are published before they actually occur, because otherwise all 1st level statements of the deleted resource would have been removed from the repository.- Parameters:
event
-
-
getResourceMetadataPatternStore
public ResourceMetadataPatternStore getResourceMetadataPatternStore() throws NoSuchConfigurationManager- Throws:
NoSuchConfigurationManager
-
getResourceMetadataAssociationStore
public ResourceMetadataAssociationStore getResourceMetadataAssociationStore() throws NoSuchConfigurationManager- Throws:
NoSuchConfigurationManager
-
getResourceMetadataPattern
public ResourceMetadataPattern getResourceMetadataPattern(Project project, String reference) throws IOException, STPropertyAccessException, NoSuchConfigurationManager Returns theResourceMetadataPattern
with the given reference. This method looks among the configurations stored at any level (pu, usr, proj, system) and also among the factory-provided- Parameters:
project
-reference
-- Returns:
- Throws:
IOException
STPropertyAccessException
NoSuchConfigurationManager
-
getInitializedCodaCore
protected it.uniroma2.art.coda.core.CODACore getInitializedCodaCore(org.eclipse.rdf4j.repository.RepositoryConnection repoConnection)
-