Uses of Interface
org.fcrepo.kernel.api.Transaction
-
Packages that use Transaction Package Description org.fcrepo.kernel.api org.fcrepo.kernel.api.models org.fcrepo.kernel.api.observer org.fcrepo.kernel.api.operations org.fcrepo.kernel.api.services -
-
Uses of Transaction in org.fcrepo.kernel.api
Classes in org.fcrepo.kernel.api that implement Transaction Modifier and Type Class Description classReadOnlyTransactionA read-only tx that never expires and cannot be committed.Methods in org.fcrepo.kernel.api that return Transaction Modifier and Type Method Description TransactionTransactionManager. create()Create a new fedora transactionTransactionTransactionManager. get(String transactionId)Get an existing fedora transactionMethods in org.fcrepo.kernel.api with parameters of type Transaction Modifier and Type Method Description voidContainmentIndex. addContainedBy(Transaction tx, FedoraId parent, FedoraId child)Add a contained by relation between the child resource and its parent.voidContainmentIndex. addContainedBy(Transaction tx, FedoraId parent, FedoraId child, Instant startTime, Instant endTime)Add a contained by relation between the child resource and its parent for a range of time in the past.voidContainmentIndex. commitTransaction(Transaction tx)Commit the changes made in the transaction.InstantContainmentIndex. containmentLastUpdated(Transaction tx, FedoraId fedoraId)Find the timestamp of the last child added or deletedStringContainmentIndex. getContainedBy(Transaction tx, FedoraId resource)Return the ID of the containing resource for resourceID.FedoraIdContainmentIndex. getContainerIdByPath(Transaction tx, FedoraId fedoraId, boolean checkDeleted)Find the ID for the container of the provided resource by iterating up the path until you find a real resource.Stream<String>ContainmentIndex. getContains(Transaction tx, FedoraId fedoraId)Return a stream of fedora identifiers contained by the specified fedora resource for the current state of the repository.Stream<String>ContainmentIndex. getContainsDeleted(Transaction tx, FedoraId fedoraId)Return a stream of fedora identifiers contained by the specified fedora resource that have deleted relationships.booleanContainmentIndex. hasResourcesStartingWith(Transaction tx, FedoraId fedoraId)Find whether there are any resources that starts with the ID provided.voidContainmentIndex. purgeResource(Transaction tx, FedoraId resource)Remove all relationships to the specified resource.voidContainmentIndex. removeContainedBy(Transaction tx, FedoraId parent, FedoraId child)Mark a contained by relation between the child resource and its parent as deleted.voidContainmentIndex. removeResource(Transaction tx, FedoraId resource)Mark all relationships to the specified resource as deleted.booleanContainmentIndex. resourceExists(Transaction tx, FedoraId fedoraId, boolean includeDeleted)Check if the resourceID exists in the containment index.voidContainmentIndex. rollbackTransaction(Transaction tx)Rollback the containment index changes in the transaction. -
Uses of Transaction in org.fcrepo.kernel.api.models
Methods in org.fcrepo.kernel.api.models with parameters of type Transaction Modifier and Type Method Description booleanResourceHelper. doesResourceExist(Transaction transaction, FedoraId fedoraId, boolean includeDeleted)Check if a resource exists.Stream<FedoraResource>ResourceFactory. getChildren(Transaction transaction, FedoraId resourceId)Get immediate children of the resourceFedoraResourceResourceFactory. getContainer(Transaction transaction, FedoraId resourceId)Get the containing resource (if exists).FedoraResourceResourceFactory. getResource(Transaction transaction, FedoraId fedoraID)Get a FedoraResource for existing resource<T extends FedoraResource>
TResourceFactory. getResource(Transaction transaction, FedoraId fedoraID, Class<T> clazz)Get a resource as a particular typebooleanResourceHelper. isGhostNode(Transaction transaction, FedoraId resourceId)Is the resource a "ghost node". -
Uses of Transaction in org.fcrepo.kernel.api.observer
Methods in org.fcrepo.kernel.api.observer with parameters of type Transaction Modifier and Type Method Description voidEventAccumulator. clearEvents(Transaction transaction)Removes all of a transaction's accumulated events without emitting them.voidEventAccumulator. emitEvents(Transaction transaction, String baseUrl, String userAgent)Emits all of the events that were accumulated within the transaction.voidEventAccumulator. recordEventForOperation(Transaction transaction, FedoraId fedoraId, ResourceOperation operation)Registers a new event to a transaction. -
Uses of Transaction in org.fcrepo.kernel.api.operations
Methods in org.fcrepo.kernel.api.operations that return Transaction Modifier and Type Method Description TransactionReindexResourceOperation. getTransaction()Return the transaction the Reindex is happening in.TransactionResourceOperation. getTransaction()The transaction the operation is in.Methods in org.fcrepo.kernel.api.operations with parameters of type Transaction Modifier and Type Method Description ResourceOperationBuilderReindexResourceOperationFactory. create(Transaction transaction, FedoraId resourceId)Get a builder for an operation to reindex a resourceCreateRdfSourceOperationBuilderRdfSourceOperationFactory. createBuilder(Transaction transaction, FedoraId rescId, String interactionModel, org.fcrepo.config.ServerManagedPropsMode serverManagedPropsMode)Get a builder for an operation to create an RDF sourceCreateVersionResourceOperationBuilderVersionResourceOperationFactory. createBuilder(Transaction transaction, FedoraId rescId)Create a newCreateVersionResourceOperationBuilderbuilder.CreateNonRdfSourceOperationBuilderNonRdfSourceOperationFactory. createExternalBinaryBuilder(Transaction transaction, FedoraId rescId, String handling, URI contentUri)Get a builder for a external binary create operationCreateNonRdfSourceOperationBuilderNonRdfSourceOperationFactory. createInternalBinaryBuilder(Transaction transaction, FedoraId rescId, InputStream contentStream)Get a builder for an internal binary create operationResourceOperationBuilderDeleteResourceOperationFactory. deleteBuilder(Transaction transaction, FedoraId rescId)Get a builder for an operation to delete a resourceResourceOperationBuilderDeleteResourceOperationFactory. purgeBuilder(Transaction transaction, FedoraId rescId)Get a builder for an operation to purge a deleted resource.RdfSourceOperationBuilderRdfSourceOperationFactory. updateBuilder(Transaction transaction, FedoraId rescId, org.fcrepo.config.ServerManagedPropsMode serverManagedPropsMode)Get a builder for an operation to update an RDF sourceNonRdfSourceOperationBuilderNonRdfSourceOperationFactory. updateExternalBinaryBuilder(Transaction transaction, FedoraId rescId, String handling, URI contentUri)Get a builder for a external binary update operationUpdateNonRdfSourceHeadersOperationBuilderNonRdfSourceOperationFactory. updateHeadersBuilder(Transaction transaction, FedoraId resourceId, org.fcrepo.config.ServerManagedPropsMode serverManagedPropsMode)Get a builder for an operation to update headers of a Non-RDF resourceNonRdfSourceOperationBuilderNonRdfSourceOperationFactory. updateInternalBinaryBuilder(Transaction transaction, FedoraId rescId, InputStream contentStream)Get a builder for an internal binary update operation -
Uses of Transaction in org.fcrepo.kernel.api.services
Methods in org.fcrepo.kernel.api.services with parameters of type Transaction Modifier and Type Method Description voidMembershipService. commitTransaction(Transaction transaction)Commit any pending membership changes.voidReferenceService. commitTransaction(Transaction tx)Commit any pending references.voidWebacAclService. create(Transaction transaction, FedoraId fedoraId, String userPrincipal, org.apache.jena.rdf.model.Model model)Retrieve or create a new WebACL by transaction and pathvoidVersionService. createVersion(Transaction transaction, FedoraId fedoraId, String userPrincipal)Explicitly creates a version for the resource at the path provided.voidReferenceService. deleteAllReferences(Transaction tx, FedoraId resourceId)Delete all references from a resource to any other resource.booleanService. exists(Transaction transaction, String path)Test whether T exists at the given path in the repositoryTService. find(Transaction transaction, String path)Retrieve an existing T instance by transaction and pathWebacAclWebacAclService. find(Transaction transaction, FedoraId fedoraId)Retrieve an existing WebACL by transaction and pathTService. findOrCreate(Transaction transaction, String path)Retrieve a T instance by transaction and pathStream<org.apache.jena.graph.Triple>ContainmentTriplesService. get(Transaction tx, FedoraResource resource)Retrieve the containment triples.RdfStreamReferenceService. getInboundReferences(Transaction tx, FedoraResource resource)Return a RDF stream of statements referring to the provided resource.InstantMembershipService. getLastUpdatedTimestamp(Transaction transaction, FedoraId fedoraId)Get the timestamp of the most recent member added or removed, or null if none.RdfStreamMembershipService. getMembership(Transaction transaction, FedoraId fedoraId)Return an RdfStream of membership relations of which the provided resource is the subject.Stream<org.apache.jena.graph.Triple>ResourceTripleService. getResourceTriples(Transaction tx, FedoraResource resource, LdpTriplePreferences preferences, int limit)Return the triples for the resource based on the Prefer: header preferencesvoidCreateResourceService. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, String contentType, String filename, long contentSize, List<String> linkHeaders, Collection<URI> digest, InputStream requestBody, ExternalContent externalContent)Create a new NonRdfSource resource.voidCreateResourceService. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model)Create a new RdfSource resource.voidDeleteResourceService. perform(Transaction tx, FedoraResource fedoraResource, String userPrincipal)Delete the specified resourcevoidPurgeResourceService. perform(Transaction tx, FedoraResource fedoraResource, String userPrincipal)Purges the specified resourcevoidReplaceBinariesService. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, String filename, String contentType, Collection<URI> digests, InputStream contentBody, long size, ExternalContent externalContent)Replace an existing binary.voidReplacePropertiesService. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, org.apache.jena.rdf.model.Model inputModel)Replace the properties of this object with the properties from the given modelvoidMembershipService. populateMembershipHistory(Transaction transaction, FedoraId containerId)Regenerate the membership history for specified Direct or Indirect container.voidReindexService. reindexByFedoraId(Transaction transaction, String principal, FedoraId fedoraId)voidMembershipService. resourceCreated(Transaction transaction, FedoraId fedoraId)Update membership properties based on the creation of the specified resourcevoidMembershipService. resourceDeleted(Transaction transaction, FedoraId fedoraId)Update membership properties based on the deletion of the specified resourcevoidMembershipService. resourceModified(Transaction transaction, FedoraId fedoraId)Update membership properties based on the modification of the specified resourcevoidMembershipService. rollbackTransaction(Transaction transaction)Rollback any pending membership changes.voidReferenceService. rollbackTransaction(Transaction tx)Rollback any pending references.voidUpdatePropertiesService. updateProperties(Transaction tx, String userPrincipal, FedoraId fedoraId, String sparqlUpdateStatement)Update the provided properties with a SPARQL Update query.voidReferenceService. updateReferences(Transaction tx, FedoraId resourceId, String userPrincipal, RdfStream rdfStream)Parse the stream of triples for references, add any new ones and remove any missing ones.
-