@Name(value="documentsListsManager") @Scope(value=SESSION) public class DocumentsListsManagerBean extends BaseDocumentsListsManager implements DocumentsListsManager
CLIPBOARD, CURRENT_DOCUMENT_SECTION_SELECTION, CURRENT_DOCUMENT_SELECTION, CURRENT_DOCUMENT_TRASH_SELECTION, CURRENT_VERSION_SELECTION, DEFAULT_WORKING_LIST
Constructor and Description |
---|
DocumentsListsManagerBean() |
Modifier and Type | Method and Description |
---|---|
List<DocumentModel> |
addToWorkingList(DocumentModel doc)
Adds one document to the default list.
|
List<DocumentModel> |
addToWorkingList(List<DocumentModel> docList)
Adds a list of DocumentModels to the default list.
|
List<DocumentModel> |
addToWorkingList(String listName,
DocumentModel doc)
Adds one document to the list listName.
|
List<DocumentModel> |
addToWorkingList(String listName,
List<DocumentModel> docList)
Adds a list of DocumentModels to the list ListName.
|
List<DocumentModel> |
addToWorkingList(String listName,
List<DocumentModel> docList,
Boolean forceAppend)
Adds a list of DocumentModels to the list ListName.
|
void |
createWorkingList(String listName,
DocumentsListDescriptor descriptor)
Creates (declares) a new named list of documents.
|
List<DocumentModel> |
getWorkingList()
Returns the default list.
|
List<DocumentModel> |
getWorkingList(String listName)
Returns the list listName.
|
DocumentsListDescriptor |
getWorkingListDescriptor()
Gets the descriptor (meta-data) of a default list.
|
DocumentsListDescriptor |
getWorkingListDescriptor(String listName)
Gets the descriptor (meta-data) of a given list.
|
List<String> |
getWorkingListNamesForCategory(String categoryName)
Returns the availables lists names for a given category.
|
List<String> |
getWorkingListTypes()
Returns the list of document types contained in the default list.
|
List<String> |
getWorkingListTypes(String listName)
Returns the list of document types contained into the list ListName.
|
void |
initListManager()
Init Method (replaces for now Registry initialization that will be done
by the extension point and the Runtime).
|
boolean |
isWorkingListEmpty()
Checks if default list is empty.
|
boolean |
isWorkingListEmpty(String listName)
Check is list listName is empty.
|
void |
refreshLists(DocumentModel currentDocument)
Method called by Seam event service to reset lists.
|
void |
refreshListsOnSearch()
Refresh lists when a search is performed
|
void |
removeFromAllLists(List<DocumentModel> documentsToRemove)
Removes documentsToRemove from all lists.
|
List<DocumentModel> |
removeFromWorkingList(DocumentModel doc)
Removes one DocumentModel from the default list.
|
List<DocumentModel> |
removeFromWorkingList(String listName,
DocumentModel doc)
Removes one DocumentModel from the list ListName.
|
List<DocumentModel> |
removeFromWorkingList(String listName,
List<DocumentModel> lst) |
List<DocumentModel> |
resetWorkingList()
Removes DocumentModels from the default list.
|
List<DocumentModel> |
resetWorkingList(List<DocumentModel> newDocList)
Resets default list and fills it with newDocList.
|
List<DocumentModel> |
resetWorkingList(String listName)
Removes DocumentModels from the list ListName.
|
List<DocumentModel> |
resetWorkingList(String listName,
List<DocumentModel> newDocList)
Resets list listName and fill it with newDocList.
|
void |
setWorkingList(List<DocumentModel> docList)
Updates the default list.
|
void |
setWorkingList(String listName,
List<DocumentModel> docList)
Updates the list listName.
|
createWorkingList
@Create public void initListManager()
DocumentsListsManager
initListManager
in interface DocumentsListsManager
public void createWorkingList(String listName, DocumentsListDescriptor descriptor)
DocumentsListsManager
createWorkingList
in interface DocumentsListsManager
createWorkingList
in class BaseDocumentsListsManager
listName
- Name of the listpublic List<DocumentModel> getWorkingList(String listName)
DocumentsListsManager
getWorkingList
in interface DocumentsListsManager
getWorkingList
in class BaseDocumentsListsManager
listName
- Name of the listpublic List<String> getWorkingListTypes(String listName)
DocumentsListsManager
getWorkingListTypes
in interface DocumentsListsManager
getWorkingListTypes
in class BaseDocumentsListsManager
listName
- Name of the list to retrievepublic void setWorkingList(String listName, List<DocumentModel> docList)
DocumentsListsManager
setWorkingList
in interface DocumentsListsManager
setWorkingList
in class BaseDocumentsListsManager
listName
- Name of the list to updatedocList
- the DocumentModel list to store in the list ListNamepublic List<DocumentModel> addToWorkingList(String listName, DocumentModel doc)
DocumentsListsManager
addToWorkingList
in interface DocumentsListsManager
addToWorkingList
in class BaseDocumentsListsManager
listName
- the name of the list to updatedoc
- the doc to appendpublic List<DocumentModel> addToWorkingList(String listName, List<DocumentModel> docList)
DocumentsListsManager
addToWorkingList
in interface DocumentsListsManager
addToWorkingList
in class BaseDocumentsListsManager
listName
- the name of the list to updatedocList
- the DocumentModels list to appendpublic List<DocumentModel> addToWorkingList(String listName, List<DocumentModel> docList, Boolean forceAppend)
DocumentsListsManager
addToWorkingList
in interface DocumentsListsManager
addToWorkingList
in class BaseDocumentsListsManager
listName
- the name of the list to updatedocList
- the DocumentModels list to appendforceAppend
- force the new elements to be appened even if the list
default behaviour is resetpublic List<DocumentModel> removeFromWorkingList(String listName, DocumentModel doc)
DocumentsListsManager
removeFromWorkingList
in interface DocumentsListsManager
removeFromWorkingList
in class BaseDocumentsListsManager
public List<DocumentModel> removeFromWorkingList(String listName, List<DocumentModel> lst)
removeFromWorkingList
in interface DocumentsListsManager
removeFromWorkingList
in class BaseDocumentsListsManager
public List<DocumentModel> resetWorkingList(String listName)
DocumentsListsManager
resetWorkingList
in interface DocumentsListsManager
resetWorkingList
in class BaseDocumentsListsManager
public List<DocumentModel> resetWorkingList(String listName, List<DocumentModel> newDocList)
DocumentsListsManager
resetWorkingList
in interface DocumentsListsManager
resetWorkingList
in class BaseDocumentsListsManager
public boolean isWorkingListEmpty(String listName)
DocumentsListsManager
isWorkingListEmpty
in interface DocumentsListsManager
isWorkingListEmpty
in class BaseDocumentsListsManager
public void removeFromAllLists(List<DocumentModel> documentsToRemove)
DocumentsListsManager
removeFromAllLists
in interface DocumentsListsManager
removeFromAllLists
in class BaseDocumentsListsManager
public List<String> getWorkingListNamesForCategory(String categoryName)
DocumentsListsManager
getWorkingListNamesForCategory
in interface DocumentsListsManager
getWorkingListNamesForCategory
in class BaseDocumentsListsManager
public DocumentsListDescriptor getWorkingListDescriptor(String listName)
DocumentsListsManager
getWorkingListDescriptor
in interface DocumentsListsManager
getWorkingListDescriptor
in class BaseDocumentsListsManager
public List<DocumentModel> getWorkingList()
DocumentsListsManager
getWorkingList
in interface DocumentsListsManager
public DocumentsListDescriptor getWorkingListDescriptor()
DocumentsListsManager
getWorkingListDescriptor
in interface DocumentsListsManager
public List<String> getWorkingListTypes()
DocumentsListsManager
getWorkingListTypes
in interface DocumentsListsManager
public void setWorkingList(List<DocumentModel> docList)
DocumentsListsManager
setWorkingList
in interface DocumentsListsManager
docList
- the DocumentModel list to store in the default listpublic List<DocumentModel> addToWorkingList(DocumentModel doc)
DocumentsListsManager
addToWorkingList
in interface DocumentsListsManager
public List<DocumentModel> addToWorkingList(List<DocumentModel> docList)
DocumentsListsManager
addToWorkingList
in interface DocumentsListsManager
public List<DocumentModel> removeFromWorkingList(DocumentModel doc)
DocumentsListsManager
removeFromWorkingList
in interface DocumentsListsManager
public List<DocumentModel> resetWorkingList()
DocumentsListsManager
resetWorkingList
in interface DocumentsListsManager
public List<DocumentModel> resetWorkingList(List<DocumentModel> newDocList)
DocumentsListsManager
resetWorkingList
in interface DocumentsListsManager
public boolean isWorkingListEmpty()
DocumentsListsManager
isWorkingListEmpty
in interface DocumentsListsManager
@Observer(value="folderishDocumentSelectionChanged", create=false) public void refreshLists(DocumentModel currentDocument)
DocumentsListsManager
refreshLists
in interface DocumentsListsManager
Copyright © 2013 Nuxeo SA. All Rights Reserved.