Examples of App


Examples of com.github.ebnew.ki4so.core.app.App

    Assert.assertNull(appServiceImpl.findAppById(""));
    Assert.assertNull(appServiceImpl.findAppById(null));
   
    Assert.assertNull(appServiceImpl.findAppById("not exsited"));
   
    App app = appServiceImpl.findAppById("1001");
    Assert.assertNotNull(app);
    Assert.assertEquals("http://localhost:8080/ki4so-app/", app.getHost());
    System.out.println(app);
  }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter23.entity.App

    }

    @RequiresPermissions("app:create")
    @RequestMapping(value = "/create", method = RequestMethod.GET)
    public String showCreateForm(Model model) {
        App app = new App();
        app.setAppKey(UUID.randomUUID().toString());
        app.setAppSecret(UUID.randomUUID().toString());
        model.addAttribute("app", app);
        model.addAttribute("op", "新增");
        return "app/edit";
    }
View Full Code Here

Examples of com.heroku.api.App

                "\"repo_size\":630784,\"git_url\":\"git@heroku.com:dropphotos.git\",\"repo_migrate_status\":\"complete\",\"dynos\":1,\"workers\":0}" +
                "]";

        final List<App> appList = parser.parse(appListWithConfiguredDomain.getBytes("UTF-8"), APP_LIST_TYPE);
        Assert.assertEquals(appList.size(), 1);
        final App app = appList.get(0);
        Assert.assertEquals(app.getName(), "app");
        Assert.assertEquals(app.getDomain().getDomain(), "herokuapp.com");
        Assert.assertEquals(app.getDomain().getDefault(), null);
        Assert.assertEquals(app.getDynos(), 1);
    }
View Full Code Here

