Class ViewableWithPermissions
java.lang.Object
org.glassfish.jersey.server.mvc.Viewable
org.apache.drill.exec.server.rest.ViewableWithPermissions
public class ViewableWithPermissions
extends org.glassfish.jersey.server.mvc.Viewable
Overrides
Viewable
to create a model which contains additional info of what control to display in menubar.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.glassfish.jersey.server.mvc.Viewable
Create the web page using the given template andSecurityContext
after authentication is done.static org.glassfish.jersey.server.mvc.Viewable
Create a web page using the given template,SecurityContext
and model data.static org.glassfish.jersey.server.mvc.Viewable
createLoginPage
(String errorMsg) Create a login page.static org.glassfish.jersey.server.mvc.Viewable
createMainLoginPage
(Object mainPageModel) Methods inherited from class org.glassfish.jersey.server.mvc.Viewable
getModel, getTemplateName, isTemplateNameAbsolute
-
Method Details
-
create
public static org.glassfish.jersey.server.mvc.Viewable create(boolean authEnabled, String templateName, javax.ws.rs.core.SecurityContext sc) Create the web page using the given template andSecurityContext
after authentication is done.- Parameters:
templateName
-sc
-- Returns:
-
create
public static org.glassfish.jersey.server.mvc.Viewable create(boolean authEnabled, String templateName, javax.ws.rs.core.SecurityContext sc, Object model) Create a web page using the given template,SecurityContext
and model data.- Parameters:
templateName
-sc
-model
-- Returns:
-
createLoginPage
Create a login page.- Parameters:
errorMsg
- Optional error messages to be shown in case when the page is requested after login attempt failure.- Returns:
-
createMainLoginPage
-