public interface ThumbnailService
| Modifier and Type | Field and Description |
|---|---|
static String |
BIG_SIZE |
static String |
EXO_THUMBNAIL |
static String |
EXO_THUMBNAILS |
static String |
EXO_THUMBNAILS_FOLDER |
static String |
HIDDENABLE_NODETYPE |
static String |
MEDIUM_SIZE |
static String |
SMALL_SIZE |
static String |
THUMBNAIL_LAST_MODIFIED |
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Add Thumbnail Plugin
|
void |
addThumbnailImage(javax.jcr.Node node,
BufferedImage image,
String propertyName)
Add a thumbnail image to node
|
javax.jcr.Node |
addThumbnailNode(javax.jcr.Node node)
Create thumbnail node
|
void |
copyThumbnailNode(javax.jcr.Node srcThumbnailNode,
javax.jcr.Node destNode)
Copy thumbnail node to destination node after moving or copy/paste.
|
void |
createSpecifiedThumbnail(javax.jcr.Node node,
BufferedImage image,
String propertyName)
Create a thumbnail for node with size specified
|
void |
createThumbnailImage(javax.jcr.Node node,
BufferedImage image,
String mimeType)
Create thumbnail for node with default size:
Small size, medium size, big size
|
List<javax.jcr.Node> |
getAllFileInNode(javax.jcr.Node node)
Return all nt:file node at current node
|
List<org.exoplatform.container.component.ComponentPlugin> |
getComponentPlugins()
Return a list of Thumbnail plugin
|
List<javax.jcr.Node> |
getFileNodesByType(javax.jcr.Node node,
String jcrMimeType)
Return the list of node in the current node with mimetype specified
|
List<javax.jcr.Node> |
getFlowImages(javax.jcr.Node node)
Return a list image in node
|
List<String> |
getMimeTypes()
Get mime types which allow to view
|
InputStream |
getThumbnailImage(javax.jcr.Node node,
String thumbnailType)
Return the data of thumbnail with specified type
|
javax.jcr.Node |
getThumbnailNode(javax.jcr.Node node)
Get thumbnail node
|
boolean |
isEnableThumbnail()
Return the status of node is enable thumbnail or not
|
void |
processRemoveThumbnail(javax.jcr.Node showingNode)
Process to remove thumbnail
|
void |
processThumbnailList(List<javax.jcr.Node> listNodes,
String type)
Process thumbnail with list nodes
|
void |
setEnableThumbnail(boolean isEnable)
To setup status of node is allow thumbnail or not
|
static final String EXO_THUMBNAILS
static final String EXO_THUMBNAIL
static final String SMALL_SIZE
static final String MEDIUM_SIZE
static final String BIG_SIZE
static final String THUMBNAIL_LAST_MODIFIED
static final String EXO_THUMBNAILS_FOLDER
static final String HIDDENABLE_NODETYPE
List<javax.jcr.Node> getAllFileInNode(javax.jcr.Node node) throws javax.jcr.RepositoryException
node - Current nodejavax.jcr.RepositoryExceptionList<javax.jcr.Node> getFileNodesByType(javax.jcr.Node node, String jcrMimeType) throws Exception
node - Current nodejcrMimeType - Mime type of node will be retrieveExceptionList<javax.jcr.Node> getFlowImages(javax.jcr.Node node) throws Exception
node - Current nodeExceptionvoid setEnableThumbnail(boolean isEnable)
isEnable - boolean isEnableThumbnail()
void createThumbnailImage(javax.jcr.Node node,
BufferedImage image,
String mimeType)
throws Exception
node - Current node which will be added thumbnailimage - BufferedImage which contain the original imagemimeType - File typeExceptionInputStream getThumbnailImage(javax.jcr.Node node, String thumbnailType) throws Exception
node - Current node which will be added thumbnailthumbnailType - Type of thumbnail will be return (small, medium, big or specified if has)Exceptionjavax.jcr.Node addThumbnailNode(javax.jcr.Node node)
throws Exception
node - Current node which included thumbnailExceptionjavax.jcr.Node getThumbnailNode(javax.jcr.Node node)
throws Exception
node - Exceptionvoid createSpecifiedThumbnail(javax.jcr.Node node,
BufferedImage image,
String propertyName)
throws Exception
node - Current node which will be added thumbnailimage - BufferedImage which contain the original imagepropertyName - Data will be set to this propertyExceptionvoid addThumbnailImage(javax.jcr.Node node,
BufferedImage image,
String propertyName)
throws Exception
node - Current node which will be added thumbnailimage - BufferedImage which contain the original imagepropertyName - Data will be set to this propertyExceptionvoid processThumbnailList(List<javax.jcr.Node> listNodes, String type) throws Exception
listNodes - List node which will be process to add thumbnailtype - Type of thumbnail imageExceptionvoid processRemoveThumbnail(javax.jcr.Node showingNode)
throws Exception
showingNode - Node contain the thumbnailExceptionvoid copyThumbnailNode(javax.jcr.Node srcThumbnailNode,
javax.jcr.Node destNode)
throws Exception
srcThumbnailNode - thumbnailNode of source nodedestNode - destination NodeExceptionvoid addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
plugin - ComponentPluginList<org.exoplatform.container.component.ComponentPlugin> getComponentPlugins()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.