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 protectedCreateRdfSourceOperationImpl(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 StringgetInteractionModel()Get the interaction model of the resource being createdFedoraIdgetParentId()Get the identifier of the parent of the resource being createdbooleanisArchivalGroup()A flag indicating whether or the new resource should be created as an archival group.voidsetArchivalGroup(boolean flag)voidsetParentId(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:CreateResourceOperationGet the interaction model of the resource being created- Specified by:
getInteractionModelin interfaceCreateResourceOperation- Returns:
- interaction model
-
isArchivalGroup
public boolean isArchivalGroup()
Description copied from interface:CreateResourceOperationA flag indicating whether or the new resource should be created as an archival group.- Specified by:
isArchivalGroupin interfaceCreateResourceOperation- Returns:
- true if archival group
-
getParentId
public FedoraId getParentId()
Description copied from interface:CreateResourceOperationGet the identifier of the parent of the resource being created- Specified by:
getParentIdin 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
-
-