org.activemath.webapp.tools
Class LanguageGapController
java.lang.Object
org.infohazard.maverick.ctl.Throwaway2
org.infohazard.maverick.ctl.ThrowawayBean2
org.activemath.webapp.base.ControllerBase
org.activemath.webapp.tools.LanguageGapController
- All Implemented Interfaces:
- Controller
public class LanguageGapController
- extends ControllerBase
Controller for language gap detection. Contains a nested singleton subclass
which is used as data container for gap information.
Request parameters:
- collection - id of collection; only the books contained in this
collection will be taken into account for gap detection
- filterLanguage - two-letter String (e.g. "en" for English) to filter the
results for a language. Only items having language gaps for
filterLanguage in content or title will be output.
If set to "all", no filter is applied and all items will be output.
- verboseMode - Either "yes" or "no", default is "no". If set to "yes", an
identical item which is referenced in more than one book within the same
collection will be output in every book where a gap has been detected instead
of only in the first book where a gap was detected ("no").
| Methods inherited from class org.activemath.webapp.base.ControllerBase |
addError, addError, enableNoCache, escapeForHtmlSafety, getAccountManager, getAppSession, getCmdName, getCurrentUser, getErrors, getHttpSession, getLanguage, getModel, getOutputFormat, getRequest, getResponse, getSkin, hasErrors, perform, publishControllerEvent, sendError, sendError, sendJson, sendLoginRequired, sendRedirect, sendRedirect, setPasswd, setUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static org.apache.commons.logging.Log log
recBooks
public List<Book> recBooks
LanguageGapController
public LanguageGapController()
action
public String action()
throws Exception
- Implements the controller's action
- Overrides:
action in class ControllerBase
- Throws:
Exception- See Also:
org.activemath.presentation.servlets.controller.AMController#action()
setCollection
public void setCollection(String collection)
getCollection
public String getCollection()
setFilterLanguage
public void setFilterLanguage(String FilterLanguage)
getFilterLanguage
public String getFilterLanguage()
getVerboseMode
public String getVerboseMode()
setVerboseMode
public void setVerboseMode(String verboseMode)
getStoreInGapDB
public Boolean getStoreInGapDB()
setStoreInGapDB
public void setStoreInGapDB(Boolean storeInGapDB)
getMessages
public ArrayList<String> getMessages()
setMessage
public static void setMessage(String message)