Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.note
Class EditorImageActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.base.InputController
      extended by 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

Constructor Summary
EditorImageActionsBean()
           
 
Method Summary
 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()
           
 
Methods inherited from class org.nuxeo.ecm.webapp.base.InputController
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorImageActionsBean

public EditorImageActionsBean()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.