Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.picture.web
Interface PictureManager

All Known Implementing Classes:
PictureManagerBean

public interface PictureManager

Provides picture-related actions.

Author:
Laurent Doguin

Method Summary
 java.lang.String addPicture()
          Creates and saves a picture document.
 java.lang.String crop()
           
 void destroy()
           
 void download(DocumentView docView)
           
 java.lang.String getCropCoords()
           
 Blob getFileContent()
          Gets the content of the Picture.
 java.lang.String getFilename()
          Gets the filename of the uploaded file.
 java.lang.String getFileurlPicture()
          Gets the fileurl.
 java.lang.Integer getIndex()
          Gets the index.
 java.util.ArrayList getSelectItems()
          Gets the selectedItems.
 void initialize()
           
 void resetFields()
          Listener reinitializing values at every Document changes.
 java.lang.String rotate90left()
          Turns every view of a picture 90 degrees to the left.
 java.lang.String rotate90right()
          Turns every view of a picture 90 degrees to the right.
 void setCropCoords(java.lang.String cropCoords)
           
 void setFileContent(Blob fileContent)
          Sets the content of the Picture.
 void setFilename(java.lang.String filename)
          Sets the filename of the uploaded file.
 void setFileurlPicture(java.lang.String fileurlPicture)
          Sets the fileurl.
 void setIndex(java.lang.Integer index)
          Sets the index.
 void setSelectItems(java.util.ArrayList selectItems)
          Sets the selectedItems.
 

Method Detail

addPicture

java.lang.String addPicture()
                            throws java.lang.Exception
Creates and saves a picture document.

Throws:
java.lang.Exception

crop

java.lang.String crop()
                      throws ClientException,
                             java.io.IOException
Throws:
ClientException
java.io.IOException

rotate90left

java.lang.String rotate90left()
                              throws ClientException,
                                     java.io.IOException
Turns every view of a picture 90 degrees to the left.

Throws:
ClientException
java.io.IOException

rotate90right

java.lang.String rotate90right()
                               throws ClientException,
                                      java.io.IOException
Turns every view of a picture 90 degrees to the right.

Throws:
ClientException
java.io.IOException

download

void download(DocumentView docView)
              throws ClientException
Throws:
ClientException

getFileContent

Blob getFileContent()
Gets the content of the Picture. It's the uploaded file.

Returns:
a Blob holding the uploaded file

setFileContent

void setFileContent(Blob fileContent)
Sets the content of the Picture. It's the uploaded file.

Parameters:
fileContent - a Blob holding the uploaded file

getFilename

java.lang.String getFilename()
Gets the filename of the uploaded file.

Returns:
a String holding the filename.

setFilename

void setFilename(java.lang.String filename)
Sets the filename of the uploaded file.

Parameters:
filename - a String holding the filename.

getFileurlPicture

java.lang.String getFileurlPicture()
                                   throws ClientException
Gets the fileurl. FileUrl is used to create valid link expression for the download function from the index of the picture's views.

Returns:
a String holding the fileurl.
Throws:
ClientException

setFileurlPicture

void setFileurlPicture(java.lang.String fileurlPicture)
Sets the fileurl. FileUrl is used to create valid link expression for the download function from the index of the picture's views.

Parameters:
fileurlPicture - a String holding the fileurl.

getIndex

java.lang.Integer getIndex()
Gets the index. This index is used to display the selected picture in view_picture.

Returns:
an Integer holding the index.

setIndex

void setIndex(java.lang.Integer index)
Sets the index. This index is used to display the selected picture in view_picture.

Parameters:
index - an Integer holding the index.

setSelectItems

void setSelectItems(java.util.ArrayList selectItems)
Sets the selectedItems. This array contains an index and the title of each picture's view. It's used to dynamically the selected view.

Parameters:
selectItems - an Array holding the selectItems.

getSelectItems

java.util.ArrayList getSelectItems()
                                   throws ClientException
Gets the selectedItems. This array contains an index and the title of each picture's view. It's used to dynamically the selected view.

Returns:
an Array holding the selectItems.
Throws:
ClientException

getCropCoords

java.lang.String getCropCoords()

setCropCoords

void setCropCoords(java.lang.String cropCoords)

resetFields

void resetFields()
Listener reinitializing values at every Document changes.


initialize

void initialize()
                throws java.lang.Exception
Throws:
java.lang.Exception

destroy

void destroy()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.