Class CreateRdfSourceOperationImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractResourceOperation
-
- org.fcrepo.kernel.impl.operations.AbstractRelaxableResourceOperation
-
- org.fcrepo.kernel.impl.operations.AbstractRdfSourceOperation
-
- org.fcrepo.kernel.impl.operations.CreateRdfSourceOperationImpl
-
- All Implemented Interfaces:
CreateRdfSourceOperation
,CreateResourceOperation
,RdfSourceOperation
,RelaxableResourceOperation
,ResourceOperation
public class CreateRdfSourceOperationImpl extends AbstractRdfSourceOperation implements CreateRdfSourceOperation
Operation to create an RDF source.- Author:
- bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.operations.AbstractRdfSourceOperation
triples
-
Fields inherited from class org.fcrepo.kernel.impl.operations.AbstractRelaxableResourceOperation
createdBy, createdDate, lastModifiedBy, lastModifiedDate
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CreateRdfSourceOperationImpl(Transaction transaction, FedoraId rescId, String interactionModel, RdfStream triples)
Constructor for creation operation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInteractionModel()
Get the interaction model of the resource being createdFedoraId
getParentId()
Get the identifier of the parent of the resource being createdboolean
isArchivalGroup()
A flag indicating whether or the new resource should be created as an archival group.void
setArchivalGroup(boolean flag)
void
setParentId(FedoraId parentId)
-
Methods inherited from class org.fcrepo.kernel.impl.operations.AbstractRdfSourceOperation
getTriples
-
Methods inherited from class org.fcrepo.kernel.impl.operations.AbstractRelaxableResourceOperation
getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDate
-
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.CreateResourceOperation
getType
-
Methods inherited from interface org.fcrepo.kernel.api.operations.RdfSourceOperation
getTriples
-
Methods inherited from interface org.fcrepo.kernel.api.operations.RelaxableResourceOperation
getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate
-
Methods inherited from interface org.fcrepo.kernel.api.operations.ResourceOperation
getResourceId, getTransaction, getUserPrincipal
-
-
-
-
Constructor Detail
-
CreateRdfSourceOperationImpl
protected CreateRdfSourceOperationImpl(Transaction transaction, FedoraId rescId, String interactionModel, RdfStream triples)
Constructor for creation operation- Parameters:
transaction
- the transactionrescId
- the internal identifier.interactionModel
- interaction model for the resourcetriples
- triples stream for the resource
-
-
Method Detail
-
getInteractionModel
public String getInteractionModel()
Description copied from interface:CreateResourceOperation
Get the interaction model of the resource being created- Specified by:
getInteractionModel
in interfaceCreateResourceOperation
- Returns:
- interaction model
-
isArchivalGroup
public boolean isArchivalGroup()
Description copied from interface:CreateResourceOperation
A flag indicating whether or the new resource should be created as an archival group.- Specified by:
isArchivalGroup
in interfaceCreateResourceOperation
- Returns:
- true if archival group
-
getParentId
public FedoraId getParentId()
Description copied from interface:CreateResourceOperation
Get the identifier of the parent of the resource being created- Specified by:
getParentId
in interfaceCreateResourceOperation
- Returns:
- identifer of parent
-
setParentId
public void setParentId(FedoraId parentId)
- Parameters:
parentId
- the parentId to set
-
setArchivalGroup
public void setArchivalGroup(boolean flag)
- Parameters:
flag
- flag indicating whether resource is an Archival Group
-
-