@Name(value="editorImageActions") @Scope(value=CONVERSATION) public class EditorImageActionsBean extends InputController implements EditorImageActions, Serializable
The uploaded image is stored in the files schema of the
document.
After uploading an image, the REST URL for this image can be retrieve through the appropriate method.
The search method retrieves only the Picture document of the repository.
| Constructor and Description |
|---|
EditorImageActionsBean() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getHasSearchResults() |
boolean |
getHasSearchVideosResults()
Return true if the search has results.
|
String |
getImageProperty() |
boolean |
getInCreationMode() |
boolean |
getIsImageUploaded() |
List<DocumentModel> |
getSearchImageResults() |
String |
getSearchKeywords() |
List<DocumentModel> |
getSearchVideosResults()
List of result of the searched the videos.
|
String |
getSelectedSize() |
String |
getSelectedTab() |
List<Map<String,String>> |
getSizes() |
InputStream |
getUploadedImage() |
String |
getUploadedImageName() |
String |
getUrlForImage() |
String |
getURLVideo(DocumentModel video,
String type)
Get the URL of a transcoded video for a specific format.
|
String |
searchImages() |
String |
searchVideos() |
void |
setSearchKeywords(String searchKeywords) |
void |
setSelectedSize(String selectedSize) |
void |
setUploadedImage(InputStream uploadedImage) |
void |
setUploadedImageName(String uploadedImageName) |
String |
uploadImage() |
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromListpublic String getSelectedTab()
getSelectedTab in interface EditorImageActionspublic String getUrlForImage()
getUrlForImage in interface EditorImageActionspublic boolean getIsImageUploaded()
getIsImageUploaded in interface EditorImageActionspublic void setUploadedImage(InputStream uploadedImage)
setUploadedImage in interface EditorImageActionspublic InputStream getUploadedImage()
getUploadedImage in interface EditorImageActionspublic String getUploadedImageName()
getUploadedImageName in interface EditorImageActionspublic void setUploadedImageName(String uploadedImageName)
setUploadedImageName in interface EditorImageActionspublic String uploadImage() throws ClientException
uploadImage in interface EditorImageActionsClientExceptionpublic boolean getInCreationMode()
getInCreationMode in interface EditorImageActionspublic boolean getHasSearchResults()
getHasSearchResults in interface EditorImageActionspublic boolean getHasSearchVideosResults()
EditorImageActionsgetHasSearchVideosResults in interface EditorImageActionspublic List<DocumentModel> getSearchImageResults()
getSearchImageResults in interface EditorImageActionspublic List<DocumentModel> getSearchVideosResults()
EditorImageActionsgetSearchVideosResults in interface EditorImageActionspublic String getSearchKeywords()
getSearchKeywords in interface EditorImageActionspublic String searchImages() throws ClientException
searchImages in interface EditorImageActionsClientExceptionpublic String searchVideos() throws ClientException
searchVideos in interface EditorImageActionsClientExceptionpublic void setSearchKeywords(String searchKeywords)
setSearchKeywords in interface EditorImageActionspublic List<Map<String,String>> getSizes()
getSizes in interface EditorImageActionspublic String getSelectedSize()
getSelectedSize in interface EditorImageActionspublic void setSelectedSize(String selectedSize)
setSelectedSize in interface EditorImageActionspublic String getImageProperty()
getImageProperty in interface EditorImageActionspublic String getURLVideo(DocumentModel video, String type) throws ClientException
EditorImageActionsgetURLVideo in interface EditorImageActionsvideo - The video document.type - The type of video.ClientExceptionCopyright © 2014 Nuxeo SA. All rights reserved.