@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, removeDocumentFromList
public String getSelectedTab()
getSelectedTab
in interface EditorImageActions
public String getUrlForImage()
getUrlForImage
in interface EditorImageActions
public boolean getIsImageUploaded()
getIsImageUploaded
in interface EditorImageActions
public void setUploadedImage(InputStream uploadedImage)
setUploadedImage
in interface EditorImageActions
public InputStream getUploadedImage()
getUploadedImage
in interface EditorImageActions
public String getUploadedImageName()
getUploadedImageName
in interface EditorImageActions
public void setUploadedImageName(String uploadedImageName)
setUploadedImageName
in interface EditorImageActions
public String uploadImage() throws ClientException
uploadImage
in interface EditorImageActions
ClientException
public boolean getInCreationMode()
getInCreationMode
in interface EditorImageActions
public boolean getHasSearchResults()
getHasSearchResults
in interface EditorImageActions
public List<DocumentModel> getSearchImageResults()
getSearchImageResults
in interface EditorImageActions
public String getSearchKeywords()
getSearchKeywords
in interface EditorImageActions
public String searchImages() throws ClientException
searchImages
in interface EditorImageActions
ClientException
public void setSearchKeywords(String searchKeywords)
setSearchKeywords
in interface EditorImageActions
public List<Map<String,String>> getSizes()
getSizes
in interface EditorImageActions
public String getSelectedSize()
getSelectedSize
in interface EditorImageActions
public void setSelectedSize(String selectedSize)
setSelectedSize
in interface EditorImageActions
public String getImageProperty()
getImageProperty
in interface EditorImageActions
Copyright © 2011 Nuxeo SA. All Rights Reserved.