@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 PictureBookManagerprotected void initViews()
@Destroy @BypassInterceptors public void destroy()
public String createPictureBook()
PictureBookManagercreatePictureBook in interface PictureBookManagerpublic void addView()
PictureBookManageraddView in interface PictureBookManager@Observer(value="documentSelectionChanged") @BypassInterceptors public void reset()
reset in interface PictureBookManagerpublic String downloadSelectedBook() throws IOException
downloadSelectedBook in interface PictureBookManagerIOExceptionpublic String downloadAll() throws IOException
downloadAll in interface PictureBookManagerIOExceptionprotected boolean isEmptyFolder(DocumentModel doc)
protected String formatFileName(String filename, String count)
protected void addBlobHolderToZip(String path, ZipOutputStream out, byte[] data, PictureBlobHolder bh) throws IOException
IOExceptionprotected void addFolderToZip(String path, ZipOutputStream out, DocumentModel doc, byte[] data) throws IOException
IOExceptionprotected String createZip(List<DocumentModel> documents) throws IOException
IOExceptionprotected void initSelectItems()
public List<javax.faces.model.SelectItem> getSelectItems()
getSelectItems in interface PictureBookManagerpublic void setSelectItems(List<javax.faces.model.SelectItem> selectItems)
setSelectItems in interface PictureBookManagerpublic String[] getSelectedViews()
getSelectedViews in interface PictureBookManagerpublic void setSelectedViews(String[] selectedViews)
setSelectedViews in interface PictureBookManagerpublic Integer getMaxsize()
PictureBookManagergetMaxsize in interface PictureBookManagerpublic void setMaxsize(Integer maxsize)
PictureBookManagersetMaxsize in interface PictureBookManagermaxsize - an Integer holding the maximum sizepublic String getTitle()
PictureBookManagergetTitle in interface PictureBookManagerpublic void setTitle(String title)
PictureBookManagersetTitle in interface PictureBookManagertitle - a String holding the titlepublic String getTag()
PictureBookManagergetTag in interface PictureBookManagerpublic void setTag(String tag)
PictureBookManagersetTag in interface PictureBookManagertag - a String holding the tagpublic String getDescription()
PictureBookManagergetDescription in interface PictureBookManagerpublic void setDescription(String description)
PictureBookManagersetDescription in interface PictureBookManagerdescription - a String holding the descriptionpublic String getViewtitle()
PictureBookManagergetViewtitle in interface PictureBookManagerpublic void setViewtitle(String viewtitle)
PictureBookManagersetViewtitle in interface PictureBookManagerviewtitle - a String holding the title of a viewpublic ArrayList<Map<String,Object>> getViews()
PictureBookManagergetViews in interface PictureBookManagerpublic void setViews(ArrayList<Map<String,Object>> views)
PictureBookManagersetViews in interface PictureBookManagerviews - an ArrayList of MapCopyright © 2018 Nuxeo. All rights reserved.