Package org.fcrepo.kernel.impl.services
Class ReplaceBinariesServiceImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.services.AbstractService
-
- org.fcrepo.kernel.impl.services.ReplaceBinariesServiceImpl
-
- All Implemented Interfaces:
ReplaceBinariesService
@Component public class ReplaceBinariesServiceImpl extends AbstractService implements ReplaceBinariesService
Implementation of a service for replacing/updating binary resources- Author:
- bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.services.AbstractService
containmentIndex, fedoraPropsConfig, membershipService, referenceService, searchIndex, userTypesCache
-
-
Constructor Summary
Constructors Constructor Description ReplaceBinariesServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
perform(Transaction tx, String userPrincipal, FedoraId fedoraId, String filename, String contentType, Collection<URI> digests, InputStream contentBody, long contentSize, ExternalContent externalContent)
Replace an existing binary.-
Methods inherited from class org.fcrepo.kernel.impl.services.AbstractService
checkAclLinkHeader, determineInteractionModel, ensureValidACLAuthorization, ensureValidDirectContainer, lockArchivalGroupResource, lockParent, recordEvent, updateReferences
-
-
-
-
Constructor Detail
-
ReplaceBinariesServiceImpl
public ReplaceBinariesServiceImpl()
-
-
Method Detail
-
perform
public void perform(Transaction tx, String userPrincipal, FedoraId fedoraId, String filename, String contentType, Collection<URI> digests, InputStream contentBody, long contentSize, ExternalContent externalContent)
Description copied from interface:ReplaceBinariesService
Replace an existing binary.- Specified by:
perform
in interfaceReplaceBinariesService
- Parameters:
tx
- The transaction for the request.userPrincipal
- the user performing the servicefedoraId
- The internal identifier of the parent.filename
- The filename of the binary.contentType
- The content-type header or null if none.digests
- The binary digest or null if none.contentBody
- The request body or null if none.contentSize
- The binary size.externalContent
- The external content handler or null if none.
-
-