Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.KeelResponse


    public void run()
    {
      ObjectOutputStream writer = null;
      ObjectInputStream reader = null;
      KeelResponse response = null;

      try
      {
        reader = new ObjectInputStream(new BufferedInputStream(socket.getInputStream()));

        KeelRequest request = (KeelRequest) reader.readObject();

        try
        {
          response = execute(request);
        }
        catch (ModelException me)
        {
          System.err.println("Exception running model:");
          me.printStackTrace(System.err);
          response = new ModelResponseMessage();
          response.addError("Error Running Model", me);
        }

        writer = new ObjectOutputStream(new BufferedOutputStream(socket.getOutputStream()));
        writer.writeObject(response);
        writer.flush();
View Full Code Here


  public KeelResponse execute() throws ClientException, ModelException
  {
    WebappRequest wreq = new DefaultWebappRequest(hreq);
    WebappResponse wres = new DefaultWebappResponse(hres);
    String model = hreq.getParameter("model");
    KeelResponse kres = super.execute(wreq, wres, model);

    model = (String) kres.getAttribute("model");
    createDynaBean(kres, wreq, wres, model);
    handleErrors(kres, wreq, wres, model);

    return kres;
  }
View Full Code Here

      keelRequest.setParameter("operation", operation);
    }

    try
    {
      KeelResponse kres = execute();

      return ((Boolean) kres.getAttribute("allowed")).booleanValue();
    }
    catch (ModelException e)
    {
      log.error("Unable to check authorization", e);
    }
View Full Code Here

  /**
   */
  public KeelResponse execute(WebappRequest wreq, WebappResponse wres, String model)
    throws ClientException, ModelException
  {
    KeelResponse kres = super.execute(wreq, wres, model);

    return kres;
  }
View Full Code Here

   *
   * @param model The keel model query
   */
  public long newKeelObject(String model, long userUniqueId)
  {
    KeelResponse keelForm = getKeelObject(model, "-1", userUniqueId);

    DynDataObject dataObject = null;

    dataObject = createDataObjectAndRegister(keelForm, model, "-1", true);

View Full Code Here

   * @param keelUniqueId The id from the keel object.
   * @param userUniqueId The user unique id.
   */
  public void editKeelObject(String model, String keelObjectId, long userUniqueId)
  {
    KeelResponse keelForm = getKeelObject(model, keelObjectId, userUniqueId);

    createDataObjectAndRegister(keelForm, model, keelObjectId, false);

    try
    {
View Full Code Here

   * @param results The iobjectlist result object
   */
  public void doQuery(String model, String listName, long userUniqueId, AkteraQuery akteraQuery,
          String searchCondition, String listSearchCategory)
  {
    KeelResponse result = getKeelResultList(model, listName, userUniqueId, searchCondition, listSearchCategory);

    // Listing aufrufen.
    if (result == null)
    {
      return;
    }

    ResponseElement resultList = result.get("list");
    IObjectList results = (IObjectList) akteraQuery.getIObjectListResults();

    if (resultList == null)
    {
      Log.logError("ConnectorServerManager", "No result list for model: " + model);
    }

    registerListElement(resultList, model);

    List rows = resultList.getAll();
    DynDataObject listObject = null;

    for (Iterator i = rows.iterator(); i.hasNext();)
    {
      ResponseElement row = (ResponseElement) i.next();

      listObject = createQueryDataObjectAndRegister(row, row.getAll().iterator(), resultList, model, akteraQuery);

      if (listObject != null)
      {
        // System.out.println (listObject.dump ());
        results.add(listObject);
      }
    }

    Input attribute = (Input) result.get("listSearchCategory");

    if (attribute != null)
    {
      StringBuffer validValues = new StringBuffer(StringTools.trim(attribute.getDefaultValue()) + "|");

View Full Code Here

        attributeName = (String) i.next();

        req.setParameter(attributeName, properties.get(attributeName));
      }

      KeelResponse res = model.execute(req);

      return res;
    }
    catch (Exception x)
    {
View Full Code Here

   * @param long User unique id.
   * @return KeelResponse object
   */
  private KeelResponse getKeelObject(String model, String keelObjectId, long userUniqueId)
  {
    KeelResponse res = null;

    ModelRequest req = null;

    try
    {
View Full Code Here

   * @return KeelResponse object
   */
  private KeelResponse getKeelResultList(String model, String listName, long userUniqueId, String searchCondition,
          String listSearchCategory)
  {
    KeelResponse res = null;
    ModelRequest req = null;

    try
    {
      req = ModelTools.createModelRequest();
View Full Code Here

TOP

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

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.