Class ModelSwitcher


  • public class ModelSwitcher
    extends Object
    Handle model switching, if requested for the editing framework.
    • Constructor Detail

      • ModelSwitcher

        public ModelSwitcher()
    • Method Detail

      • authorizedForSpecialModel

        public static boolean authorizedForSpecialModel​(javax.servlet.http.HttpServletRequest req)
        Are they authorized for whatever models they are asking for?
      • checkForModelSwitching

        public WebappDaoFactory checkForModelSwitching​(VitroRequest vreq,
                                                       WebappDaoFactory inputWadf)
        Check if special model is requested - this is for enabling the use of a different model for menu management. Also enables the use of a completely different model and tbox if uris are passed.