Class UpdateNonRdfSourceHeadersOperationImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.operations.AbstractResourceOperation
-
- org.fcrepo.kernel.impl.operations.AbstractRelaxableResourceOperation
-
- org.fcrepo.kernel.impl.operations.UpdateNonRdfSourceHeadersOperationImpl
-
- All Implemented Interfaces:
NonRdfSourceOperation
,RelaxableResourceOperation
,ResourceOperation
,UpdateNonRdfSourceHeadersOperation
public class UpdateNonRdfSourceHeadersOperationImpl extends AbstractRelaxableResourceOperation implements UpdateNonRdfSourceHeadersOperation
Operation to update the headers of a non-rdf resource- Author:
- bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.operations.AbstractRelaxableResourceOperation
createdBy, createdDate, lastModifiedBy, lastModifiedDate
-
-
Constructor Summary
Constructors Constructor Description UpdateNonRdfSourceHeadersOperationImpl(Transaction transaction, FedoraId resourceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<URI>
getContentDigests()
long
getContentSize()
InputStream
getContentStream()
URI
getContentUri()
String
getExternalHandling()
String
getFilename()
Return the file name for the binary contentString
getMimeType()
protected void
setFilename(String filename)
protected void
setMimeType(String mimeType)
-
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.RelaxableResourceOperation
getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate
-
Methods inherited from interface org.fcrepo.kernel.api.operations.ResourceOperation
getResourceId, getTransaction, getUserPrincipal
-
Methods inherited from interface org.fcrepo.kernel.api.operations.UpdateNonRdfSourceHeadersOperation
getType
-
-
-
-
Constructor Detail
-
UpdateNonRdfSourceHeadersOperationImpl
public UpdateNonRdfSourceHeadersOperationImpl(Transaction transaction, FedoraId resourceId)
-
-
Method Detail
-
getContentStream
public InputStream getContentStream()
- Specified by:
getContentStream
in interfaceNonRdfSourceOperation
- Returns:
- the content stream for a local binary
-
getExternalHandling
public String getExternalHandling()
- Specified by:
getExternalHandling
in interfaceNonRdfSourceOperation
- Returns:
- the handling method for external content in this resource
-
getContentUri
public URI getContentUri()
- Specified by:
getContentUri
in interfaceNonRdfSourceOperation
- Returns:
- the URI for external content in this resource
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceNonRdfSourceOperation
- Returns:
- The MimeType of content associated with this resource.
-
getFilename
public String getFilename()
Description copied from interface:NonRdfSourceOperation
Return the file name for the binary content- Specified by:
getFilename
in interfaceNonRdfSourceOperation
- Returns:
- original file name for the binary content, or the object's id.
-
getContentDigests
public Collection<URI> getContentDigests()
- Specified by:
getContentDigests
in interfaceNonRdfSourceOperation
- Returns:
- the URIs of digests for the content in this resource
-
getContentSize
public long getContentSize()
- Specified by:
getContentSize
in interfaceNonRdfSourceOperation
- Returns:
- The size in bytes of content associated with this resource.
-
setMimeType
protected void setMimeType(String mimeType)
- Parameters:
mimeType
- the mimeType to set
-
setFilename
protected void setFilename(String filename)
- Parameters:
filename
- the filename to set
-
-