Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.ModelException


        {
          handler = (FormularHandler) Class.forName(handlerClassName).newInstance();
        }
        catch (ClassNotFoundException x)
        {
          throw new ModelException("[aktera.delete] Unable to create handler " + handlerClassName + " (" + x
              + ")");
        }
        catch (InstantiationException x)
        {
          throw new ModelException("[aktera.delete] Unable to create handler " + handlerClassName + " (" + x
              + ")");
        }
        catch (IllegalAccessException x)
        {
          throw new ModelException("[aktera.delete] Unable to create handler " + handlerClassName + " (" + x
              + ")");
        }
      }
      else
      {
View Full Code Here


        {
          handler = (FormularHandler) Class.forName(handlerClassName).newInstance();
        }
        catch (ClassNotFoundException x)
        {
          throw new ModelException("[aktera.edit] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
        catch (InstantiationException x)
        {
          throw new ModelException("[aktera.edit] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
        catch (IllegalAccessException x)
        {
          throw new ModelException("[aktera.edit] Unable to create handler " + handlerClassName + " (" + x + ")");
        }
      }
      else
      {
        String handlerBeanName = ModelTools.getConfigString(configPath, "handler", "bean", null);
View Full Code Here

      {
        formular = ((Formular) SpringTools.getBean(formularBeanName)).createFormularDescriptor();
      }
      catch (Exception x)
      {
        throw new ModelException("[aktera.edit] Unable to create formular from bean " + formularBeanName + " ("
                + x + ")");
      }
    }
    else if (formularClassName != null)
    {
      try
      {
        formular = (FormularDescriptor) Class.forName(formularClassName).newInstance();
      }
      catch (ClassNotFoundException x)
      {
        throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
                + " (" + x + ")");
      }
      catch (InstantiationException x)
      {
        throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
                + " (" + x + ")");
      }
      catch (IllegalAccessException x)
      {
        throw new ModelException("[aktera.edit] Unable to create formular from class " + formularClassName
                + " (" + x + ")");
      }
    }

    if (formular == null)
    {
      throw new ModelException("[aktera.edit] No formular defined");
    }

    if (formularBeanName != null)
    {
      formular.setId(formularBeanName);
View Full Code Here

      return res;
    }
    catch (ConfigurationException x)
    {
      throw new ModelException(x);
    }
  }
View Full Code Here

      return service;
    }
    catch (ServiceException x)
    {
      throw new ModelException(x);
    }
  }
View Full Code Here

      return service;
    }
    catch (ServiceException x)
    {
      throw new ModelException(x);
    }
  }
View Full Code Here

      return service;
    }
    catch (ServiceException x)
    {
      throw new ModelException(x);
    }
  }
View Full Code Here

  {
    GroupDescriptor group = groupsByKey.get(key);

    if (group == null)
    {
      throw new ModelException("Unable to find group '" + key + "' in formular '" + id + "'");
    }

    return group;
  }
View Full Code Here

      String name = groupConfig.getAttribute("name", null);
      if (name != null)
      {
        if (id != null)
        {
          throw new ModelException("Both id and name specified for group '" + id + "'");
        }

        String groupBundle = groupConfig.getAttribute("bundle", formular.getBundle());
        GroupDescriptor group = formular.addGroup(name, groupBundle);
        group.setPosition(positionStringToValue(groupConfig.getAttribute("pos", "C")));
View Full Code Here

      if (id != null)
      {
        if (name != null)
        {
          throw new ModelException("Both id and name specified for group '" + id + "'");
        }

        GroupDescriptor group = formular.getGroup(id);

        if (group == null)
        {
          throw new ModelException("Unable to find group '" + id + "'");
        }

        Configuration[] groupChildren = groupConfig.getChildren();

        for (Configuration childConfig : groupChildren)
        {
          if ("field".equals(childConfig.getName()))
          {
            String fieldId = childConfig.getAttribute("id", null);
            String fieldName = childConfig.getAttribute("id", null);

            if (id != null && name != null)
            {
              throw new ModelException("Both id and name specified for field '" + id + "'");
            }

            if (id != null)
            {
              FieldDescriptor field = group.getField(fieldId);

              if (field == null)
              {
                throw new ModelException("Unable to find field '" + fieldId + "' in group '" + id + "'");
              }

              createCommandsForField(childConfig, formular, field);
            }
          }
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.model.ModelException

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.