Package org.apache.isis.core.runtime.authentication.standard

Examples of org.apache.isis.core.runtime.authentication.standard.SimpleSession


    AuthenticationSession newAuthSession(JobExecutionContext context) {
        String user = getKey(context, SchedulerConstants.USER_KEY);
        String rolesStr = getKey(context, SchedulerConstants.ROLES_KEY);
        String[] roles = Iterables.toArray(
                Splitter.on(",").split(rolesStr), String.class);
        return new SimpleSession(user, roles);
    }
View Full Code Here


    AuthenticationSession newAuthSession(JobExecutionContext context) {
        String user = getKey(context, AbstractSchedulerService.USER_KEY);
        String rolesStr = getKey(context, AbstractSchedulerService.ROLES_KEY);
        String[] roles = Iterables.toArray(
                Splitter.on(",").split(rolesStr), String.class);
        return new SimpleSession(user, roles);
    }
View Full Code Here

        List<String> roles = getRoles(token);
        // copy over any roles passed in
        // (this is used by the Wicket viewer, for example).s
        roles.addAll(request.getRoles());
       
        return new SimpleSession(request.getName(), roles, code);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.runtime.authentication.standard.SimpleSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.