Class MultiUploadServiceImpl
java.lang.Object
ch.tocco.nice2.dms.impl.upload.MultiUploadServiceImpl
- All Implemented Interfaces:
MultiUploadService
-
Nested Class Summary
Nested classes/interfaces inherited from interface MultiUploadService
MultiUploadService.BinaryResource, MultiUploadService.UploadItem -
Constructor Summary
ConstructorsConstructorDescriptionMultiUploadServiceImpl(Context context, UploadService uploadService, EntityDefaultValueService entityDefaultValueService, ContentTreeService contentTreeService, BinaryFactory binaryFactory, BinaryHashingService binaryHashingService, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionReturns the resource at the given uri as a `Binary` value associated with its name.voidsave(String parentUri, MultiUploadService.UploadItem[] items)
-
Constructor Details
-
MultiUploadServiceImpl
public MultiUploadServiceImpl(Context context, UploadService uploadService, EntityDefaultValueService entityDefaultValueService, ContentTreeService contentTreeService, BinaryFactory binaryFactory, BinaryHashingService binaryHashingService, org.slf4j.Logger log)
-
-
Method Details
-
save
public void save(String parentUri, MultiUploadService.UploadItem[] items) throws UploadServiceException, PersistException, InterruptedException, IOException, UnresolvableUriException, ContentException - Specified by:
savein interfaceMultiUploadService- Throws:
UploadServiceExceptionPersistExceptionInterruptedExceptionIOExceptionUnresolvableUriExceptionContentException
-
getBinary
Description copied from interface:MultiUploadServiceReturns the resource at the given uri as a `Binary` value associated with its name. The uri can be * an entity uri of form `entity://Resource/58` that denotes a concrete `Resource` entity * an uri into the local filesystem as provided by uploads (like `tmp:/bla/someid`) The resource with the given id is expected to exist. An exception is thrown if no resource/binary can be found.- Specified by:
getBinaryin interfaceMultiUploadService- Throws:
PersistException
-