Examples of de.pdf_scrutinizer.API.App

                Scriptable scope = cx.initStandardObjects(doc);
                cx.putThreadLocal("topscope", scope);
                cx.putThreadLocal("scrutinizer", scrutinizer);

                //set up API
                App app = new App(scrutinizer, doc);

                ScriptableObject.putProperty(scope, "app", Context.javaToJS(app, scope));
                ScriptableObject.putProperty(scope, "Collab", Context.javaToJS(new Collab(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "util", Context.javaToJS(new Util(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "event", Context.javaToJS(new Event(scrutinizer, doc), scope));
                ScriptableObject.putProperty(scope, "media", Context.javaToJS(new Media(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "XMLData", Context.javaToJS(new XMLData(scrutinizer), scope));
                ScriptableObject.putProperty(scope, "display", Context.javaToJS(new display(), scope));
                ScriptableObject.putProperty(scope, "console", Context.javaToJS(doc.console, scope));
                ScriptableObject.putProperty(scope, "info", Context.javaToJS(doc.info, scope));
                ScriptableObject.putProperty(scope, "spell", Context.javaToJS(new Spell(scrutinizer), scope));

                // redirect String.eval() and app.eval() to eval()
                ScriptableObject.putProperty((Scriptable) scope.get("String", scope), "eval", (Scriptable) scope.get("eval", scope));
                ScriptableObject.putProperty((Scriptable) scope.get("app", scope), "eval", (Scriptable) scope.get("eval", scope));

                /* these are deprecated but still used in malicious samples */
                ScriptableObject.putProperty(scope, "subject", Context.javaToJS(doc.info.Subject, scope));
                ScriptableObject.putProperty(scope, "producer", Context.javaToJS(doc.info.Producer, scope));
                ScriptableObject.putProperty(scope, "creator", Context.javaToJS(doc.info.Creator, scope));
                ScriptableObject.putProperty(scope, "author", Context.javaToJS(doc.info.Author, scope));
                ScriptableObject.putProperty(scope, "keywords", Context.javaToJS(doc.info.Keywords, scope));
                ScriptableObject.putProperty(scope, "creationDate", Context.javaToJS(doc.info.CreationDate, scope));
                ScriptableObject.putProperty(scope, "modDate", Context.javaToJS(doc.info.ModDate, scope));
                ScriptableObject.putProperty(scope, "title", Context.javaToJS(doc.info.Title, scope));

                ScriptableObject.putProperty(scope, "zoom", Context.javaToJS(doc.zoom, scope));
                ScriptableObject.putProperty(scope, "URL", Context.javaToJS(doc.URL, scope));
                ScriptableObject.putProperty(scope, "numPages", Context.javaToJS(doc.numPages, scope));

                // if document catalog contains custom metadata we have to put them into the context.
                if (scrutinizer.getDocumentAdapter() != null) {
                    PDDocumentInformation info = scrutinizer.getDocumentAdapter().getDocument().getDocumentInformation();
                    if (info != null) {
                        String[] docinfokeys = {"Author", "Creator", "CreationDate", "Subject", "Title", "Keywords", "ModDate", "Producer", "Trapped"};
                        Set<String> metadataKeys = info.getMetadataKeys();
                        metadataKeys.removeAll(Arrays.asList(docinfokeys)); // remove non-custom keys

                        for (String metadataKey : metadataKeys) {
                            log.debug(String.format("adding custom info metadata: %s value: %s", "info." + metadataKey, info.getCustomMetadataValue(metadataKey)));
                            ScriptableObject.putProperty((Scriptable) scope.get("info", scope), metadataKey, Context.javaToJS(info.getCustomMetadataValue(metadataKey), scope));
                        }
                    }
                }

                app.viewerVersion = Double.parseDouble(viewerVersion);
                plugIn plugin = app.getPlugin();
                plugin.version = Double.parseDouble(pluginVersion);
                app.setPlugin(plugin);
                log.info("using viewerVersion " + app.viewerVersion);
                for (String str : codes) {
                    doExecute(str, cx, scope);
                }

                List<Timeout> timeouts = app.getTimeouts();
                synchronized (timeouts) {
                    for (Timeout timeout : timeouts) {
                        timeout.stop();
                    }
                }
View Full Code Here

Examples of edu.harvard.hul.ois.jhove.App

          jhove.init (jhoveConf, "org.apache.xerces.parsers.SAXParser");
          jhove.setChecksumFlag(false)
        jhove.setSignatureFlag(false);
        jhove.setShowRawFlag(false);
          xh = new XmlHandler();
          jhoveApp = new App ("Jhove","1.5", new int[] {2009, 12, 23}, "","");
      xh.setApp(jhoveApp);
      xh.setBase(jhove);       
    }
    catch (JhoveException e) {
      throw new FitsToolException("Error initializing Jhove",e);
View Full Code Here

Examples of info.textgrid.lab.noteeditor.mei2013.App

    scpd.setDescription(MusicMessages.MEI_documentation_app_select);
    descriptors.add(scpd);
  }

  private void createDefaultApp() {
    setMeiNode(new App());
  }
View Full Code Here

Examples of info.textgrid.lab.noteeditor.mei2013.App

            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof AppForm) {
      AppForm contentForm = (AppForm) childForm;
      App contentNode = (App) contentForm.getMeiNode();
      contentNode.getRdgs().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getRdgs().add(
            (Rdg) handleScoreChild(contentChildForm,
                saveAllVariants));
      }
      if (contentNode.isSetRdgs() && contentNode.getRdgs().isEmpty())
        contentNode.unsetRdgs();
      if (contentNode.isSetN() && contentNode.getN().isEmpty())
        contentNode.setN(null);
      if (!saveAllVariants) {
        for (BasicElement contentChildForm : contentForm.getChildren()) {
          if(contentChildForm instanceof ReadingForm && ((ReadingForm)contentChildForm).isActive() ) {
            MeiNode parentMeiNode = contentForm.getParent().getMeiNode();
            for(BasicElement grandChild : ((ReadingForm)contentChildForm).getChildren()){
              MeiNodeNavigator.addMeiNodeAsChild(parentMeiNode, grandChild.getMeiNode());
            }           
          }
        }
        return null;

      }
      return contentNode;
    } else if (childForm instanceof ReadingForm) {
      Rdg contentNode;
      ReadingForm contentForm = (ReadingForm) childForm;
      if (!saveAllVariants && !contentForm.isActive()) {
        // ignore this very reading
        return null;
      }
      contentNode = (Rdg) contentForm.getMeiNode();
      contentNode.getSources().clear();
      for (SourceBindingWrapper sbw : contentForm
          .getSourceBindingWrappers()) { // insert the wrapped sources
        contentNode.getSources().add(sbw.getSource().getId());
      }
      if (contentNode.getSources().isEmpty())
        contentNode.unsetSources();
      contentNode.getMRestsAndKeySigsAndProports().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getMRestsAndKeySigsAndProports().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof LayerForm) {
      LayerForm contentForm = (LayerForm) childForm;
      Layer contentNode = (Layer) contentForm.getMeiNode();
      contentNode.getBarLinesAndSyllablesAndGaps().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getBarLinesAndSyllablesAndGaps().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof ChordGroupForm) {
      ChordGroupForm contentForm = (ChordGroupForm) childForm;
      Chord contentNode = (Chord) contentForm.getMeiNode();
      contentNode.getRestoresAndArticsAndUnclears().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getRestoresAndArticsAndUnclears().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      if(contentNode.getArtics().isEmpty()) {
        contentNode.unsetArtics();
      }
      return contentNode;
    } else if (childForm instanceof BeamGroupForm) {
      BeamGroupForm contentForm = (BeamGroupForm) childForm;
      Beam contentNode = (Beam) contentForm.getMeiNode();
      contentNode.getFTremsAndChordsAndDamages().clear();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getFTremsAndChordsAndDamages().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof NoteForm) {
      NoteForm contentForm = (NoteForm) childForm;
      Note contentNode = (Note) contentForm.getMeiNode();
      if (contentNode.getArtics().isEmpty())
        contentNode.unsetArtics();
      return contentNode;
    } else if (childForm instanceof RestForm) {
      RestForm contentForm = (RestForm) childForm;
      Rest contentNode = (Rest) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof MRestForm) {
      MRestForm contentForm = (MRestForm) childForm;
      MRest contentNode = (MRest) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof SpaceForm) {
      SpaceForm contentForm = (SpaceForm) childForm;
      Space contentNode = (Space) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof DynamForm) {
      DynamForm contentForm = (DynamForm) childForm;
      Dynam contentNode = (Dynam) contentForm.getMeiNode();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getContent().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof TieForm) {
      TieForm contentForm = (TieForm) childForm;
View Full Code Here

Examples of io.lumify.miniweb.App

        super(userRepository, workspaceRepository, configuration);
    }

    @Override
    public void handle(HttpServletRequest request, HttpServletResponse response, HandlerChain chain) throws Exception {
        App app = App.getApp(request);
        List<String> paths = getPaths(app);
        String out = pathsToHtml(paths);
        respondWithHtml(response, out);
    }
View Full Code Here

Examples of main.App

public class TestApp extends TestCase {
  public void testInsertAndGetData() {
    String result = "";
    try {
      App app = new App();
      result = app.getData();
    } finally {
      assertEquals("Hope this works!", result);
    }
  }
View Full Code Here

Examples of org.apache.s4.core.App

            } catch (IOException e) {
                throw new DeploymentFailedException("Cannot deploy application [" + appName + "] from URI ["
                        + uri.toString() + "] ", e);
            }
            // install locally
            App loaded = server.loadApp(localS4RFileCopy, appName);
            if (loaded != null) {
                logger.info("Successfully installed application {}", appName);
                // TODO sync with other nodes? (e.g. wait for other apps deployed before starting?
                server.startApp(loaded, appName, clusterName);
            } else {
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.