Examples of UIController


Examples of de.iritgo.aktera.ui.UIController

      UserEnvironment userEnvironment = getUserEnvironment(request);

      uiRequest.setUserEnvironment(userEnvironment);

      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();

      controller.execute(uiRequest, uiResponse);
      createDynaBean(controller, uiResponse, request, response, controllerId);
      handleErrors(controller, uiResponse, request, response, controllerId);

      String forward = uiResponse.getForward();

      if (forward == null)
      {
        forward = controller.getForward();

        if (forward == null)
        {
          forward = "default";
        }
View Full Code Here

Examples of de.iritgo.aktera.ui.UIController

  }

  public static void execute(UIRequest request, UIResponse response)
    throws AuthorizationException, UIControllerException
  {
    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);

    if (response.getForward() == null)
    {
      response.setForward(controller.getForward());

      if (response.getForward() == null)
      {
        response.setForward("default");
      }
View Full Code Here

Examples of de.iritgo.aktera.ui.UIController

      if (ue.getGroups().contains("root"))
      {
        return true;
      }

      UIController controller = (UIController) service;

      switch (controller.getSecurity())
      {
        case NONE:
          return true;

        case COMPONENT:
View Full Code Here

Examples of de.iritgo.aktera.ui.UIController

  public void execute(UIRequest request, UIResponse response) throws UIControllerException
  {
    for (String controllerId : controllerIds)
    {
      UIController controller = (UIController) SpringTools.getBean(controllerId);

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

      Properties props = controllerParams.get(controllerId);
      if (props != null)
      {
        for (Entry<Object, Object> param : props.entrySet())
        {
          request.getParameters().put(param.getKey().toString(), param.getValue());
        }
      }

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

Examples of de.iritgo.aktera.ui.UIController

    security = Security.NONE;
  }

  public void execute(UIRequest request, UIResponse response) throws UIControllerException
  {
    UIController controller = (UIController) SpringTools.getBean(request.getParameterAsString("_cmodel"));
    BeanRequest newRequest = new BeanRequest();

    newRequest.setBean(request.getParameterAsString("_cmodel"));
    newRequest.setLocale(request.getLocale());
    newRequest.setUserEnvironment(request.getUserEnvironment());

    for (Object entry : request.getParameters().entrySet())
    {
      String key = (String) ((Map.Entry) entry).getKey();

      if (key.startsWith("_cp") && ! "_cmodel".equals(key))
      {
        newRequest.setParameter(key.substring(3), ((Map.Entry) entry).getValue());
      }
    }

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

Examples of org.jibeframework.core.annotation.UIController

      if (args[i] == null) {
        UIComponent uiCmpAnn = parameters[i].getParameterAnnotation(UIComponent.class);
        if (uiCmpAnn != null) {
          args[i] = applicationContext.getBean(uiCmpAnn.value());
        } else {
          UIController cntAnn = parameters[i].getParameterAnnotation(UIController.class);
          if (cntAnn != null) {
            args[i] = applicationContext.getBean(cntAnn.value());
          }
        }
      }
    }
View Full Code Here

Examples of org.jibeframework.core.annotation.UIController

              if (!Modifier.isStatic(field.getModifiers())) {
                UIComponent dann = field.getAnnotation(UIComponent.class);
                if (dann != null) {
                  injectionCache.put(field, dann.value());
                } else {
                  UIController cann = field.getAnnotation(UIController.class);
                  if (cann != null) {
                    injectionCache.put(field, cann.value());
                  } else {
                    Service sann = field.getAnnotation(Service.class);
                    if (sann != null) {
                      injectionCache.put(field, field.getType());
                    }
View Full Code Here

Examples of org.jibeframework.core.annotation.UIController

              String beanName = uiAnn.value();
              scripts.add(f.getAbsolutePath());
              registerBean(beanName, f, "conversation");

            }
            UIController cntAnn = AnnotationUtils.findAnnotation(clazz, UIController.class);
            if (cntAnn != null) {
              String beanName = cntAnn.value();
              scripts.add(f.getAbsolutePath());
              registerBean(beanName, f, "conversation");

            }
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.