@Name(value="pictureBookManager") @Scope(value=CONVERSATION) @Deprecated public class PictureBookManagerBean extends InputController implements PictureBookManager, Serializable
Modifier and Type | Field and Description |
---|---|
protected static int |
BUFFER
Deprecated.
|
protected String |
description
Deprecated.
|
protected CoreSession |
documentManager
Deprecated.
|
protected DocumentsListsManager |
documentsListsManager
Deprecated.
|
protected Integer |
maxsize
Deprecated.
|
protected String[] |
selectedViews
Deprecated.
|
protected List<javax.faces.model.SelectItem> |
selectItems
Deprecated.
|
protected String |
tag
Deprecated.
|
protected String |
title
Deprecated.
|
protected ArrayList<Map<String,Object>> |
views
Deprecated.
|
protected String |
viewtitle
Deprecated.
|
actionManager, currentDocument, currentUser, eventManager, facesMessages, navigationContext, resourcesAccessor, typeManager, typesTool
Constructor and Description |
---|
PictureBookManagerBean()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addBlobHolderToZip(String path,
ZipOutputStream out,
byte[] data,
PictureBlobHolder bh)
Deprecated.
|
protected void |
addFolderToZip(String path,
ZipOutputStream out,
DocumentModel doc,
byte[] data)
Deprecated.
|
void |
addView()
Deprecated.
Adds the current view to the views ArrayList using viewtitle, description, tag and maxsize.
|
String |
createPictureBook()
Deprecated.
Creates and saves a Picture Book DocumentModel using views, timeinterval, description and title.
|
protected String |
createZip(List<DocumentModel> documents)
Deprecated.
|
void |
destroy()
Deprecated.
|
String |
downloadAll()
Deprecated.
|
String |
downloadSelectedBook()
Deprecated.
|
protected String |
formatFileName(String filename,
String count)
Deprecated.
|
protected DocumentModel |
getCurrentDocument()
Deprecated.
|
String |
getDescription()
Deprecated.
Gets the description.
|
Integer |
getMaxsize()
Deprecated.
Gets the maxsize.
|
String[] |
getSelectedViews()
Deprecated.
|
List<javax.faces.model.SelectItem> |
getSelectItems()
Deprecated.
|
String |
getTag()
Deprecated.
Gets the tag.
|
String |
getTitle()
Deprecated.
Gets the title.
|
ArrayList<Map<String,Object>> |
getViews()
Deprecated.
Gets the views.
|
String |
getViewtitle()
Deprecated.
Gets the viewtitle.
|
void |
initialize()
Deprecated.
|
protected void |
initSelectItems()
Deprecated.
|
protected void |
initViews()
Deprecated.
|
protected boolean |
isEmptyFolder(DocumentModel doc)
Deprecated.
|
void |
reset()
Deprecated.
|
void |
setDescription(String description)
Deprecated.
Sets the description.
|
void |
setMaxsize(Integer maxsize)
Deprecated.
Sets the maxsize.
|
void |
setSelectedViews(String[] selectedViews)
Deprecated.
|
void |
setSelectItems(List<javax.faces.model.SelectItem> selectItems)
Deprecated.
|
void |
setTag(String tag)
Deprecated.
Sets the tag.
|
void |
setTitle(String title)
Deprecated.
Sets the title.
|
void |
setViews(ArrayList<Map<String,Object>> views)
Deprecated.
Sets the views.
|
void |
setViewtitle(String viewtitle)
Deprecated.
Sets the viewtitle.
|
computeOutcome, extractReferences, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList, setFacesMessage
@In(create=true) protected CoreSession documentManager
protected String description
protected List<javax.faces.model.SelectItem> selectItems
protected String[] selectedViews
@In(create=true) protected transient DocumentsListsManager documentsListsManager
protected static final int BUFFER
public PictureBookManagerBean()
protected DocumentModel getCurrentDocument()
@Create public void initialize()
initialize
in interface PictureBookManager
protected void initViews()
@Destroy @BypassInterceptors public void destroy()
public String createPictureBook()
PictureBookManager
createPictureBook
in interface PictureBookManager
public void addView()
PictureBookManager
addView
in interface PictureBookManager
@Observer(value="documentSelectionChanged") @BypassInterceptors public void reset()
reset
in interface PictureBookManager
public String downloadSelectedBook() throws IOException
downloadSelectedBook
in interface PictureBookManager
IOException
public String downloadAll() throws IOException
downloadAll
in interface PictureBookManager
IOException
protected boolean isEmptyFolder(DocumentModel doc)
protected String formatFileName(String filename, String count)
protected void addBlobHolderToZip(String path, ZipOutputStream out, byte[] data, PictureBlobHolder bh) throws IOException
IOException
protected void addFolderToZip(String path, ZipOutputStream out, DocumentModel doc, byte[] data) throws IOException
IOException
protected String createZip(List<DocumentModel> documents) throws IOException
IOException
protected void initSelectItems()
public List<javax.faces.model.SelectItem> getSelectItems()
getSelectItems
in interface PictureBookManager
public void setSelectItems(List<javax.faces.model.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 © 2018 Nuxeo. All rights reserved.