@Name(value="documentListingActions") @Scope(value=CONVERSATION) public class DocumentListingActionsBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected ContentViewActions |
contentViewActions |
protected List<String> |
currentAvailableListingLayoutNames |
protected String |
currentListingLayoutName |
static String |
DEFAULT_LISTING_LAYOUT |
protected LRUCachingMap<String,String> |
docTolistings |
protected CoreSession |
documentManager |
protected DocumentsListsManager |
documentsListsManager |
protected NavigationContext |
navigationContext |
Constructor and Description |
---|
DocumentListingActionsBean() |
Modifier and Type | Method and Description |
---|---|
void |
checkCurrentDocAndProcessSelectPage(String contentViewName,
String listName,
Boolean selection,
String currentDocRef)
Handle complete table selection event after having ensured that the navigation context stills points to
currentDocumentRef to protect against browsers' back button errors
|
void |
checkCurrentDocAndProcessSelectRow(String docRef,
String providerName,
String listName,
Boolean selection,
String requestedCurrentDocRef)
Handle row selection event after having ensured that the navigation context stills points to currentDocumentRef
to protect against browsers' back button errors
|
void |
checkCurrentDocAndProcessVersionSelectRow(PageSelection<VersionModel> versionModelSelection,
String requestedCurrentDocRef)
Handle version row selection event after having ensured that the navigation context stills points to
currentDocumentRef to protect against browsers' back button errors.
|
void |
documentChanged()
Deprecated.
this information is now held by content views
|
List<String> |
getAvailableLayoutsForCurrentDocument()
Deprecated.
this information is now held by content views
|
List<String> |
getAvailableLayoutsForDocument(DocumentModel doc)
Deprecated.
this information is now held by content views
|
protected List<DocumentModel> |
getCurrentPageDocuments(String contentViewName) |
String |
getLayoutForCurrentDocument()
Deprecated.
this information is now held by content views
|
String |
getLayoutForDocument(DocumentModel doc)
Deprecated.
this information is now held by content views
|
void |
processSelectPage(String contentViewName,
String listName,
Boolean selection) |
void |
processSelectRow(String docRef,
String contentViewName,
String listName,
Boolean selection) |
protected void |
processVersionSelectRow(PageSelection<VersionModel> versionModelSelection)
Processes the version selection row.
|
void |
setLayoutForCurrentDocument(String layoutName)
Deprecated.
this information is now held by content views
|
void |
setLayoutForDocument(DocumentModel doc,
String layoutName)
Deprecated.
this information is now held by content views
|
public static String DEFAULT_LISTING_LAYOUT
@In(create=true) protected transient NavigationContext navigationContext
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true) protected transient ContentViewActions contentViewActions
@In(required=false, create=true) protected transient DocumentsListsManager documentsListsManager
protected LRUCachingMap<String,String> docTolistings
protected String currentListingLayoutName
protected List<String> currentAvailableListingLayoutNames
public DocumentListingActionsBean()
@Deprecated public String getLayoutForDocument(DocumentModel doc)
@Deprecated public void setLayoutForDocument(DocumentModel doc, String layoutName)
@Deprecated @Factory(value="currentListingLayoutName", scope=EVENT) public String getLayoutForCurrentDocument()
@Deprecated public void setLayoutForCurrentDocument(String layoutName)
@Deprecated public List<String> getAvailableLayoutsForDocument(DocumentModel doc)
@Deprecated @Factory(value="currentAvailableListingLayoutNames", scope=EVENT) public List<String> getAvailableLayoutsForCurrentDocument()
@Observer(value="userAllDocumentTypesSelectionChanged", create=false) @BypassInterceptors @Deprecated public void documentChanged()
protected List<DocumentModel> getCurrentPageDocuments(String contentViewName)
public void processSelectPage(String contentViewName, String listName, Boolean selection)
public void checkCurrentDocAndProcessSelectPage(String contentViewName, String listName, Boolean selection, String currentDocRef)
public void processSelectRow(String docRef, String contentViewName, String listName, Boolean selection)
public void checkCurrentDocAndProcessSelectRow(String docRef, String providerName, String listName, Boolean selection, String requestedCurrentDocRef)
public void checkCurrentDocAndProcessVersionSelectRow(PageSelection<VersionModel> versionModelSelection, String requestedCurrentDocRef)
versionModelSelection
- the version model selectionrequestedCurrentDocRef
- the requested current doc refprotected final void processVersionSelectRow(PageSelection<VersionModel> versionModelSelection)
versionModelSelection
- the version model selectionCopyright © 2015 Nuxeo SA. All rights reserved.