Example usage for org.apache.wicket.authroles.authorization.strategies.role IRoleCheckingStrategy interface-usage

List of usage examples for org.apache.wicket.authroles.authorization.strategies.role IRoleCheckingStrategy interface-usage

Introduction

In this page you can find the example usage for org.apache.wicket.authroles.authorization.strategies.role IRoleCheckingStrategy interface-usage.

Usage

From source file br.com.ieptbto.cra.security.UserRolesAuthorizer.java

public class UserRolesAuthorizer implements IRoleCheckingStrategy {
    @Override
    public boolean hasAnyRole(Roles roles) {
        IUserSession<?> authSession = (IUserSession<?>) Session.get();
        IAuthModel user = authSession.getUser();
        return user.hasAnyRole(roles);

From source file cz.muni.fi.pa165.languageschoolweb.security.UserRolesAuthorizer.java

/**
 * The authorizer we need to provide to the authorization strategy implementation
 * {@link org.apache.wicket.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy}
 * .
 * 
 * @author kelnar

From source file de.bessonov.wicket.security.UserRolesAuthorizer.java

public class UserRolesAuthorizer implements IRoleCheckingStrategy {
    @Override
    public boolean hasAnyRole(Roles roles) {
        IUserSession<?> authSession = (IUserSession<?>) Session.get();
        IAuthModel user = authSession.getUser();
        return user.hasAnyRole(roles);

From source file de.widone.web.testhelper.MockRoleCheckingStrategy.java

@SuppressWarnings("serial")
public class MockRoleCheckingStrategy implements IRoleCheckingStrategy, Serializable {
    private Roles roles;

    public MockRoleCheckingStrategy(Roles roles) {
        this.roles = roles;

From source file design.UserAuth.java

/**
 * The authorizer we need to provide to the authorization strategy
 * implementation
 * {@link org.apache.wicket.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy}
 * .
 * 

From source file net.databinder.auth.hib.AuthDataApplication.java

/**
 * Adds basic authentication functionality to DataApplication. This class is a derivative
 * of Wicket's AuthenticatedWebApplication, brought into the DataApplication hierarchy
 * and including light user specifications in DataUser. You are encouraged to override
 * getUserClass() to implement your own user entity, possibly by extending UserBase.
 * It is also possible to use Databinder authentication without extending this base class 

From source file org.apache.karaf.webconsole.core.security.HierarchicalRoleCheckingStrategy.java

/**
 * Role checking strategy which follow the hierarchy.
 */
public class HierarchicalRoleCheckingStrategy implements IRoleCheckingStrategy {

    public boolean hasAnyRole(Roles roles) {

From source file org.apache.syncope.client.console.SyncopeApplication.java

/**
 * SyncopeApplication class.
 */
public class SyncopeApplication extends WebApplication
        implements IUnauthorizedComponentInstantiationListener, IRoleCheckingStrategy, Serializable {

From source file org.apache.syncope.console.SyncopeApplication.java

/**
 * SyncopeApplication class.
 */
public class SyncopeApplication extends WebApplication
        implements IUnauthorizedComponentInstantiationListener, IRoleCheckingStrategy, Serializable {

From source file org.rest.annotations.security.HttpBasicAuthRoleCheckingStrategy.java

public class HttpBasicAuthRoleCheckingStrategy implements IRoleCheckingStrategy {
    final private String username;
    final private String password;

    public HttpBasicAuthRoleCheckingStrategy(String username, String password) {
        Args.notNull(username, "username");