@Repository public class DocumentEditionAttachmentsRepositoryImpl extends DocumentEditionCommonRepositoryImpl<Attachments> implements DocumentEditionAttachmentsRepository
DocumentEditionCommonRepositoryImpl,
Attachments,
DocumentEditionAttachmentsRepository| Modifier and Type | Field and Description |
|---|---|
protected static String |
ATTACHMENTS_PROPERTY
Attachements Nuxeo document property.
|
| Constructor and Description |
|---|
DocumentEditionAttachmentsRepositoryImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.nuxeo.ecm.automation.client.model.Blob |
convert(UploadTemporaryFile temporaryFile) |
void |
customizeProperties(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
Attachments attachments,
boolean creation,
org.nuxeo.ecm.automation.client.model.PropertyMap properties,
Map<String,List<org.nuxeo.ecm.automation.client.model.Blob>> binaries)
Customize attachments properties.
|
void |
deleteAttachment(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
Attachments attachments,
String value)
Delete document attachment.
|
Attachments |
get(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
org.nuxeo.ecm.automation.client.model.Document document)
Get document attachments.
|
void |
restoreAttachment(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
Attachments attachments,
String value)
Restore document attachment.
|
void |
uploadAttachments(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
Attachments attachments)
Upload document attachments.
|
void |
validate(Attachments attachments,
org.springframework.validation.Errors errors)
Validate document attachments.
|
createTemporaryFile, deleteTemporaryFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTemporaryFile, deleteTemporaryFileprotected static final String ATTACHMENTS_PROPERTY
public DocumentEditionAttachmentsRepositoryImpl()
public Attachments get(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, org.nuxeo.ecm.automation.client.model.Document document) throws javax.portlet.PortletException
DocumentEditionAttachmentsRepositoryget in interface DocumentEditionAttachmentsRepositoryget in interface DocumentEditionCommonRepository<Attachments>portalControllerContext - portal controller contextdocument - related Nuxeo documentjavax.portlet.PortletExceptionpublic void uploadAttachments(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
Attachments attachments)
throws javax.portlet.PortletException,
IOException
DocumentEditionAttachmentsRepositoryuploadAttachments in interface DocumentEditionAttachmentsRepositoryportalControllerContext - portal controller contextattachments - document attachmentsjavax.portlet.PortletExceptionIOExceptionpublic void deleteAttachment(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
Attachments attachments,
String value)
throws javax.portlet.PortletException,
IOException
DocumentEditionAttachmentsRepositorydeleteAttachment in interface DocumentEditionAttachmentsRepositoryportalControllerContext - portal controller contextattachments - document attachmentsvalue - parameter valuejavax.portlet.PortletExceptionIOExceptionpublic void restoreAttachment(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
Attachments attachments,
String value)
throws javax.portlet.PortletException,
IOException
DocumentEditionAttachmentsRepositoryrestoreAttachment in interface DocumentEditionAttachmentsRepositoryportalControllerContext - portal controller contextattachments - document attachmentsvalue - parameter valuejavax.portlet.PortletExceptionIOExceptionpublic void validate(Attachments attachments, org.springframework.validation.Errors errors)
DocumentEditionAttachmentsRepositoryvalidate in interface DocumentEditionAttachmentsRepositoryvalidate in interface DocumentEditionCommonRepository<Attachments>attachments - document attachmentserrors - validation errorspublic void customizeProperties(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
Attachments attachments,
boolean creation,
org.nuxeo.ecm.automation.client.model.PropertyMap properties,
Map<String,List<org.nuxeo.ecm.automation.client.model.Blob>> binaries)
throws javax.portlet.PortletException
DocumentEditionAttachmentsRepositorycustomizeProperties in interface DocumentEditionAttachmentsRepositorycustomizeProperties in interface DocumentEditionCommonRepository<Attachments>portalControllerContext - portal controller contextattachments - document attachmentscreation - document creation indicatorproperties - document propertiesbinaries - document binariesjavax.portlet.PortletExceptionprotected org.nuxeo.ecm.automation.client.model.Blob convert(UploadTemporaryFile temporaryFile)
Copyright © 2022 OSIVIA. All rights reserved.