public class ViewableWithPermissions
extends org.glassfish.jersey.server.mvc.Viewable
Viewable to create a model which contains additional info of what control to display in menubar.| Modifier and Type | Method and 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 |
createLoginPage(String errorMsg)
Create a login page.
|
static org.glassfish.jersey.server.mvc.Viewable |
createMainLoginPage(Object mainPageModel) |
public static org.glassfish.jersey.server.mvc.Viewable create(boolean authEnabled,
String templateName,
javax.ws.rs.core.SecurityContext sc)
SecurityContext after authentication is done.templateName - sc - public static org.glassfish.jersey.server.mvc.Viewable create(boolean authEnabled,
String templateName,
javax.ws.rs.core.SecurityContext sc,
Object model)
SecurityContext and model data.templateName - sc - model - public static org.glassfish.jersey.server.mvc.Viewable createLoginPage(String errorMsg)
errorMsg - Optional error messages to be shown in case when the page is requested after login attempt failure.public static org.glassfish.jersey.server.mvc.Viewable createMainLoginPage(Object mainPageModel)
Copyright © 2021 The Apache Software Foundation. All rights reserved.