@Name(value="pictureBookManager") @Scope(value=CONVERSATION) public class PictureBookManagerBean extends InputController implements PictureBookManager, Serializable
Constructor and Description |
---|
PictureBookManagerBean() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 |
setTitle(String title)
Sets the title.
|
void |
setViews(ArrayList<Map<String,Object>> views)
Sets the views.
|
void |
setViewtitle(String viewtitle)
Sets the viewtitle.
|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList
@Create public void initialize() throws Exception
initialize
in interface PictureBookManager
Exception
@Destroy @BypassInterceptors public void destroy()
public String createPictureBook() throws Exception
PictureBookManager
createPictureBook
in interface PictureBookManager
Exception
public void addView()
PictureBookManager
addView
in interface PictureBookManager
@Observer(value="documentSelectionChanged") @BypassInterceptors public void reset() throws ClientException
reset
in interface PictureBookManager
ClientException
public String downloadSelectedBook() throws ClientException, IOException
downloadSelectedBook
in interface PictureBookManager
ClientException
IOException
public String downloadAll() throws ClientException, IOException
downloadAll
in interface PictureBookManager
ClientException
IOException
public List<SelectItem> getSelectItems() throws ClientException
getSelectItems
in interface PictureBookManager
ClientException
public void setSelectItems(List<SelectItem> selectItems)
setSelectItems
in interface PictureBookManager
public String[] getSelectedViews()
getSelectedViews
in interface PictureBookManager
public void setSelectedViews(String[] selectedViews)
setSelectedViews
in interface PictureBookManager
public Integer getMaxsize()
PictureBookManager
getMaxsize
in interface PictureBookManager
public void setMaxsize(Integer maxsize)
PictureBookManager
setMaxsize
in interface PictureBookManager
maxsize
- an Integer holding the maximum sizepublic String getTitle()
PictureBookManager
getTitle
in interface PictureBookManager
public void setTitle(String title)
PictureBookManager
setTitle
in interface PictureBookManager
title
- a String holding the titlepublic String getTag()
PictureBookManager
getTag
in interface PictureBookManager
public void setTag(String tag)
PictureBookManager
setTag
in interface PictureBookManager
tag
- a String holding the tagpublic String getDescription()
PictureBookManager
getDescription
in interface PictureBookManager
public void setDescription(String description)
PictureBookManager
setDescription
in interface PictureBookManager
description
- a String holding the descriptionpublic String getViewtitle()
PictureBookManager
getViewtitle
in interface PictureBookManager
public void setViewtitle(String viewtitle)
PictureBookManager
setViewtitle
in interface PictureBookManager
viewtitle
- a String holding the title of a viewpublic ArrayList<Map<String,Object>> getViews()
PictureBookManager
getViews
in interface PictureBookManager
public void setViews(ArrayList<Map<String,Object>> views)
PictureBookManager
setViews
in interface PictureBookManager
views
- an ArrayList of MapCopyright © 2013 Nuxeo SA. All Rights Reserved.