Uses of Interface
org.fcrepo.kernel.api.Transaction
Packages that use Transaction
Package
Description
-
Uses of Transaction in org.fcrepo.kernel.api
Classes in org.fcrepo.kernel.api that implement TransactionModifier and TypeClassDescriptionclassA read-only tx that never expires and cannot be committed.Methods in org.fcrepo.kernel.api that return TransactionModifier and TypeMethodDescriptionTransactionManager.create()Create a new fedora transactionGet an existing fedora transactionMethods in org.fcrepo.kernel.api with parameters of type TransactionModifier and TypeMethodDescriptionvoidContainmentIndex.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.ContainmentIndex.containmentLastUpdated(Transaction tx, FedoraId fedoraId) Find the timestamp of the last child added or deletedContainmentIndex.getContainedBy(Transaction tx, FedoraId resource) Return the ID of the containing resource for resourceID.ContainmentIndex.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.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.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 TransactionModifier and TypeMethodDescriptionbooleanResourceHelper.doesResourceExist(Transaction transaction, FedoraId fedoraId, boolean includeDeleted) Check if a resource exists.ResourceFactory.getChildren(Transaction transaction, FedoraId resourceId) Get immediate children of the resourceResourceFactory.getContainer(Transaction transaction, FedoraId resourceId) Get the containing resource (if exists).ResourceFactory.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 TransactionModifier and TypeMethodDescriptionvoidEventAccumulator.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 TransactionModifier and TypeMethodDescriptionReindexResourceOperation.getTransaction()Return the transaction the Reindex is happening in.ResourceOperation.getTransaction()The transaction the operation is in.Methods in org.fcrepo.kernel.api.operations with parameters of type TransactionModifier and TypeMethodDescriptionReindexResourceOperationFactory.create(Transaction transaction, FedoraId resourceId) Get a builder for an operation to reindex a resourceRdfSourceOperationFactory.createBuilder(Transaction transaction, FedoraId rescId, String interactionModel, org.fcrepo.config.ServerManagedPropsMode serverManagedPropsMode) Get a builder for an operation to create an RDF sourceVersionResourceOperationFactory.createBuilder(Transaction transaction, FedoraId rescId) Create a newCreateVersionResourceOperationBuilderbuilder.NonRdfSourceOperationFactory.createExternalBinaryBuilder(Transaction transaction, FedoraId rescId, String handling, URI contentUri) Get a builder for a external binary create operationNonRdfSourceOperationFactory.createInternalBinaryBuilder(Transaction transaction, FedoraId rescId, InputStream contentStream) Get a builder for an internal binary create operationDeleteResourceOperationFactory.deleteBuilder(Transaction transaction, FedoraId rescId) Get a builder for an operation to delete a resourceDeleteResourceOperationFactory.purgeBuilder(Transaction transaction, FedoraId rescId) Get a builder for an operation to purge a deleted resource.RdfSourceOperationFactory.updateBuilder(Transaction transaction, FedoraId rescId, org.fcrepo.config.ServerManagedPropsMode serverManagedPropsMode) Get a builder for an operation to update an RDF sourceNonRdfSourceOperationFactory.updateExternalBinaryBuilder(Transaction transaction, FedoraId rescId, String handling, URI contentUri) Get a builder for a external binary update operationNonRdfSourceOperationFactory.updateHeadersBuilder(Transaction transaction, FedoraId resourceId, org.fcrepo.config.ServerManagedPropsMode serverManagedPropsMode) Get a builder for an operation to update headers of a Non-RDF resourceNonRdfSourceOperationFactory.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 TransactionModifier and TypeMethodDescriptionvoidMembershipService.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 repositoryService.find(Transaction transaction, String path) Retrieve an existing T instance by transaction and pathWebacAclService.find(Transaction transaction, FedoraId fedoraId) Retrieve an existing WebACL by transaction and pathService.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.ReferenceService.getInboundReferences(Transaction tx, FedoraResource resource) Return a RDF stream of statements referring to the provided resource.MembershipService.getLastUpdatedTimestamp(Transaction transaction, FedoraId fedoraId) Get the timestamp of the most recent member added or removed, or null if none.MembershipService.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.default voidCreateResourceService.perform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model) voidCreateResourceService.perform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model, boolean isOverwrite) 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.