Class AbstractRelaxableResourceOperation
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractResourceOperation
-
- org.fcrepo.kernel.impl.operations.AbstractRelaxableResourceOperation
-
- All Implemented Interfaces:
RelaxableResourceOperation
,ResourceOperation
- Direct Known Subclasses:
AbstractRdfSourceOperation
,UpdateNonRdfSourceHeadersOperationImpl
public abstract class AbstractRelaxableResourceOperation extends AbstractResourceOperation implements RelaxableResourceOperation
Abstract operation for a relaxable resource operations- Author:
- bbpennel
-
-
Field Summary
Fields Modifier and Type Field Description protected String
createdBy
protected Instant
createdDate
protected String
lastModifiedBy
protected Instant
lastModifiedDate
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRelaxableResourceOperation(Transaction transaction, FedoraId rescId)
-
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 modifiedprotected 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
-
AbstractRelaxableResourceOperation
protected AbstractRelaxableResourceOperation(Transaction transaction, FedoraId rescId)
-
-
Method Detail
-
getLastModifiedBy
public String getLastModifiedBy()
Description copied from interface:RelaxableResourceOperation
Get last modified by- Specified by:
getLastModifiedBy
in interfaceRelaxableResourceOperation
- Returns:
- user that last modified the resource
-
getCreatedBy
public String getCreatedBy()
Description copied from interface:RelaxableResourceOperation
Get created by- Specified by:
getCreatedBy
in interfaceRelaxableResourceOperation
- Returns:
- user that created the resource
-
getLastModifiedDate
public Instant getLastModifiedDate()
Description copied from interface:RelaxableResourceOperation
Get the timestamp the resource was last modified- Specified by:
getLastModifiedDate
in interfaceRelaxableResourceOperation
- Returns:
- timestamp
-
getCreatedDate
public Instant getCreatedDate()
Description copied from interface:RelaxableResourceOperation
Get the timestamp the resource was created- Specified by:
getCreatedDate
in interfaceRelaxableResourceOperation
- 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
-
-