Package org.openbravo.model.ad.system

Examples of org.openbravo.model.ad.system.System


    String[] result = send(publicKey, purpose, instanceNo);

    if (result.length == 2 && result[0] != null && result[1] != null
        && result[0].equals("@Success@")) {
      // now we have the activation key, lets save it
      System sys = OBDal.getInstance().get(System.class, "0");
      sys.setActivationKey(result[1]);
      sys.setInstanceKey(publicKey);
      ActivationKey ak = new ActivationKey();
      if (ak.isActive()) {
        msg.setType("Success");
        msg.setMessage(result[0]);
      } else {
View Full Code Here


  private void printPageDeactivateProcess(HttpServletResponse response, VariablesSecureApp vars)
      throws IOException, ServletException {

    OBError msg = new OBError();
    try {
      System sys = OBDal.getInstance().get(System.class, "0");
      sys.setActivationKey(null);
      sys.setInstanceKey(null);
      msg.setType("Success");
      msg.setMessage(Utility.messageBD(this, "Success", vars.getLanguage()));
    } catch (Exception e) {
      log4j.error(e);
      msg.setType("Error");
View Full Code Here

      byte[] b = new byte[1024];
      for (int n; (n = is.read(b)) != -1;) {
        buf.append(new String(b, 0, n));
      }

      System sys = OBDal.getInstance().get(System.class, "0");
      sys.setActivationKey(buf.toString());
      sys.setInstanceKey(vars.getStringParameter("publicKey"));
      msg.setType("Success");
      msg.setMessage(Utility.messageBD(this, "Success", vars.getLanguage()));

    } catch (Exception e) {
      log4j.error(e);
View Full Code Here

TOP

Related Classes of org.openbravo.model.ad.system.System

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.