/** * Handle complete table selection event after having ensured that the navigation context stills * points to currentDocumentRef to protect against browsers' back button errors * * @throws ClientException if currentDocRef is not a valid document */ public void checkCurrentDocAndProcessSelectPage( String contentViewName, String listName, Boolean selection, String currentDocRef) throws ClientException { DocumentRef currentDocumentRef = new IdRef(currentDocRef); if (!currentDocumentRef.equals(navigationContext.getCurrentDocument().getRef())) { navigationContext.navigateToRef(currentDocumentRef); } processSelectPage(contentViewName, listName, selection); }
/** * Handle version row selection event after having ensured that the navigation context stills * points to currentDocumentRef to protect against browsers' back button errors. * * @param versionModelSelection the version model selection * @param requestedCurrentDocRef the requested current doc ref * @throws ClientException if currentDocRef is not a valid document * @since 5.6 */ public void checkCurrentDocAndProcessVersionSelectRow( PageSelection<VersionModel> versionModelSelection, String requestedCurrentDocRef) throws ClientException { DocumentRef requestedCurrentDocumentRef = new IdRef(requestedCurrentDocRef); DocumentRef currentDocumentRef = null; DocumentModel currentDocument = navigationContext.getCurrentDocument(); if (currentDocument != null) { currentDocumentRef = currentDocument.getRef(); } if (!requestedCurrentDocumentRef.equals(currentDocumentRef)) { navigationContext.navigateToRef(requestedCurrentDocumentRef); } processVersionSelectRow(versionModelSelection); }
/** * Handle row selection event after having ensured that the navigation context stills points to * currentDocumentRef to protect against browsers' back button errors * * @throws ClientException if currentDocRef is not a valid document */ public void checkCurrentDocAndProcessSelectRow( String docRef, String providerName, String listName, Boolean selection, String requestedCurrentDocRef) throws ClientException { DocumentRef requestedCurrentDocumentRef = new IdRef(requestedCurrentDocRef); DocumentRef currentDocumentRef = null; DocumentModel currentDocument = navigationContext.getCurrentDocument(); if (currentDocument != null) { currentDocumentRef = currentDocument.getRef(); } if (!requestedCurrentDocumentRef.equals(currentDocumentRef)) { navigationContext.navigateToRef(requestedCurrentDocumentRef); } processSelectRow(docRef, providerName, listName, selection); }