Class AbstractRdfSourceOperation
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractResourceOperation
-
- org.fcrepo.kernel.impl.operations.AbstractRdfSourceOperation
-
- All Implemented Interfaces:
RdfSourceOperation
,ResourceOperation
- Direct Known Subclasses:
CreateRdfSourceOperationImpl
,UpdateRdfSourceOperation
public abstract class AbstractRdfSourceOperation extends AbstractResourceOperation implements RdfSourceOperation
Abstract operation for interacting with an rdf source- Author:
- bbpennel
-
-
Field Summary
Fields Modifier and Type Field Description protected String
createdBy
protected Instant
createdDate
protected String
lastModifiedBy
protected Instant
lastModifiedDate
protected RdfStream
triples
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRdfSourceOperation(Transaction transaction, FedoraId rescId, RdfStream triples)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCreatedBy()
Get created byInstant
getCreatedDate()
Get the timestamp the resource was createdString
getLastModifiedBy()
Get last modified byInstant
getLastModifiedDate()
Get the timestamp the resource was last modifiedRdfStream
getTriples()
Get the incoming user space triples for the resourceprotected void
setCreatedBy(String createdBy)
protected void
setCreatedDate(Instant createdDate)
protected void
setLastModifiedBy(String lastModifiedBy)
protected void
setLastModifiedDate(Instant lastModifiedDate)
-
Methods inherited from class org.fcrepo.kernel.impl.operations.AbstractResourceOperation
getResourceId, getTransaction, getUserPrincipal, setUserPrincipal
-
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.ResourceOperation
getResourceId, getTransaction, getType, getUserPrincipal
-
-
-
-
Field Detail
-
lastModifiedBy
protected String lastModifiedBy
-
lastModifiedDate
protected Instant lastModifiedDate
-
createdDate
protected Instant createdDate
-
-
Constructor Detail
-
AbstractRdfSourceOperation
protected AbstractRdfSourceOperation(Transaction transaction, FedoraId rescId, RdfStream triples)
-
-
Method Detail
-
getTriples
public RdfStream getTriples()
Description copied from interface:RdfSourceOperation
Get the incoming user space triples for the resource- Specified by:
getTriples
in interfaceRdfSourceOperation
- Returns:
- triples
-
getLastModifiedBy
public String getLastModifiedBy()
Description copied from interface:RdfSourceOperation
Get last modified by- Specified by:
getLastModifiedBy
in interfaceRdfSourceOperation
- Returns:
- user that last modified the resource
-
getCreatedBy
public String getCreatedBy()
Description copied from interface:RdfSourceOperation
Get created by- Specified by:
getCreatedBy
in interfaceRdfSourceOperation
- Returns:
- user that created the resource
-
getLastModifiedDate
public Instant getLastModifiedDate()
Description copied from interface:RdfSourceOperation
Get the timestamp the resource was last modified- Specified by:
getLastModifiedDate
in interfaceRdfSourceOperation
- Returns:
- timestamp
-
getCreatedDate
public Instant getCreatedDate()
Description copied from interface:RdfSourceOperation
Get the timestamp the resource was created- Specified by:
getCreatedDate
in interfaceRdfSourceOperation
- Returns:
- timestamp
-
setLastModifiedBy
protected void setLastModifiedBy(String lastModifiedBy)
- Parameters:
lastModifiedBy
- the lastModifiedBy to set
-
setCreatedBy
protected void setCreatedBy(String createdBy)
- Parameters:
createdBy
- the createdBy to set
-
setLastModifiedDate
protected void setLastModifiedDate(Instant lastModifiedDate)
- Parameters:
lastModifiedDate
- the lastModifiedDate to set
-
setCreatedDate
protected void setCreatedDate(Instant createdDate)
- Parameters:
createdDate
- the createdDate to set
-
-