Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.picture.web
Class PictureBookManagerBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.base.InputController
      extended by org.nuxeo.ecm.platform.picture.web.PictureBookManagerBean
All Implemented Interfaces:
Serializable, PictureBookManager

@Name(value="pictureBookManager")
@Scope(value=CONVERSATION)
public class PictureBookManagerBean
extends InputController
implements PictureBookManager, Serializable

Provide Picture Book related Actions.

Author:
Laurent Doguin
See Also:
Serialized Form

Constructor Summary
PictureBookManagerBean()
           
 
Method Summary
 void addView()
          Adds the current view to the views ArrayList using viewtitle, description, tag and maxsize.
 String createPictureBook()
          Creates and saves a Picture Book DocumentModel using views, timeinterval, description and title.
 void destroy()
           
 String downloadAll()
           
 String downloadSelectedBook()
           
 String getDescription()
          Gets the description.
 Integer getMaxsize()
          Gets the maxsize.
 String[] getSelectedViews()
           
 List<SelectItem> getSelectItems()
           
 String getTag()
          Gets the tag.
 Integer getTimeinterval()
          Deprecated. 
 String getTitle()
          Gets the title.
 ArrayList<Map<String,Object>> getViews()
          Gets the views.
 String getViewtitle()
          Gets the viewtitle.
 void initialize()
           
 void reset()
           
 void setDescription(String description)
          Sets the description.
 void setMaxsize(Integer maxsize)
          Sets the maxsize.
 void setSelectedViews(String[] selectedViews)
           
 void setSelectItems(List<SelectItem> selectItems)
           
 void setTag(String tag)
          Sets the tag.
 void setTimeinterval(Integer timeinterval)
          Sets the Time Interval.
 void setTitle(String title)
          Sets the title.
 void setViews(ArrayList<Map<String,Object>> views)
          Sets the views.
 void setViewtitle(String viewtitle)
          Sets the viewtitle.
 
Methods inherited from class org.nuxeo.ecm.webapp.base.InputController
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PictureBookManagerBean

public PictureBookManagerBean()
Method Detail

initialize

@Create
public void initialize()
                throws Exception
Specified by:
initialize in interface PictureBookManager
Throws:
Exception

destroy

@Destroy
public void destroy()

createPictureBook

public String createPictureBook()
                         throws Exception
Description copied from interface: PictureBookManager
Creates and saves a Picture Book DocumentModel using views, timeinterval, description and title.

Specified by:
createPictureBook in interface PictureBookManager
Throws:
Exception

addView

public void addView()
Description copied from interface: PictureBookManager
Adds the current view to the views ArrayList using viewtitle, description, tag and maxsize.

Specified by:
addView in interface PictureBookManager

reset

@Observer(value="documentSelectionChanged")
@BypassInterceptors
public void reset()
           throws ClientException
Specified by:
reset in interface PictureBookManager
Throws:
ClientException

downloadSelectedBook

public String downloadSelectedBook()
                            throws ClientException,
                                   IOException
Specified by:
downloadSelectedBook in interface PictureBookManager
Throws:
ClientException
IOException

downloadAll

public String downloadAll()
                   throws ClientException,
                          IOException
Specified by:
downloadAll in interface PictureBookManager
Throws:
ClientException
IOException

getSelectItems

public List<SelectItem> getSelectItems()
                                throws ClientException
Specified by:
getSelectItems in interface PictureBookManager
Throws:
ClientException

setSelectItems

public void setSelectItems(List<SelectItem> selectItems)
Specified by:
setSelectItems in interface PictureBookManager

getSelectedViews

public String[] getSelectedViews()
Specified by:
getSelectedViews in interface PictureBookManager

setSelectedViews

public void setSelectedViews(String[] selectedViews)
Specified by:
setSelectedViews in interface PictureBookManager

getTimeinterval

@Deprecated
public Integer getTimeinterval()
Deprecated. 

