Uses of Interface
org.fcrepo.kernel.api.Transaction
-
Packages that use Transaction Package Description org.fcrepo.auth.webac org.fcrepo.http.api This package provides a RESTful API for several content management and core repository services.org.fcrepo.http.api.services org.fcrepo.http.commons.session Types and implementation classes that define and provide sessions.org.fcrepo.kernel.api org.fcrepo.kernel.api.models org.fcrepo.kernel.api.observer org.fcrepo.kernel.api.operations org.fcrepo.kernel.api.services org.fcrepo.kernel.impl org.fcrepo.kernel.impl.models org.fcrepo.kernel.impl.observer org.fcrepo.kernel.impl.operations org.fcrepo.kernel.impl.services org.fcrepo.persistence.api org.fcrepo.persistence.ocfl.api org.fcrepo.persistence.ocfl.impl org.fcrepo.search.api org.fcrepo.search.impl -
-
Uses of Transaction in org.fcrepo.auth.webac
Methods in org.fcrepo.auth.webac with parameters of type Transaction Modifier and Type Method Description Map<String,Collection<String>>
WebACRolesProvider. getRoles(FedoraResource resource, Transaction transaction)
Get the roles assigned to this Node. -
Uses of Transaction in org.fcrepo.http.api
Methods in org.fcrepo.http.api that return Transaction Modifier and Type Method Description protected Transaction
FedoraBaseResource. transaction()
Methods in org.fcrepo.http.api with parameters of type Transaction Modifier and Type Method Description protected void
ContentExposingResource. addCacheControlHeaders(javax.servlet.http.HttpServletResponse servletResponse, FedoraResource resource, Transaction transaction)
Add ETag and Last-Modified cache control headers to the responseprotected void
ContentExposingResource. checkCacheControlHeaders(javax.ws.rs.core.Request request, javax.servlet.http.HttpServletResponse servletResponse, FedoraResource resource, Transaction transaction)
Evaluate the cache control headers for the request to see if it can be served from the cache.protected boolean
FedoraBaseResource. doesResourceExist(Transaction transaction, FedoraId fedoraId, boolean includeDeleted)
protected void
ContentExposingResource. evaluateRequestPreconditions(javax.ws.rs.core.Request request, javax.servlet.http.HttpServletResponse servletResponse, FedoraResource resource, Transaction transaction)
Evaluate request preconditions to ensure the resource is the expected stateprotected FedoraResource
FedoraBaseResource. getFedoraResource(Transaction transaction, FedoraId fedoraId)
Gets a fedora resource by id.protected boolean
FedoraBaseResource. isGhostNode(Transaction transaction, FedoraId fedoraId)
-
Uses of Transaction in org.fcrepo.http.api.services
Methods in org.fcrepo.http.api.services with parameters of type Transaction Modifier and Type Method Description String
EtagService. getRdfResourceEtag(Transaction transaction, FedoraResource resource, LdpTriplePreferences prefers, Collection<javax.ws.rs.core.MediaType> acceptableMediaTypes)
Produces etag for a request for an RDF resource. -
Uses of Transaction in org.fcrepo.http.commons.session
Methods in org.fcrepo.http.commons.session that return Transaction Modifier and Type Method Description Transaction
TransactionProvider. getTransactionForRequest()
Returns the transaction for the Request.Transaction
TransactionProvider. provide()
Methods in org.fcrepo.http.commons.session with parameters of type Transaction Modifier and Type Method Description void
TransactionProvider. dispose(Transaction transaction)
-
Uses of Transaction in org.fcrepo.kernel.api
Classes in org.fcrepo.kernel.api that implement Transaction Modifier and Type Class Description class
ReadOnlyTransaction
A read-only tx that never expires and cannot be committed.Methods in org.fcrepo.kernel.api that return Transaction Modifier and Type Method Description Transaction
TransactionManager. create()
Create a new fedora transactionTransaction
TransactionManager. get(String transactionId)
Get an existing fedora transactionMethods in org.fcrepo.kernel.api with parameters of type Transaction Modifier and Type Method Description void
ContainmentIndex. addContainedBy(Transaction tx, FedoraId parent, FedoraId child)
Add a contained by relation between the child resource and its parent.void
ContainmentIndex. 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.void
ContainmentIndex. commitTransaction(Transaction tx)
Commit the changes made in the transaction.Instant
ContainmentIndex. containmentLastUpdated(Transaction tx, FedoraId fedoraId)
Find the timestamp of the last child added or deletedString
ContainmentIndex. getContainedBy(Transaction tx, FedoraId resource)
Return the ID of the containing resource for resourceID.FedoraId
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.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.boolean
ContainmentIndex. hasResourcesStartingWith(Transaction tx, FedoraId fedoraId)
Find whether there are any resources that starts with the ID provided.void
ContainmentIndex. purgeResource(Transaction tx, FedoraId resource)
Remove all relationships to the specified resource.void
ContainmentIndex. removeContainedBy(Transaction tx, FedoraId parent, FedoraId child)
Mark a contained by relation between the child resource and its parent as deleted.void
ContainmentIndex. removeResource(Transaction tx, FedoraId resource)
Mark all relationships to the specified resource as deleted.boolean
ContainmentIndex. resourceExists(Transaction tx, FedoraId fedoraId, boolean includeDeleted)
Check if the resourceID exists in the containment index.void
ContainmentIndex. 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 boolean
ResourceHelper. 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 resourceFedoraResource
ResourceFactory. getContainer(Transaction transaction, FedoraId resourceId)
Get the containing resource (if exists).FedoraResource
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 typeboolean
ResourceHelper. 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 void
EventAccumulator. clearEvents(Transaction transaction)
Removes all of a transaction's accumulated events without emitting them.void
EventAccumulator. emitEvents(Transaction transaction, String baseUrl, String userAgent)
Emits all of the events that were accumulated within the transaction.void
EventAccumulator. 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 Transaction
ReindexResourceOperation. getTransaction()
Return the transaction the Reindex is happening in.Transaction
ResourceOperation. getTransaction()
The transaction the operation is in.Methods in org.fcrepo.kernel.api.operations with parameters of type Transaction Modifier and Type Method Description ResourceOperationBuilder
ReindexResourceOperationFactory. create(Transaction transaction, FedoraId resourceId)
Get a builder for an operation to reindex a resourceCreateRdfSourceOperationBuilder
RdfSourceOperationFactory. createBuilder(Transaction transaction, FedoraId rescId, String interactionModel, ServerManagedPropsMode serverManagedPropsMode)
Get a builder for an operation to create an RDF sourceCreateVersionResourceOperationBuilder
VersionResourceOperationFactory. createBuilder(Transaction transaction, FedoraId rescId)
Create a newCreateVersionResourceOperationBuilder
builder.CreateNonRdfSourceOperationBuilder
NonRdfSourceOperationFactory. createExternalBinaryBuilder(Transaction transaction, FedoraId rescId, String handling, URI contentUri)
Get a builder for a external binary create operationCreateNonRdfSourceOperationBuilder
NonRdfSourceOperationFactory. createInternalBinaryBuilder(Transaction transaction, FedoraId rescId, InputStream contentStream)
Get a builder for an internal binary create operationResourceOperationBuilder
DeleteResourceOperationFactory. deleteBuilder(Transaction transaction, FedoraId rescId)
Get a builder for an operation to delete a resourceResourceOperationBuilder
DeleteResourceOperationFactory. purgeBuilder(Transaction transaction, FedoraId rescId)
Get a builder for an operation to purge a deleted resource.RdfSourceOperationBuilder
RdfSourceOperationFactory. updateBuilder(Transaction transaction, FedoraId rescId, ServerManagedPropsMode serverManagedPropsMode)
Get a builder for an operation to update an RDF sourceNonRdfSourceOperationBuilder
NonRdfSourceOperationFactory. updateExternalBinaryBuilder(Transaction transaction, FedoraId rescId, String handling, URI contentUri)
Get a builder for a external binary update operationUpdateNonRdfSourceHeadersOperationBuilder
NonRdfSourceOperationFactory. updateHeadersBuilder(Transaction transaction, FedoraId resourceId, ServerManagedPropsMode serverManagedPropsMode)
Get a builder for an operation to update headers of a Non-RDF resourceNonRdfSourceOperationBuilder
NonRdfSourceOperationFactory. 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 void
MembershipService. commitTransaction(Transaction transaction)
Commit any pending membership changes.void
ReferenceService. commitTransaction(Transaction tx)
Commit any pending references.void
WebacAclService. create(Transaction transaction, FedoraId fedoraId, String userPrincipal, org.apache.jena.rdf.model.Model model)
Retrieve or create a new WebACL by transaction and pathvoid
VersionService. createVersion(Transaction transaction, FedoraId fedoraId, String userPrincipal)
Explicitly creates a version for the resource at the path provided.void
ReferenceService. deleteAllReferences(Transaction tx, FedoraId resourceId)
Delete all references from a resource to any other resource.boolean
Service. exists(Transaction transaction, String path)
Test whether T exists at the given path in the repositoryT
Service. find(Transaction transaction, String path)
Retrieve an existing T instance by transaction and pathWebacAcl
WebacAclService. find(Transaction transaction, FedoraId fedoraId)
Retrieve an existing WebACL by transaction and pathT
Service. 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.RdfStream
ReferenceService. getInboundReferences(Transaction tx, FedoraResource resource)
Return a RDF stream of statements referring to the provided resource.Instant
MembershipService. getLastUpdatedTimestamp(Transaction transaction, FedoraId fedoraId)
Get the timestamp of the most recent member added or removed, or null if none.RdfStream
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 preferencesvoid
CreateResourceService. 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.void
CreateResourceService. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model)
Create a new RdfSource resource.void
DeleteResourceService. perform(Transaction tx, FedoraResource fedoraResource, String userPrincipal)
Delete the specified resourcevoid
PurgeResourceService. perform(Transaction tx, FedoraResource fedoraResource, String userPrincipal)
Purges the specified resourcevoid
ReplaceBinariesService. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, String filename, String contentType, Collection<URI> digests, InputStream contentBody, long size, ExternalContent externalContent)
Replace an existing binary.void
ReplacePropertiesService. 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 modelvoid
MembershipService. populateMembershipHistory(Transaction transaction, FedoraId containerId)
Regenerate the membership history for specified Direct or Indirect container.void
ReindexService. reindexByFedoraId(Transaction transaction, String principal, FedoraId fedoraId)
void
MembershipService. resourceCreated(Transaction transaction, FedoraId fedoraId)
Update membership properties based on the creation of the specified resourcevoid
MembershipService. resourceDeleted(Transaction transaction, FedoraId fedoraId)
Update membership properties based on the deletion of the specified resourcevoid
MembershipService. resourceModified(Transaction transaction, FedoraId fedoraId)
Update membership properties based on the modification of the specified resourcevoid
MembershipService. rollbackTransaction(Transaction transaction)
Rollback any pending membership changes.void
ReferenceService. rollbackTransaction(Transaction tx)
Rollback any pending references.void
UpdatePropertiesService. updateProperties(Transaction tx, String userPrincipal, FedoraId fedoraId, String sparqlUpdateStatement)
Update the provided properties with a SPARQL Update query.void
ReferenceService. 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. -
Uses of Transaction in org.fcrepo.kernel.impl
Classes in org.fcrepo.kernel.impl that implement Transaction Modifier and Type Class Description class
TransactionImpl
The Fedora Transaction implementationMethods in org.fcrepo.kernel.impl that return Transaction Modifier and Type Method Description Transaction
TransactionManagerImpl. create()
Transaction
TransactionManagerImpl. get(String transactionId)
Methods in org.fcrepo.kernel.impl with parameters of type Transaction Modifier and Type Method Description void
ContainmentIndexImpl. addContainedBy(Transaction tx, FedoraId parent, FedoraId child)
void
ContainmentIndexImpl. addContainedBy(Transaction tx, FedoraId parent, FedoraId child, Instant startTime, Instant endTime)
void
ContainmentIndexMetrics. addContainedBy(Transaction tx, FedoraId parent, FedoraId child)
void
ContainmentIndexMetrics. addContainedBy(Transaction tx, FedoraId parent, FedoraId child, Instant startTime, Instant endTime)
void
ContainmentIndexImpl. commitTransaction(Transaction tx)
void
ContainmentIndexMetrics. commitTransaction(Transaction tx)
Instant
ContainmentIndexImpl. containmentLastUpdated(Transaction tx, FedoraId fedoraId)
Instant
ContainmentIndexMetrics. containmentLastUpdated(Transaction tx, FedoraId fedoraId)
String
ContainmentIndexImpl. getContainedBy(Transaction tx, FedoraId resource)
String
ContainmentIndexMetrics. getContainedBy(Transaction tx, FedoraId resource)
FedoraId
ContainmentIndexImpl. getContainerIdByPath(Transaction tx, FedoraId fedoraId, boolean checkDeleted)
FedoraId
ContainmentIndexMetrics. getContainerIdByPath(Transaction tx, FedoraId fedoraId, boolean checkDeleted)
Stream<String>
ContainmentIndexImpl. getContains(Transaction tx, FedoraId fedoraId)
Stream<String>
ContainmentIndexMetrics. getContains(Transaction tx, FedoraId fedoraId)
Stream<String>
ContainmentIndexImpl. getContainsDeleted(Transaction tx, FedoraId fedoraId)
Stream<String>
ContainmentIndexMetrics. getContainsDeleted(Transaction tx, FedoraId fedoraId)
boolean
ContainmentIndexImpl. hasResourcesStartingWith(Transaction tx, FedoraId fedoraId)
boolean
ContainmentIndexMetrics. hasResourcesStartingWith(Transaction tx, FedoraId fedoraId)
void
ContainmentIndexImpl. purgeResource(Transaction tx, FedoraId resource)
void
ContainmentIndexMetrics. purgeResource(Transaction tx, FedoraId resource)
void
ContainmentIndexImpl. removeContainedBy(Transaction tx, FedoraId parent, FedoraId child)
void
ContainmentIndexMetrics. removeContainedBy(Transaction tx, FedoraId parent, FedoraId child)
void
ContainmentIndexImpl. removeResource(Transaction tx, FedoraId resource)
void
ContainmentIndexMetrics. removeResource(Transaction tx, FedoraId resource)
boolean
ContainmentIndexImpl. resourceExists(Transaction tx, FedoraId fedoraId, boolean includeDeleted)
boolean
ContainmentIndexMetrics. resourceExists(Transaction tx, FedoraId fedoraId, boolean includeDeleted)
void
ContainmentIndexImpl. rollbackTransaction(Transaction tx)
void
ContainmentIndexMetrics. rollbackTransaction(Transaction tx)
-
Uses of Transaction in org.fcrepo.kernel.impl.models
Fields in org.fcrepo.kernel.impl.models declared as Transaction Modifier and Type Field Description protected Transaction
FedoraResourceImpl. transaction
Methods in org.fcrepo.kernel.impl.models with parameters of type Transaction Modifier and Type Method Description boolean
ResourceHelperImpl. doesResourceExist(Transaction transaction, FedoraId fedoraId, boolean includeDeleted)
Stream<FedoraResource>
ResourceFactoryImpl. getChildren(Transaction transaction, FedoraId resourceId)
FedoraResource
ResourceFactoryImpl. getContainer(Transaction transaction, FedoraId resourceId)
FedoraResource
ResourceFactoryImpl. getResource(Transaction transaction, FedoraId fedoraID)
<T extends FedoraResource>
TResourceFactoryImpl. getResource(Transaction transaction, FedoraId identifier, Class<T> clazz)
boolean
ResourceHelperImpl. isGhostNode(Transaction transaction, FedoraId resourceId)
Constructors in org.fcrepo.kernel.impl.models with parameters of type Transaction Constructor Description BinaryImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
Construct the binaryContainerImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
Construct the containerFedoraResourceImpl(FedoraId fedoraId, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
NonRdfSourceDescriptionImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
Construct a description resourceTimeMapImpl(FedoraResource originalResource, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory)
TombstoneImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, FedoraResource original)
WebacAclImpl(FedoraId fedoraID, Transaction transaction, PersistentStorageSessionManager pSessionManager, ResourceFactory resourceFactory, UserTypesCache userTypesCache)
Constructor -
Uses of Transaction in org.fcrepo.kernel.impl.observer
Methods in org.fcrepo.kernel.impl.observer with parameters of type Transaction Modifier and Type Method Description void
EventAccumulatorImpl. clearEvents(Transaction transaction)
void
EventAccumulatorImpl. emitEvents(Transaction transaction, String baseUrl, String userAgent)
void
EventAccumulatorImpl. recordEventForOperation(Transaction transaction, FedoraId fedoraId, ResourceOperation operation)
-
Uses of Transaction in org.fcrepo.kernel.impl.operations
Fields in org.fcrepo.kernel.impl.operations declared as Transaction Modifier and Type Field Description protected Transaction
AbstractNonRdfSourceOperationBuilder. transaction
protected Transaction
AbstractResourceOperationBuilder. transaction
Methods in org.fcrepo.kernel.impl.operations that return Transaction Modifier and Type Method Description Transaction
AbstractResourceOperation. getTransaction()
Transaction
ReindexResourceOperationImpl. getTransaction()
Methods in org.fcrepo.kernel.impl.operations with parameters of type Transaction Modifier and Type Method Description ReindexResourceOperationBuilder
ReindexResourceOperationFactoryImpl. create(Transaction transaction, FedoraId resourceId)
CreateRdfSourceOperationBuilder
RdfSourceOperationFactoryImpl. createBuilder(Transaction transaction, FedoraId rescId, String interactionModel, ServerManagedPropsMode serverManagedPropsMode)
CreateVersionResourceOperationBuilder
VersionResourceOperationFactoryImpl. createBuilder(Transaction transaction, FedoraId rescId)
CreateNonRdfSourceOperationBuilder
NonRdfSourceOperationFactoryImpl. createExternalBinaryBuilder(Transaction transaction, FedoraId rescId, String handling, URI contentUri)
CreateNonRdfSourceOperationBuilder
NonRdfSourceOperationFactoryImpl. createInternalBinaryBuilder(Transaction transaction, FedoraId rescId, InputStream contentStream)
DeleteResourceOperationBuilder
DeleteResourceOperationFactoryImpl. deleteBuilder(Transaction transaction, FedoraId rescId)
ResourceOperationBuilder
DeleteResourceOperationFactoryImpl. purgeBuilder(Transaction transaction, FedoraId rescId)
void
ReindexResourceOperationImpl. setTransaction(Transaction tx)
RdfSourceOperationBuilder
RdfSourceOperationFactoryImpl. updateBuilder(Transaction transaction, FedoraId rescId, ServerManagedPropsMode serverManagedPropsMode)
UpdateNonRdfSourceOperationBuilder
NonRdfSourceOperationFactoryImpl. updateExternalBinaryBuilder(Transaction transaction, FedoraId rescId, String handling, URI contentUri)
UpdateNonRdfSourceHeadersOperationBuilder
NonRdfSourceOperationFactoryImpl. updateHeadersBuilder(Transaction transaction, FedoraId rescId, ServerManagedPropsMode serverManagedPropsMode)
UpdateNonRdfSourceOperationBuilder
NonRdfSourceOperationFactoryImpl. updateInternalBinaryBuilder(Transaction transaction, FedoraId rescId, InputStream contentStream)
-
Uses of Transaction in org.fcrepo.kernel.impl.services
Methods in org.fcrepo.kernel.impl.services with parameters of type Transaction Modifier and Type Method Description void
MembershipIndexManager. addMembership(Transaction tx, FedoraId sourceId, FedoraId proxyId, org.apache.jena.graph.Triple membership, Instant startTime)
Add new membership property to the index, clearing any delete operations for the property if necessary.void
MembershipIndexManager. addMembership(Transaction tx, FedoraId sourceId, FedoraId proxyId, org.apache.jena.graph.Triple membership, Instant startTime, Instant endTime)
Add new membership property to the indexvoid
MembershipIndexManager. commitTransaction(Transaction tx)
Perform a commit of operations stored in the specified transactionvoid
MembershipServiceImpl. commitTransaction(Transaction tx)
void
ReferenceServiceImpl. commitTransaction(Transaction tx)
void
ReferenceServiceMetrics. commitTransaction(Transaction tx)
void
WebacAclServiceImpl. create(Transaction transaction, FedoraId fedoraId, String userPrincipal, org.apache.jena.rdf.model.Model model)
void
VersionServiceImpl. createVersion(Transaction transaction, FedoraId fedoraId, String userPrincipal)
void
ReferenceServiceImpl. deleteAllReferences(Transaction tx, FedoraId resourceId)
void
ReferenceServiceMetrics. deleteAllReferences(Transaction tx, FedoraId resourceId)
void
MembershipIndexManager. deleteMembershipForProxyAfter(Transaction tx, FedoraId sourceId, FedoraId proxyId, Instant afterTime)
void
MembershipIndexManager. deleteMembershipForSourceAfter(Transaction tx, FedoraId sourceId, Instant afterTime)
Delete membership entries that are active at or after the given timestamp for the specified sourcevoid
MembershipIndexManager. deleteTransaction(Transaction tx)
Delete all entries related to a transactionprotected abstract void
AbstractDeleteResourceService. doAction(Transaction tx, PersistentStorageSession pSession, FedoraId resourceId, String userPrincipal)
Perform the actual delete or purge actionprotected void
DeleteResourceServiceImpl. doAction(Transaction tx, PersistentStorageSession pSession, FedoraId fedoraId, String userPrincipal)
protected void
PurgeResourceServiceImpl. doAction(Transaction tx, PersistentStorageSession pSession, FedoraId resourceId, String userPrincipal)
void
MembershipIndexManager. endMembershipForSource(Transaction tx, FedoraId sourceId, Instant endTime)
End all membership properties resulting from the specified source containervoid
MembershipIndexManager. endMembershipFromChild(Transaction tx, FedoraId sourceId, FedoraId proxyId, Instant endTime)
End a membership from the child of a Direct/IndirectContainer, setting an end time if committed, or clearing from the current tx if it was newly added.WebacAcl
WebacAclServiceImpl. find(Transaction transaction, FedoraId fedoraId)
Stream<org.apache.jena.graph.Triple>
ContainmentTriplesServiceImpl. get(Transaction tx, FedoraResource resource)
protected abstract Stream<String>
AbstractDeleteResourceService. getContained(Transaction tx, FedoraResource resource)
Get the contained resources to act upon.protected Stream<String>
DeleteResourceServiceImpl. getContained(Transaction tx, FedoraResource resource)
protected Stream<String>
PurgeResourceServiceImpl. getContained(Transaction tx, FedoraResource resource)
RdfStream
ReferenceServiceImpl. getInboundReferences(Transaction tx, FedoraResource resource)
RdfStream
ReferenceServiceMetrics. getInboundReferences(Transaction tx, FedoraResource resource)
Instant
MembershipIndexManager. getLastUpdated(Transaction transaction, FedoraId subjectId)
Instant
MembershipServiceImpl. getLastUpdatedTimestamp(Transaction transaction, FedoraId fedoraId)
Stream<org.apache.jena.graph.Triple>
MembershipIndexManager. getMembership(Transaction tx, FedoraId subjectId)
Get a stream of membership triples withRdfStream
MembershipServiceImpl. getMembership(Transaction tx, FedoraId fedoraId)
Stream<org.apache.jena.graph.Triple>
ResourceTripleServiceImpl. getResourceTriples(Transaction tx, FedoraResource resource, LdpTriplePreferences preferences, int limit)
protected void
AbstractService. lockArchivalGroupResource(Transaction tx, PersistentStorageSession pSession, FedoraId fedoraId)
protected void
AbstractService. lockParent(Transaction tx, PersistentStorageSession pSession, FedoraId parentId)
void
AbstractDeleteResourceService. perform(Transaction tx, FedoraResource fedoraResource, String userPrincipal)
The starts the service, does initial checks and setups for processing.void
CreateResourceServiceImpl. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, String contentType, String filename, long contentSize, List<String> linkHeaders, Collection<URI> digest, InputStream requestBody, ExternalContent externalContent)
void
CreateResourceServiceImpl. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, List<String> linkHeaders, org.apache.jena.rdf.model.Model model)
void
ReplaceBinariesServiceImpl. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, String filename, String contentType, Collection<URI> digests, InputStream contentBody, long contentSize, ExternalContent externalContent)
void
ReplacePropertiesServiceImpl. perform(Transaction tx, String userPrincipal, FedoraId fedoraId, org.apache.jena.rdf.model.Model inputModel)
void
MembershipServiceImpl. populateMembershipHistory(Transaction transaction, FedoraId containerId)
protected void
AbstractService. recordEvent(Transaction transaction, FedoraId fedoraId, ResourceOperation operation)
void
ReindexServiceImpl. reindexByFedoraId(Transaction transaction, String principal, FedoraId fedoraId)
void
MembershipServiceImpl. resourceCreated(Transaction tx, FedoraId fedoraId)
void
MembershipServiceImpl. resourceDeleted(Transaction transaction, FedoraId fedoraId)
void
MembershipServiceImpl. resourceModified(Transaction tx, FedoraId fedoraId)
void
MembershipServiceImpl. rollbackTransaction(Transaction tx)
void
ReferenceServiceImpl. rollbackTransaction(Transaction tx)
void
ReferenceServiceMetrics. rollbackTransaction(Transaction tx)
void
UpdatePropertiesServiceImpl. updateProperties(Transaction tx, String userPrincipal, FedoraId fedoraId, String sparqlUpdateStatement)
protected void
AbstractService. updateReferences(Transaction transaction, FedoraId resourceId, String user, org.apache.jena.rdf.model.Model model)
Wrapper to call the referenceService updateReference methodvoid
ReferenceServiceImpl. updateReferences(Transaction tx, FedoraId resourceId, String userPrincipal, RdfStream rdfStream)
void
ReferenceServiceMetrics. updateReferences(Transaction tx, FedoraId resourceId, String userPrincipal, RdfStream rdfStream)
-
Uses of Transaction in org.fcrepo.persistence.api
Methods in org.fcrepo.persistence.api with parameters of type Transaction Modifier and Type Method Description PersistentStorageSession
PersistentStorageSessionManager. getSession(Transaction transaction)
Retrieve a PersistentStorageSession. -
Uses of Transaction in org.fcrepo.persistence.ocfl.api
Methods in org.fcrepo.persistence.ocfl.api with parameters of type Transaction Modifier and Type Method Description FedoraOcflMapping
FedoraToOcflObjectIndex. addMapping(Transaction session, FedoraId fedoraResourceIdentifier, FedoraId fedoraRootObjectIdentifier, String ocflObjectId)
Adds a mapping to the indexvoid
FedoraToOcflObjectIndex. commit(Transaction session)
Commit mapping changes for the session.FedoraOcflMapping
FedoraToOcflObjectIndex. getMapping(Transaction session, FedoraId fedoraResourceIdentifier)
Retrieve identification information for the OCFL object which either contains, or is identified by, the provided fedora resource id.void
FedoraToOcflObjectIndex. removeMapping(Transaction session, FedoraId fedoraResourceIdentifier)
Removes a mappingvoid
FedoraToOcflObjectIndex. rollback(Transaction session)
Rollback mapping changes for the session. -
Uses of Transaction in org.fcrepo.persistence.ocfl.impl
Methods in org.fcrepo.persistence.ocfl.impl with parameters of type Transaction Modifier and Type Method Description FedoraOcflMapping
DbFedoraToOcflObjectIndex. addMapping(Transaction transaction, FedoraId fedoraId, FedoraId fedoraRootId, String ocflId)
FedoraOcflMapping
FedoraToOcflObjectIndexMetrics. addMapping(Transaction session, FedoraId fedoraResourceIdentifier, FedoraId fedoraRootObjectIdentifier, String ocflObjectId)
void
DbFedoraToOcflObjectIndex. commit(Transaction transaction)
void
FedoraToOcflObjectIndexMetrics. commit(Transaction session)
FedoraOcflMapping
DbFedoraToOcflObjectIndex. getMapping(Transaction transaction, FedoraId fedoraId)
FedoraOcflMapping
FedoraToOcflObjectIndexMetrics. getMapping(Transaction session, FedoraId fedoraResourceIdentifier)
PersistentStorageSession
OcflPersistentSessionManager. getSession(Transaction transaction)
void
ReindexService. indexMembership(Transaction transaction)
Index all membership properties by querying for Direct containers, and then trying population of the membership index for each onevoid
ReindexService. indexOcflObject(Transaction tx, String ocflId)
void
DbFedoraToOcflObjectIndex. removeMapping(Transaction transaction, FedoraId fedoraId)
void
FedoraToOcflObjectIndexMetrics. removeMapping(Transaction session, FedoraId fedoraResourceIdentifier)
void
DbFedoraToOcflObjectIndex. rollback(Transaction transaction)
void
FedoraToOcflObjectIndexMetrics. rollback(Transaction session)
void
ReindexService. rollbackMembership(@NotNull Transaction tx)
Rollback changes in the transaction.Constructors in org.fcrepo.persistence.ocfl.impl with parameters of type Transaction Constructor Description OcflPersistentStorageSession(Transaction tx, FedoraToOcflObjectIndex fedoraOcflIndex, org.fcrepo.storage.ocfl.OcflObjectSessionFactory objectSessionFactory, ReindexService reindexService)
Constructor -
Uses of Transaction in org.fcrepo.search.api
Methods in org.fcrepo.search.api with parameters of type Transaction Modifier and Type Method Description void
SearchIndex. addUpdateIndex(Transaction transaction, ResourceHeaders resourceHeaders)
Adds or updates the index with the resource header information.void
SearchIndex. commitTransaction(Transaction tx)
Commit the changes made in the transaction.void
SearchIndex. removeFromIndex(Transaction transaction, FedoraId fedoraId)
Removes indexed fields associated with the specified Fedora IDvoid
SearchIndex. rollbackTransaction(Transaction tx)
Rollback the changes in the transaction. -
Uses of Transaction in org.fcrepo.search.impl
Methods in org.fcrepo.search.impl with parameters of type Transaction Modifier and Type Method Description void
DbSearchIndexImpl. addUpdateIndex(Transaction transaction, ResourceHeaders resourceHeaders)
void
SearchIndexMetrics. addUpdateIndex(Transaction transaction, ResourceHeaders resourceHeaders)
void
DbSearchIndexImpl. commitTransaction(Transaction tx)
void
SearchIndexMetrics. commitTransaction(Transaction tx)
void
DbSearchIndexImpl. removeFromIndex(Transaction transaction, FedoraId fedoraId)
void
SearchIndexMetrics. removeFromIndex(Transaction transaction, FedoraId fedoraId)
void
DbSearchIndexImpl. rollbackTransaction(Transaction tx)
void
SearchIndexMetrics. rollbackTransaction(Transaction tx)
-