Class AbstractRdfSourceOperationBuilder
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractRdfSourceOperationBuilder
-
- All Implemented Interfaces:
RdfSourceOperationBuilder
,ResourceOperationBuilder
- Direct Known Subclasses:
CreateRdfSourceOperationBuilderImpl
,UpdateRdfSourceOperationBuilder
public abstract class AbstractRdfSourceOperationBuilder extends Object implements RdfSourceOperationBuilder
Abstract builder for interacting with an Rdf Source Operation Builder- Author:
- bseeger
-
-
Field Summary
Fields Modifier and Type Field Description protected String
createdBy
protected Instant
createdDate
protected String
interactionModel
The interaction model of this resource, null in case of update.protected String
lastModifiedBy
protected Instant
lastModifiedDate
protected FedoraId
resourceId
String of the resource ID.protected ServerManagedPropsMode
serverManagedPropsMode
protected Transaction
transaction
protected RdfStream
tripleStream
Holds the stream of user's triples.protected String
userPrincipal
Principal of the user performing the operation
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRdfSourceOperationBuilder(Transaction transaction, FedoraId rescId, String model, ServerManagedPropsMode serverManagedPropsMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RdfSourceOperationBuilder
relaxedProperties(org.apache.jena.rdf.model.Model model)
Set the relaxed managed properties for this resource if the server is in relaxed mode.RdfSourceOperationBuilder
triples(RdfStream triples)
Set the triples for the operationRdfSourceOperationBuilder
userPrincipal(String userPrincipal)
Set the principal for the user performing the operation-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.kernel.api.operations.RdfSourceOperationBuilder
build
-
-
-
-
Field Detail
-
tripleStream
protected RdfStream tripleStream
Holds the stream of user's triples.
-
resourceId
protected final FedoraId resourceId
String of the resource ID.
-
interactionModel
protected final String interactionModel
The interaction model of this resource, null in case of update.
-
userPrincipal
protected String userPrincipal
Principal of the user performing the operation
-
lastModifiedBy
protected String lastModifiedBy
-
lastModifiedDate
protected Instant lastModifiedDate
-
createdDate
protected Instant createdDate
-
serverManagedPropsMode
protected ServerManagedPropsMode serverManagedPropsMode
-
transaction
protected Transaction transaction
-
-
Constructor Detail
-
AbstractRdfSourceOperationBuilder
protected AbstractRdfSourceOperationBuilder(Transaction transaction, FedoraId rescId, String model, ServerManagedPropsMode serverManagedPropsMode)
-
-
Method Detail
-
userPrincipal
public RdfSourceOperationBuilder userPrincipal(String userPrincipal)
Description copied from interface:ResourceOperationBuilder
Set the principal for the user performing the operation- Specified by:
userPrincipal
in interfaceRdfSourceOperationBuilder
- Specified by:
userPrincipal
in interfaceResourceOperationBuilder
- Parameters:
userPrincipal
- user principal- Returns:
- this builder
-
triples
public RdfSourceOperationBuilder triples(RdfStream triples)
Description copied from interface:RdfSourceOperationBuilder
Set the triples for the operation- Specified by:
triples
in interfaceRdfSourceOperationBuilder
- Parameters:
triples
- the resource's triples- Returns:
- this builder
-
relaxedProperties
public RdfSourceOperationBuilder relaxedProperties(org.apache.jena.rdf.model.Model model)
Description copied from interface:RdfSourceOperationBuilder
Set the relaxed managed properties for this resource if the server is in relaxed mode.- Specified by:
relaxedProperties
in interfaceRdfSourceOperationBuilder
- Parameters:
model
- rdf of the resource- Returns:
- this builder
-
-