Class AbstractResourceOperation
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractResourceOperation
-
- All Implemented Interfaces:
ResourceOperation
- Direct Known Subclasses:
AbstractNonRdfSourceOperation
,AbstractRelaxableResourceOperation
,CreateVersionResourceOperationImpl
,DeleteResourceOperation
,PurgeResourceOperation
,ReferenceOperation
,ReindexResourceOperationImpl
public abstract class AbstractResourceOperation extends Object implements ResourceOperation
Abstract operation for interacting with a resource- Author:
- bbpennel
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractResourceOperation(Transaction transaction, FedoraId rescId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FedoraId
getResourceId()
Id of the resourceTransaction
getTransaction()
The transaction the operation is in.String
getUserPrincipal()
Returns the user principal performing this operationvoid
setUserPrincipal(String userPrincipal)
-
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
getType
-
-
-
-
Constructor Detail
-
AbstractResourceOperation
protected AbstractResourceOperation(Transaction transaction, FedoraId rescId)
-
-
Method Detail
-
getResourceId
public FedoraId getResourceId()
Description copied from interface:ResourceOperation
Id of the resource- Specified by:
getResourceId
in interfaceResourceOperation
- Returns:
- the ID.
-
getUserPrincipal
public String getUserPrincipal()
Description copied from interface:ResourceOperation
Returns the user principal performing this operation- Specified by:
getUserPrincipal
in interfaceResourceOperation
- Returns:
- the user principal performing this operation
-
getTransaction
public Transaction getTransaction()
Description copied from interface:ResourceOperation
The transaction the operation is in.- Specified by:
getTransaction
in interfaceResourceOperation
- Returns:
- the transaction.
-
setUserPrincipal
public void setUserPrincipal(String userPrincipal)
- Parameters:
userPrincipal
- the userPrincipal to set
-
-