Examples of NameKey


Examples of com.google.gerrit.reviewdb.client.Project.NameKey

        }
      }
      if (projectName != null) {
        if (filePath == null)
          filePath = "";
        NameKey projName = NameKey.parse(projectName);
       
        ProjectControl control;
        try {
          control = projControlFactory.controlFor(projName);
          if (!control.isVisible()) {
View Full Code Here

Examples of com.google.gerrit.reviewdb.client.Project.NameKey

        } else {
          filePath = java.net.URLDecoder.decode(filePath, "UTF-8");
        }
      }
      if (projectName != null) {
        NameKey projName = NameKey.parse(projectName);
        ProjectControl control;
        try {
          control = projControlFactory.controlFor(projName);
          if (!control.isVisible()) {
            log.debug("Project not visible!");
            resp.sendError(HttpServletResponse.SC_UNAUTHORIZED, "You need to be logged in to see private projects");
            return;
          }
        } catch (NoSuchProjectException e1) {
          resp.sendError(HttpServletResponse.SC_BAD_REQUEST, "No such project exists.");
        }
      }
      if (projectName == null || refName == null || filePath == null) {
        resp.sendError(HttpServletResponse.SC_BAD_REQUEST, "You need to provide a projectName, refName and filePath.");
        return;
      } else {
        NameKey projName = NameKey.parse(projectName);
        Repository repo = repoManager.openRepository(projName);
        Ref head = repo.getRef(refName);
        RevWalk walk = new RevWalk(repo);
        RevCommit commit = walk.parseCommit(head.getObjectId());
        RevTree tree = commit.getTree();
View Full Code Here

Examples of com.tll.model.NameKey

      getDbTrans().endTrans();

      getDbTrans().startTrans();
      final Criteria<IEntity> c = new Criteria<IEntity>(entityHandler.entityClass());
      c.getPrimaryGroup().addCriterion(
          new NameKey(e.entityClass(), e.getName(), entityHandler.getActualNameProperty()), true);
      final IEntity re = dao.findEntity(c);
      Assert.assertTrue(re != null);
      if(re != null) Assert.assertEquals(re, e);
    }
  }
View Full Code Here

Examples of com.tll.model.key.NameKey

      final String name = search.getName();
      final IEntityService<IEntity> svc = getEntityService(et);
      if(svc instanceof INamedEntityService == false) {
        throw new RuntimeException("Entity type: " + et + "doesn't support loading by name.");
      }
      final IEntity e = ((INamedEntityService) svc).load(new NameKey(ec, name));
      // final Model m = marshal(et, e);
      // payload.setModel(m);
      status.addMsg(e.descriptor() + " loaded.", MsgLevel.INFO, MsgAttr.STATUS.flag);
      return e;
    }
View Full Code Here

Examples of com.tll.model.key.NameKey

    // retrieve by name key if applicable..
    if(INamedEntity.class.isAssignableFrom(entityHandler.entityClass())) {
      logger.debug("Perfoming actual find by name dao test..");
      final Class<?> nec = entityHandler.entityClass();
      final String name = ((INamedEntity) e).getName();
      final NameKey<INamedEntity> nk = new NameKey(nec, name);
      startNewTransaction();
      try {
        e = dao.load(nk);
        // NOTE: as there may be other like enties having the same name, we only
        // test when we know there is no ambiguity
View Full Code Here

Examples of com.tll.model.key.NameKey

      setComplete();
      endTransaction();

      startNewTransaction();
      final Criteria<IEntity> c = new Criteria<IEntity>(entityHandler.entityClass());
      c.getPrimaryGroup().addCriterion(new NameKey(e.entityClass(), e.getName()), true);
    }
  }
View Full Code Here

Examples of org.netbeans.modules.openoffice.wizard.keys.NameKey

                // Everything is done for the package.
                stringPackage = "";
            }
           
            // Create a module node.
            Node node[] = new Node[] { new ModuleNode( new NameKey(
            4, stringDirectory ) ) };
           
            // Add node to tree.
            nodeFather.getChildren().add( node );
           
View Full Code Here

Examples of org.netbeans.modules.openoffice.wizard.keys.NameKey

    public void reInit(BasePanel BasePanel)
    {
        if(BasePanel instanceof ModuleCreatePanel)
        {
            String s = ((ModuleCreatePanel)BasePanel).getName();
            NameKey NameKey = key;
            if(!NameKey.getName().equals(s))
            {
                setName(s);
                NameKey.setName(s);
            }
        }
    }
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.