@Name(value="pictureManager") @Scope(value=CONVERSATION) public class PictureManagerBean extends Object implements PictureManager, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
cropCoords |
protected CoreSession |
documentManager |
protected Blob |
fileContent |
protected String |
fileFieldFullName |
protected String |
filename |
protected String |
fileurlPicture |
protected static Boolean |
imageMagickAvailable |
protected Integer |
index |
protected NavigationContext |
navigationContext |
protected ResourcesAccessor |
resourcesAccessor |
protected ArrayList<Map<String,Object>> |
selectItems |
| Constructor and Description |
|---|
PictureManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
crop() |
void |
destroy() |
void |
download(DocumentView docView) |
String |
getCropCoords() |
protected DocumentModel |
getCurrentDocument() |
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() |
protected void |
initSelectItems() |
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) |
protected static Boolean imageMagickAvailable
@In(create=true,
required=false)
protected transient CoreSession documentManager
@RequestParameter protected String fileFieldFullName
@In(required=true,
create=true)
protected transient NavigationContext navigationContext
@In(create=true,
required=false)
protected ResourcesAccessor resourcesAccessor
protected String fileurlPicture
protected Blob fileContent
protected String cropCoords
protected ArrayList<Map<String,Object>> selectItems
public PictureManagerBean()
@Create public void initialize()
initialize in interface PictureManagerprotected DocumentModel getCurrentDocument()
public String getFileurlPicture()
PictureManagergetFileurlPicture in interface PictureManagerpublic void setFileurlPicture(String fileurlPicture)
PictureManagersetFileurlPicture in interface PictureManagerfileurlPicture - a String holding the fileurl.protected void initSelectItems()
public ArrayList getSelectItems()
PictureManagergetSelectItems in interface PictureManagerpublic void setSelectItems(ArrayList selectItems)
PictureManagersetSelectItems in interface PictureManagerselectItems - an Array holding the selectItems.public String rotate90left() throws IOException
PictureManagerrotate90left in interface PictureManagerIOExceptionpublic String rotate90right() throws IOException
PictureManagerrotate90right in interface PictureManagerIOExceptionpublic String crop() throws IOException
crop in interface PictureManagerIOException@Observer(value={"documentSelectionChanged","documentChanged"})
@BypassInterceptors
public void resetFields()
PictureManagerresetFields in interface PictureManager@WebRemote public String remoteDownload(String patternName, String docID, String blobPropertyName, String filename)
public void download(DocumentView docView)
download in interface PictureManager@Destroy public void destroy()
destroy in interface PictureManagerpublic String getFilename()
PictureManagergetFilename in interface PictureManagerpublic void setFilename(String filename)
PictureManagersetFilename in interface PictureManagerfilename - a String holding the filename.public Blob getFileContent()
PictureManagergetFileContent in interface PictureManagerpublic void setFileContent(Blob fileContent)
PictureManagersetFileContent in interface PictureManagerfileContent - a Blob holding the uploaded filepublic Integer getIndex()
PictureManagergetIndex in interface PictureManagerpublic void setIndex(Integer index)
PictureManagersetIndex in interface PictureManagerindex - an Integer holding the index.public String getCropCoords()
getCropCoords in interface PictureManagerpublic void setCropCoords(String cropCoords)
setCropCoords in interface PictureManagerpublic Boolean isImageMagickAvailable()
Copyright © 2019 Nuxeo. All rights reserved.