@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 PictureManager
protected DocumentModel getCurrentDocument()
public String getFileurlPicture()
PictureManager
getFileurlPicture
in interface PictureManager
public void setFileurlPicture(String fileurlPicture)
PictureManager
setFileurlPicture
in interface PictureManager
fileurlPicture
- a String holding the fileurl.protected void initSelectItems()
public ArrayList getSelectItems()
PictureManager
getSelectItems
in interface PictureManager
public void setSelectItems(ArrayList selectItems)
PictureManager
setSelectItems
in interface PictureManager
selectItems
- an Array holding the selectItems.public String rotate90left() throws IOException
PictureManager
rotate90left
in interface PictureManager
IOException
public String rotate90right() throws IOException
PictureManager
rotate90right
in interface PictureManager
IOException
public String crop() throws IOException
crop
in interface PictureManager
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)
public void download(DocumentView docView)
download
in interface PictureManager
@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
public Boolean isImageMagickAvailable()
Copyright © 2018 Nuxeo. All rights reserved.