@Repository public class EditorImageRepositoryImpl extends CommonRepositoryImpl implements EditorImageRepository
CommonRepositoryImpl,
EditorImageRepositoryATTACHED_IMAGE_URL_PREFIX, ATTACHED_IMAGES_PROPERTY, DOCUMENT_URL_PREFIX, DOCUMENT_URL_SUFFIX, WEB_ID_PROPERTY| Constructor and Description |
|---|
EditorImageRepositoryImpl()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachedImage(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String path,
File temporaryFile,
String fileName,
String contentType)
Add attached image.
|
void |
deleteAttachedImage(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String path,
int index)
Delete attached image.
|
org.osivia.portal.core.cms.CMSBinaryContent |
getAttachedImagePreviewBinaryContent(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
int index)
Get attached image preview binary content.
|
SortedSet<AttachedImage> |
getAttachedImages(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String path)
Get attached images.
|
String |
getAttachedImageUrl(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
AttachedImage attachedImage)
Get attached image URL.
|
org.osivia.portal.core.cms.CMSBinaryContent |
getImageDocumentPreviewBinaryContent(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String webId,
String content)
Get image document preview binary content.
|
String |
getImageDocumentUrl(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String path)
Get image document URL.
|
List<org.nuxeo.ecm.automation.client.model.Document> |
search(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String basePath,
String filter,
SearchScope scope)
Search image documents.
|
getDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentpublic SortedSet<AttachedImage> getAttachedImages(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, String path)
EditorImageRepositorygetAttachedImages in interface EditorImageRepositoryportalControllerContext - portal controller contextpath - document pathpublic void addAttachedImage(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String path,
File temporaryFile,
String fileName,
String contentType)
EditorImageRepositoryaddAttachedImage in interface EditorImageRepositoryportalControllerContext - portal controller contextpath - document pathtemporaryFile - attached image temporary filefileName - attached image file namecontentType - attached image content typepublic String getAttachedImageUrl(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, AttachedImage attachedImage)
EditorImageRepositorygetAttachedImageUrl in interface EditorImageRepositoryportalControllerContext - portal controller contextattachedImage - attached imagepublic void deleteAttachedImage(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String path,
int index)
EditorImageRepositorydeleteAttachedImage in interface EditorImageRepositoryportalControllerContext - portal controller contextpath - document pathindex - attached image indexpublic List<org.nuxeo.ecm.automation.client.model.Document> search(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, String basePath, String filter, SearchScope scope)
EditorImageRepositorysearch in interface EditorImageRepositoryportalControllerContext - portal controller contextbasePath - base pathfilter - search filterscope - search scopepublic String getImageDocumentUrl(org.osivia.portal.api.context.PortalControllerContext portalControllerContext, String path)
EditorImageRepositorygetImageDocumentUrl in interface EditorImageRepositoryportalControllerContext - portal controller contextpath - document pathpublic org.osivia.portal.core.cms.CMSBinaryContent getImageDocumentPreviewBinaryContent(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String webId,
String content)
EditorImageRepositorygetImageDocumentPreviewBinaryContent in interface EditorImageRepositoryportalControllerContext - portal controller contextwebId - image webIdcontent - image contentpublic org.osivia.portal.core.cms.CMSBinaryContent getAttachedImagePreviewBinaryContent(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
int index)
EditorImageRepositorygetAttachedImagePreviewBinaryContent in interface EditorImageRepositoryportalControllerContext - portal controller contextindex - attached image indexCopyright © 2021 OSIVIA. All rights reserved.