Package de.iritgo.aktera.authorization

Examples of de.iritgo.aktera.authorization.AuthorizationManager.allowed()


      UIController controller = (UIController) KeelContainer.defaultContainer().getSpringBean(controllerId);

      AuthorizationManager authorizationManager = (AuthorizationManager) KeelContainer.defaultContainer()
              .getSpringBean(AuthorizationManager.ID);

      if (! authorizationManager.allowed(controller, controllerId, userEnvironment))
      {
        throw new SecurityException("Controller '" + controllerId + "' not authorized");
      }

      BeanResponse uiResponse = new BeanResponse();
View Full Code Here


    UIController controller = (UIController) KeelContainer.defaultContainer().getSpringBean(request.getBean());

    AuthorizationManager authorizationManager = (AuthorizationManager) KeelContainer.defaultContainer()
            .getSpringBean(AuthorizationManager.ID);

    if (! authorizationManager.allowed(controller, request.getBean(), request.getUserEnvironment()))
    {
      throw new SecurityException("Controller '" + request.getBean() + "' not authorized");
    }

    controller.execute(request, response);
View Full Code Here

    AuthorizationManager authorizationManager = (AuthorizationManager) KeelContainer.defaultContainer()
            .getSpringBean(AuthorizationManager.ID);

    try
    {
      if (! authorizationManager.allowed(controller, bean, request.getUserEnvironment()))
      {
        throw new SecurityException("Controller '" + bean + "' not authorized");
      }
    }
    catch (AuthorizationException x)
View Full Code Here

        log.error(msg);
        throw new SecurityException(msg);
      }

      return am.allowed(o, c);
    }
    catch (PersistenceException pe)
    {
      log.error("DB Error, unable to verify authorization", pe);
      throw new SecurityException("DB error, unable to verify authorization");
View Full Code Here

                "Authorization Manager was not setup properly, this is a container setup problem");
      }

      try
      {
        if (! am.allowed(o, c))
        {
          throw new SecurityException("Service '" + role + "' Not Authorized");
        }
      }
      catch (AuthorizationException e)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.