@Repository public class EditorImageRepositoryImpl extends CommonRepositoryImpl implements EditorImageRepository
CommonRepositoryImpl,
EditorImageRepositoryATTACHED_IMAGE_URL_PREFIX, ATTACHED_IMAGES_PROPERTY, DOCUMENT_URL_SUFFIXDOCUMENT_URL_PREFIX, 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 |
copyAttachedImage(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String sourcePath,
String targetPath)
Copy 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,
int index,
String fileName)
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.
|
getDocument, searchDocumentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocument, searchDocumentspublic 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, int index, String fileName)
EditorImageRepositorygetAttachedImageUrl in interface EditorImageRepositoryportalControllerContext - portal controller contextindex - attached image indexfileName - attached image file namepublic 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 void copyAttachedImage(org.osivia.portal.api.context.PortalControllerContext portalControllerContext,
String sourcePath,
String targetPath)
EditorImageRepositorycopyAttachedImage in interface EditorImageRepositoryportalControllerContext - portal controller contextsourcePath - source document pathtargetPath - target document pathpublic 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.