public abstract class InputController extends Object
Constructor and Description |
---|
InputController() |
Modifier and Type | Method and Description |
---|---|
String |
computeOutcome(String actionOutcome)
Deprecated.
returning a non-null outcome is now useless since our
FancyNavigationHandler already performs redirection
to the right outcome when dealing with a null outcome. Plus
assumptions on the view/outcome names here was a buggy hack. |
boolean |
getAdministrator()
Is the current logged user an administrator?
|
void |
logDocumentWithName(String someLogString,
DocumentModel document)
Logs a
DocumentModel name and the passed string (info). |
void |
logDocumentWithTitle(String someLogString,
DocumentModel document)
Logs a
DocumentModel title and the passed string (info). |
void |
removeDocumentFromList(List<DocumentModel> documentList,
DocumentModel document)
Utility method that helps remove a
DocumentModel from a list. |
public void removeDocumentFromList(List<DocumentModel> documentList, DocumentModel document)
DocumentModel
from a list. The
document models are compared on DocumentRef
s.documentList
- document
- public void logDocumentWithTitle(String someLogString, DocumentModel document)
DocumentModel
title and the passed string (info).public void logDocumentWithName(String someLogString, DocumentModel document)
DocumentModel
name and the passed string (info).public boolean getAdministrator()
@Deprecated public String computeOutcome(String actionOutcome)
FancyNavigationHandler
already performs redirection
to the right outcome when dealing with a null outcome. Plus
assumptions on the view/outcome names here was a buggy hack.Previous behavior was: Utility method to return non 'null' JSF outcome that do not change the current view. The problem with null outcome is that some seam components are not refetched and thus the JSF tree might hold references that are no longer up-to-date, esp. in search results views whose documents lists are computed by an EVENT scoped seam factory.
actionOutcome
- a string that might be used in the future to compute
the JSF outcome in a cleaner wayCopyright © 2013 Nuxeo SA. All Rights Reserved.