@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() |
String |
getImageProperty() |
boolean |
getInCreationMode() |
boolean |
getIsImageUploaded() |
List<DocumentModel> |
getSearchImageResults() |
String |
getSearchKeywords() |
String |
getSelectedSize() |
String |
getSelectedTab() |
List<Map<String,String>> |
getSizes() |
InputStream |
getUploadedImage() |
String |
getUploadedImageName() |
String |
getUrlForImage() |
String |
searchImages() |
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 List<DocumentModel> getSearchImageResults()
getSearchImageResults in interface EditorImageActionspublic String getSearchKeywords()
getSearchKeywords in interface EditorImageActionspublic String searchImages() throws ClientException
searchImages 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 EditorImageActionsCopyright © 2011 Nuxeo SA. All Rights Reserved.