Nuxeo ECM Projects 5.4.3-SNAPSHOT

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
 String addPicture()
          Creates and saves a picture document.
 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()
           
 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.
 

Method Detail

addPicture

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

Throws:
Exception

crop

String crop()
            throws ClientException,
                   IOException
Throws:
ClientException
IOException

rotate90left

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

Throws:
ClientException
IOException

rotate90right

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

Throws:
ClientException
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

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

Returns:
a String holding the filename.

setFilename

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

Parameters:
filename - a String holding the filename.

getFileurlPicture

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(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

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(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(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

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

String getCropCoords()

setCropCoords

void setCropCoords(String cropCoords)

resetFields

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


initialize

void initialize()
                throws Exception
Throws:
Exception

destroy

void destroy()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.