Class ResourceMetadataManager

java.lang.Object
it.uniroma2.art.semanticturkey.versioning.ResourceMetadataManager

public class ResourceMetadataManager extends Object
Managed metadata about a resource across its life cycle.
Author:
Manuel Fiorelli
  • Field Details

  • Constructor Details

    • ResourceMetadataManager

      public ResourceMetadataManager()
  • Method Details

    • onCreation

      @TransactionalEventListener(phase=BEFORE_COMMIT) public void onCreation(ResourceCreated event)
      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

      @TransactionalEventListener(phase=BEFORE_COMMIT) public void onUpdate(ResourceModified event)
      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

      @EventListener public void onDeletion(ResourceDeleted event)
      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 the ResourceMetadataPattern 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)