Class CreateNonRdfSourceOperation
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractResourceOperation
-
- org.fcrepo.kernel.impl.operations.AbstractNonRdfSourceOperation
-
- org.fcrepo.kernel.impl.operations.CreateNonRdfSourceOperation
-
- All Implemented Interfaces:
CreateResourceOperation
,NonRdfSourceOperation
,ResourceOperation
public class CreateNonRdfSourceOperation extends AbstractNonRdfSourceOperation implements CreateResourceOperation
Operation for creating a new non-rdf source- Author:
- bbpennel
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CreateNonRdfSourceOperation(Transaction transaction, FedoraId rescId, InputStream content)
Constructor for internal binaries.protected
CreateNonRdfSourceOperation(Transaction transaction, FedoraId rescId, URI externalContentURI, String externalHandling)
Constructor for external content.
-
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
setParentId(FedoraId parentId)
-
Methods inherited from class org.fcrepo.kernel.impl.operations.AbstractNonRdfSourceOperation
getContent, getContentDigests, getContentSize, getContentStream, getContentUri, getDigests, getExternalHandling, getExternalHandlingType, getExternalHandlingURI, getFilename, getMimeType, setContent, setContentSize, setDigests, setExternalHandlingType, setExternalHandlingURI, setFilename, setMimeType
-
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.ResourceOperation
getResourceId, getTransaction, getUserPrincipal
-
-
-
-
Constructor Detail
-
CreateNonRdfSourceOperation
protected CreateNonRdfSourceOperation(Transaction transaction, FedoraId rescId, URI externalContentURI, String externalHandling)
Constructor for external content.- Parameters:
rescId
- the internal identifier.externalContentURI
- the URI of the external content.externalHandling
- the type of external content handling (REDIRECT, PROXY)
-
CreateNonRdfSourceOperation
protected CreateNonRdfSourceOperation(Transaction transaction, FedoraId rescId, InputStream content)
Constructor for internal binaries.- Parameters:
transaction
- the transactionrescId
- the internal identifier.content
- the stream of the content.
-
-
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
-
-