public class ServerAttachmentPersistenceService<T extends org.opensingular.form.persistence.entity.AttachmentEntity,C extends org.opensingular.form.persistence.entity.AttachmentContentEntity> extends ServerAbstractAttachmentPersistenceService<T,C>
| Modifier and Type | Field and Description |
|---|---|
protected org.opensingular.form.type.core.attachment.helper.IAttachmentPersistenceHelper |
attachmentPersistenceHelper |
protected IFormAttachmentService |
formAttachmentService |
protected org.opensingular.form.service.IFormService |
formService |
| Constructor and Description |
|---|
ServerAttachmentPersistenceService() |
| Modifier and Type | Method and Description |
|---|---|
org.opensingular.form.type.core.attachment.AttachmentCopyContext<org.opensingular.form.persistence.dto.AttachmentRef> |
copy(org.opensingular.form.type.core.attachment.IAttachmentRef ref,
org.opensingular.form.document.SDocument sdoc)
Faz o vinculo entre anexo persistido e formversionentity
|
void |
deleteAttachment(String id,
org.opensingular.form.document.SDocument document)
|
org.opensingular.form.type.core.attachment.helper.IAttachmentPersistenceHelper |
getAttachmentPersistenceHelper() |
addAttachment@Inject protected transient org.opensingular.form.service.IFormService formService
@Inject protected transient IFormAttachmentService formAttachmentService
@Inject protected transient org.opensingular.form.type.core.attachment.helper.IAttachmentPersistenceHelper attachmentPersistenceHelper
public org.opensingular.form.type.core.attachment.AttachmentCopyContext<org.opensingular.form.persistence.dto.AttachmentRef> copy(org.opensingular.form.type.core.attachment.IAttachmentRef ref,
org.opensingular.form.document.SDocument sdoc)
copy in interface org.opensingular.form.type.core.attachment.IAttachmentPersistenceHandler<org.opensingular.form.persistence.dto.AttachmentRef>copy in class org.opensingular.form.persistence.service.AttachmentPersistenceService<T extends org.opensingular.form.persistence.entity.AttachmentEntity,C extends org.opensingular.form.persistence.entity.AttachmentContentEntity>ref - referencia a um anexo ja persistido no banco de dadossdoc - documento atual do formulariopublic void deleteAttachment(String id, org.opensingular.form.document.SDocument document)
FormAttachmentService.deleteFormAttachmentEntity(org.opensingular.form.persistence.entity.AttachmentEntity, org.opensingular.form.persistence.entity.FormVersionEntity)deleteAttachment in interface org.opensingular.form.type.core.attachment.IAttachmentPersistenceHandler<org.opensingular.form.persistence.dto.AttachmentRef>deleteAttachment in class org.opensingular.form.persistence.service.AttachmentPersistenceService<T extends org.opensingular.form.persistence.entity.AttachmentEntity,C extends org.opensingular.form.persistence.entity.AttachmentContentEntity>id - id do anexodocument - o documento atualpublic org.opensingular.form.type.core.attachment.helper.IAttachmentPersistenceHelper getAttachmentPersistenceHelper()
Copyright © 2020. All rights reserved.