public class AttachmentServiceImpl extends AbstractAgrosystService implements AttachmentService
AttachmentService.| Modifier and Type | Field and Description |
|---|---|
protected AttachmentContentTopiaDao |
attachmentContentDao |
protected AttachmentMetadataTopiaDao |
attachmentMetadataDao |
protected BusinessAuthorizationService |
authorizationService |
protected AgrosystUserTopiaDao |
userDao |
context__PARANAMER_DATA| Constructor and Description |
|---|
AttachmentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
AttachmentMetadata |
addAttachment(String objectReferenceId,
InputStream inputStream,
String fileName,
String fileContentType) |
void |
delete(String attachmentMetadataId) |
InputStream |
getAttachmentContent(String attachmentMetadataId) |
AttachmentMetadata |
getAttachmentMetadata(String attachmentTopiaId) |
List<AttachmentMetadata> |
getAttachmentMetadatas(String objectReferenceId) |
long |
getAttachmentMetadatasCount(String objectReferenceId) |
void |
setAttachmentContentDao(AttachmentContentTopiaDao attachmentContentDao) |
void |
setAttachmentMetadataDao(AttachmentMetadataTopiaDao attachmentMetadataDao) |
void |
setAuthorizationService(BusinessAuthorizationService authorizationService) |
void |
setUserDao(AgrosystUserTopiaDao userDao) |
easyBind, easyBind, easyBindNoDelete, finalize, getConfig, getContext, getPersistenceContext, getSecurityContext, getSecurityContextAsUser, getTransaction, newInstance, setContextprotected BusinessAuthorizationService authorizationService
protected AgrosystUserTopiaDao userDao
protected AttachmentMetadataTopiaDao attachmentMetadataDao
protected AttachmentContentTopiaDao attachmentContentDao
public void setAuthorizationService(BusinessAuthorizationService authorizationService)
public void setUserDao(AgrosystUserTopiaDao userDao)
public void setAttachmentMetadataDao(AttachmentMetadataTopiaDao attachmentMetadataDao)
public void setAttachmentContentDao(AttachmentContentTopiaDao attachmentContentDao)
public AttachmentMetadata addAttachment(String objectReferenceId, InputStream inputStream, String fileName, String fileContentType)
addAttachment in interface AttachmentServicepublic void delete(String attachmentMetadataId)
delete in interface AttachmentServicepublic InputStream getAttachmentContent(String attachmentMetadataId)
getAttachmentContent in interface AttachmentServicepublic List<AttachmentMetadata> getAttachmentMetadatas(String objectReferenceId)
getAttachmentMetadatas in interface AttachmentServicepublic long getAttachmentMetadatasCount(String objectReferenceId)
getAttachmentMetadatasCount in interface AttachmentServicepublic AttachmentMetadata getAttachmentMetadata(String attachmentTopiaId)
getAttachmentMetadata in interface AttachmentServiceCopyright © 2013–2015 Inra. All rights reserved.