org.nuxeo.ecm.webapp.note
Class EditorImageActionsBean
java.lang.Object
org.nuxeo.ecm.webapp.base.InputController
org.nuxeo.ecm.webapp.note.EditorImageActionsBean
- All Implemented Interfaces:
- Serializable, EditorImageActions
@Name(value="editorImageActions")
@Scope(value=CONVERSATION)
public class EditorImageActionsBean
- extends InputController
- implements EditorImageActions, Serializable
Seam component implementing actions related to inserting an image in a Note
document.
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.
- Author:
- Thomas Roger
- See Also:
- Serialized Form
EditorImageActionsBean
public EditorImageActionsBean()
getSelectedTab
public String getSelectedTab()
- Specified by:
getSelectedTab
in interface EditorImageActions
getUrlForImage
public String getUrlForImage()
- Specified by:
getUrlForImage
in interface EditorImageActions
getIsImageUploaded
public boolean getIsImageUploaded()
- Specified by:
getIsImageUploaded
in interface EditorImageActions
setUploadedImage
public void setUploadedImage(InputStream uploadedImage)
- Specified by:
setUploadedImage
in interface EditorImageActions
getUploadedImage
public InputStream getUploadedImage()
- Specified by:
getUploadedImage
in interface EditorImageActions
getUploadedImageName
public String getUploadedImageName()
- Specified by:
getUploadedImageName
in interface EditorImageActions
setUploadedImageName
public void setUploadedImageName(String uploadedImageName)
- Specified by:
setUploadedImageName
in interface EditorImageActions
uploadImage
public String uploadImage()
throws ClientException
- Specified by:
uploadImage
in interface EditorImageActions
- Throws:
ClientException
getInCreationMode
public boolean getInCreationMode()
- Specified by:
getInCreationMode
in interface EditorImageActions
getHasSearchResults
public boolean getHasSearchResults()
- Specified by:
getHasSearchResults
in interface EditorImageActions
getSearchImageResults
public List<DocumentModel> getSearchImageResults()
- Specified by:
getSearchImageResults
in interface EditorImageActions
getSearchKeywords
public String getSearchKeywords()
- Specified by:
getSearchKeywords
in interface EditorImageActions
searchImages
public String searchImages()
throws ClientException
- Specified by:
searchImages
in interface EditorImageActions
- Throws:
ClientException
setSearchKeywords
public void setSearchKeywords(String searchKeywords)
- Specified by:
setSearchKeywords
in interface EditorImageActions
getSizes
public List<Map<String,String>> getSizes()
- Specified by:
getSizes
in interface EditorImageActions
getSelectedSize
public String getSelectedSize()
- Specified by:
getSelectedSize
in interface EditorImageActions
setSelectedSize
public void setSelectedSize(String selectedSize)
- Specified by:
setSelectedSize
in interface EditorImageActions
getImageProperty
public String getImageProperty()
- Specified by:
getImageProperty
in interface EditorImageActions
Copyright © 2011 Nuxeo SAS. All Rights Reserved.