- Common ways to obtain Destination
private void myMethod () {Destination d =
Service service;String id;service.findDestinationById(id)
- Smart code suggestions by Codota
}
if (context.getDestination().isSecured()) { HttpGraniteContext graniteContext = (HttpGraniteContext)GraniteContext.getCurrentInstance(); HttpServletRequest httpRequest = graniteContext.getRequest();
if (context.getDestination().isSecured()) { if (principal == null) { if (httpRequest.getRequestedSessionId() != null) {
if (context.getDestination().isSecured()) { boolean accessDenied = true; for (String role : context.getDestination().getRoles()) {
if (context.getDestination().isSecured()) { if (principal == null) { if (httpRequest.getRequestedSessionId() != null) {
if (context.getDestination().isSecured()) { if (principal == null) { if (httpRequest != null && httpRequest.getRequestedSessionId() != null) {
if (context.getDestination().isSecured()) { if (principal == null) { if (httpRequest != null && httpRequest.getRequestedSessionId() != null) {
if (context.getDestination().isSecured()) { if (principal == null) { if (httpRequest != null && httpRequest.getRequestedSessionId() != null) {
if (context.getDestination().isSecured()) { if (principal == null) { if (httpRequest != null && httpRequest.getRequestedSessionId() != null) {
if (context.getDestination().isSecured()) { if (principal == null) { if (httpRequest != null && httpRequest.getRequestedSessionId() != null) {