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 Type
    Method
    Description
    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 and SecurityContext after authentication is done.
    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.
    static org.glassfish.jersey.server.mvc.Viewable
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 and SecurityContext 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

      public static org.glassfish.jersey.server.mvc.Viewable createLoginPage(String errorMsg)
      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

      public static org.glassfish.jersey.server.mvc.Viewable createMainLoginPage(Object mainPageModel)