@Name(value="pictureManager") @Scope(value=CONVERSATION) public class PictureManagerBean extends Object implements PictureManager, Serializable
Constructor and Description |
---|
PictureManagerBean() |
Modifier and Type | Method and Description |
---|---|
String |
addPicture()
Deprecated.
|
String |
crop() |
void |
destroy() |
void |
download(DocumentView docView) |
String |
getCropCoords() |
Blob |
getFileContent()
Gets the content of the Picture.
|
String |
getFilename()
Gets the filename of the uploaded file.
|
String |
getFileurlPicture()
Gets the fileurl.
|
Integer |
getIndex()
Gets the index.
|
ArrayList |
getSelectItems()
Gets the selectedItems.
|
void |
initialize() |
Boolean |
isImageMagickAvailable() |
String |
remoteDownload(String patternName,
String docID,
String blobPropertyName,
String filename) |
void |
resetFields()
Listener reinitializing values at every Document changes.
|
String |
rotate90left()
Turns every view of a picture 90 degrees to the left.
|
String |
rotate90right()
Turns every view of a picture 90 degrees to the right.
|
void |
setCropCoords(String cropCoords) |
void |
setFileContent(Blob fileContent)
Sets the content of the Picture.
|
void |
setFilename(String filename)
Sets the filename of the uploaded file.
|
void |
setFileurlPicture(String fileurlPicture)
Sets the fileurl.
|
void |
setIndex(Integer index)
Sets the index.
|
void |
setSelectItems(ArrayList selectItems)
Sets the selectedItems.
|
static String |
urlPopup(String url) |
@Create public void initialize() throws Exception
initialize
in interface PictureManager
Exception
public String getFileurlPicture() throws ClientException
PictureManager
getFileurlPicture
in interface PictureManager
ClientException
public void setFileurlPicture(String fileurlPicture)
PictureManager
setFileurlPicture
in interface PictureManager
fileurlPicture
- a String holding the fileurl.public ArrayList getSelectItems() throws ClientException
PictureManager
getSelectItems
in interface PictureManager
ClientException
public void setSelectItems(ArrayList selectItems)
PictureManager
setSelectItems
in interface PictureManager
selectItems
- an Array holding the selectItems.@Deprecated public String addPicture() throws Exception
PictureManager
addPicture
in interface PictureManager
Exception
public String rotate90left() throws ClientException, IOException
PictureManager
rotate90left
in interface PictureManager
ClientException
IOException
public String rotate90right() throws ClientException, IOException
PictureManager
rotate90right
in interface PictureManager
ClientException
IOException
public String crop() throws ClientException, IOException
crop
in interface PictureManager
ClientException
IOException
@Observer(value={"documentSelectionChanged","documentChanged"}) @BypassInterceptors public void resetFields()
PictureManager
resetFields
in interface PictureManager
@WebRemote public String remoteDownload(String patternName, String docID, String blobPropertyName, String filename) throws ClientException
ClientException
@WebRemote public static String urlPopup(String url)
public void download(DocumentView docView) throws ClientException
download
in interface PictureManager
ClientException
@Destroy public void destroy()
destroy
in interface PictureManager
public String getFilename()
PictureManager
getFilename
in interface PictureManager
public void setFilename(String filename)
PictureManager
setFilename
in interface PictureManager
filename
- a String holding the filename.public Blob getFileContent()
PictureManager
getFileContent
in interface PictureManager
public void setFileContent(Blob fileContent)
PictureManager
setFileContent
in interface PictureManager
fileContent
- a Blob holding the uploaded filepublic Integer getIndex()
PictureManager
getIndex
in interface PictureManager
public void setIndex(Integer index)
PictureManager
setIndex
in interface PictureManager
index
- an Integer holding the index.public String getCropCoords()
getCropCoords
in interface PictureManager
public void setCropCoords(String cropCoords)
setCropCoords
in interface PictureManager
Copyright © 2013 Nuxeo SA. All Rights Reserved.