Class ModelSwitcher
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.filters.ModelSwitcher
-
public class ModelSwitcher extends Object
Handle model switching, if requested for the editing framework.
-
-
Constructor Summary
Constructors Constructor Description ModelSwitcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanauthorizedForSpecialModel(javax.servlet.http.HttpServletRequest req)Are they authorized for whatever models they are asking for?WebappDaoFactorycheckForModelSwitching(VitroRequest vreq, WebappDaoFactory inputWadf)Check if special model is requested - this is for enabling the use of a different model for menu management.
-
-
-
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.
-
-