Description copied from interface: PictureBookManager
Gets the Time Interval. timeinterval is the time spend before the next picture is displayed in the slideshow in seconds.

Specified by:
getTimeinterval in interface PictureBookManager
Returns:
an Integer holding the Time Interval

setTimeinterval

public void setTimeinterval(Integer timeinterval)
Description copied from interface: PictureBookManager
Sets the Time Interval. timeinterval is the time spend before the next picture is displayed in the slideshow in seconds.

Specified by:
setTimeinterval in interface PictureBookManager
Parameters:
timeinterval - an Integer holding the Time Interval

getMaxsize

public Integer getMaxsize()
Description copied from interface: PictureBookManager
Gets the maxsize. maxsize is a property of a view. Maximum size of the longest side of a picture. It is used to create the file of a view.

Specified by:
getMaxsize in interface PictureBookManager
Returns:
an Integer holding the maximum size

setMaxsize

public void setMaxsize(Integer maxsize)
Description copied from interface: PictureBookManager
Sets the maxsize. maxsize is a property of a view. Maximum size of the longest side of a picture. It is used to create the file of a view.

Specified by:
setMaxsize in interface PictureBookManager
Parameters:
maxsize - an Integer holding the maximum size

getTitle

public String getTitle()
Description copied from interface: PictureBookManager
Gets the title. This is the title of the PictureBook as defined in the Dublincore schema.

Specified by:
getTitle in interface PictureBookManager
Returns:
a String holding the title

setTitle

public void setTitle(String title)
Description copied from interface: PictureBookManager
Sets the title. This is the title of the PictureBook as defined in the Dublincore schema

Specified by:
setTitle in interface PictureBookManager
Parameters:
title - a String holding the title

getTag

public String getTag()
Description copied from interface: PictureBookManager
Gets the tag. tag is a property of a view.

Specified by:
getTag in interface PictureBookManager
Returns:
a String holding the description

setTag

public void setTag(String tag)
Description copied from interface: PictureBookManager
Sets the tag. tag is a property of a view.

Specified by:
setTag in interface PictureBookManager
Parameters:
tag - a String holding the tag

getDescription

public String getDescription()
Description copied from interface: PictureBookManager
Gets the description. description is a property of a view.

Specified by:
getDescription in interface PictureBookManager
Returns:
a String holding the description

setDescription

public void setDescription(String description)
Description copied from interface: PictureBookManager
Sets the description. description is a property of a view.

Specified by:
setDescription in interface PictureBookManager
Parameters:
description - a String holding the description

getViewtitle

public String getViewtitle()
Description copied from interface: PictureBookManager
Gets the viewtitle. viewtitle is the property title of a view. For example the default title For the Original view is 'Original'

Specified by:
getViewtitle in interface PictureBookManager
Returns:
a String holding the title of a view.

setViewtitle

public void setViewtitle(String viewtitle)
Description copied from interface: PictureBookManager
Sets the viewtitle. viewtitle is the property title of a view. For example the default title For the Original view is 'Original'.

Specified by:
setViewtitle in interface PictureBookManager
Parameters:
viewtitle - a String holding the title of a view

getViews

public ArrayList<Map<String,Object>> getViews()
Description copied from interface: PictureBookManager
Gets the views. The views are Map that contains different information about each type of picture you might want. It has the 3 default following views: Original View, Medium View, used for the slideShow Thumbnail View, used For the PictureBook.

Specified by:
getViews in interface PictureBookManager
Returns:
an ArrayList of Map holding the views

setViews

public void setViews(ArrayList<Map<String,Object>> views)
Description copied from interface: PictureBookManager
Sets the views. The views are Map that contains different information about each type of picture you might want. It has the 3 default following views: Original View, Medium View, used for the slideShow Thumbnail View, used For the PictureBook

Specified by:
setViews in interface PictureBookManager
Parameters:
views - an ArrayList of Map holding the views

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.