Package ch.tocco.nice2.dms.impl.upload
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 ch.tocco.nice2.dms.api.upload.MultiUploadService
MultiUploadService.BinaryResource, MultiUploadService.UploadItem
-
Constructor Summary
ConstructorDescriptionMultiUploadServiceImpl
(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.void
save
(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:
save
in interfaceMultiUploadService
- Throws:
UploadServiceException
PersistException
InterruptedException
IOException
UnresolvableUriException
ContentException
-
getBinary
Description copied from interface:MultiUploadService
Returns 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:
getBinary
in interfaceMultiUploadService
- Throws:
PersistException
-