@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.
actionManager, currentDocument, currentUser, eventManager, facesMessages, navigationContext, resourcesAccessor, typeManager, typesTool| 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()  | 
javax.servlet.http.Part | 
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(javax.servlet.http.Part uploadedImage)  | 
void | 
setUploadedImageName(String uploadedImageName)  | 
String | 
uploadImage()  | 
computeOutcome, extractReferences, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList, setFacesMessagepublic EditorImageActionsBean()
public String getSelectedTab()
getSelectedTab in interface EditorImageActionspublic String getUrlForImage()
getUrlForImage in interface EditorImageActionspublic boolean getIsImageUploaded()
getIsImageUploaded in interface EditorImageActionspublic void setUploadedImage(javax.servlet.http.Part uploadedImage)
setUploadedImage in interface EditorImageActionspublic javax.servlet.http.Part getUploadedImage()
getUploadedImage in interface EditorImageActionspublic String getUploadedImageName()
getUploadedImageName in interface EditorImageActionspublic void setUploadedImageName(String uploadedImageName)
setUploadedImageName in interface EditorImageActionspublic String uploadImage()
uploadImage in interface EditorImageActionspublic 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()
searchImages in interface EditorImageActionspublic String searchVideos()
searchVideos in interface EditorImageActionspublic 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)
EditorImageActionsgetURLVideo in interface EditorImageActionsvideo - The video document.type - The type of video.Copyright © 2019 Nuxeo. All rights reserved.