@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, setFacesMessage
public EditorImageActionsBean()
public String getSelectedTab()
getSelectedTab
in interface EditorImageActions
public String getUrlForImage()
getUrlForImage
in interface EditorImageActions
public boolean getIsImageUploaded()
getIsImageUploaded
in interface EditorImageActions
public void setUploadedImage(javax.servlet.http.Part uploadedImage)
setUploadedImage
in interface EditorImageActions
public javax.servlet.http.Part getUploadedImage()
getUploadedImage
in interface EditorImageActions
public String getUploadedImageName()
getUploadedImageName
in interface EditorImageActions
public void setUploadedImageName(String uploadedImageName)
setUploadedImageName
in interface EditorImageActions
public String uploadImage()
uploadImage
in interface EditorImageActions
public boolean getInCreationMode()
getInCreationMode
in interface EditorImageActions
public boolean getHasSearchResults()
getHasSearchResults
in interface EditorImageActions
public boolean getHasSearchVideosResults()
EditorImageActions
getHasSearchVideosResults
in interface EditorImageActions
public List<DocumentModel> getSearchImageResults()
getSearchImageResults
in interface EditorImageActions
public List<DocumentModel> getSearchVideosResults()
EditorImageActions
getSearchVideosResults
in interface EditorImageActions
public String getSearchKeywords()
getSearchKeywords
in interface EditorImageActions
public String searchImages()
searchImages
in interface EditorImageActions
public String searchVideos()
searchVideos
in interface EditorImageActions
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
public String getURLVideo(DocumentModel video, String type)
EditorImageActions
getURLVideo
in interface EditorImageActions
video
- The video document.type
- The type of video.Copyright © 2018 Nuxeo. All rights reserved.