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:
org.fcrepo.kernel.api.operations.CreateResourceOperation,org.fcrepo.kernel.api.operations.NonRdfSourceOperation,org.fcrepo.kernel.api.operations.ResourceOperation
public class CreateNonRdfSourceOperation extends AbstractNonRdfSourceOperation implements org.fcrepo.kernel.api.operations.CreateResourceOperation
Operation for creating a new non-rdf source- Author:
- bbpennel
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCreateNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, InputStream content)Constructor for internal binaries.protectedCreateNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId rescId, URI externalContentURI, String externalHandling)Constructor for external content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInteractionModel()org.fcrepo.kernel.api.identifiers.FedoraIdgetParentId()booleanisArchivalGroup()voidsetParentId(org.fcrepo.kernel.api.identifiers.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
-
-
-
-
Constructor Detail
-
CreateNonRdfSourceOperation
protected CreateNonRdfSourceOperation(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.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(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.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()
- Specified by:
getInteractionModelin interfaceorg.fcrepo.kernel.api.operations.CreateResourceOperation
-
isArchivalGroup
public boolean isArchivalGroup()
- Specified by:
isArchivalGroupin interfaceorg.fcrepo.kernel.api.operations.CreateResourceOperation
-
getParentId
public org.fcrepo.kernel.api.identifiers.FedoraId getParentId()
- Specified by:
getParentIdin interfaceorg.fcrepo.kernel.api.operations.CreateResourceOperation
-
setParentId
public void setParentId(org.fcrepo.kernel.api.identifiers.FedoraId parentId)
- Parameters:
parentId- the parentId to set
-
-