Examples of Organization


Examples of buri.ddmsence.ddms.resource.Organization

  }

  @Test
  public void testSameVersion() throws InvalidDDMSException {
    DDMSVersion.setCurrentVersion("3.0");
    Organization org = new Organization(Util.getXsListAsList("DISA"), null, null, null, null, null);
    DDMSVersion.setCurrentVersion("2.0");
    try {
      new Creator(org, null, null);
      fail("Allowed invalid data.");
    }
View Full Code Here

Examples of by.fly.model.Organization

    OrganizationRepository organizationRepository;

    @Test
    @Rollback(false)
    public void createDefaultOrganization() {
        Organization organization = new Organization("fly");
        organization.setInn("111");
        organizationRepository.save(organization);
    }
View Full Code Here

Examples of com.denimgroup.threadfix.data.entities.Organization

   * @return
   */
  @RequestMapping(method = RequestMethod.GET)
  public String index(Model model, HttpServletRequest request, int teamId) {
   
    Organization org = null;
    String teamName = null;
   
    if (teamId != 0) {
      org = organizationService.loadById(teamId);
      if (org != null && org.getName() != null) {
        teamName = org.getName();
      }
    }
   
    if (teamName == null) {
      teamName = "All";
View Full Code Here

Examples of com.ebspos.model.Organization

    setAttr("collist", new String[]{"编号","名称","地址","备注"});
    render("index.html");
  }
  public void add() {
    Long id = getParaToLong(0, 0L);
    Organization organization=new Organization();
    if(id!=null&&id!=0){
      organization=Organization.dao.findById(id);
    }
    setAttr("pojo",organization);
    render("add.html");
View Full Code Here

Examples of com.github.api.v2.schema.Organization

   *             the exception
   */
  public static void main(String[] args) throws Exception {
    GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
    OrganizationService service = factory.createOrganizationService();
    Organization organization = service.getOrganization("github");
    printResult(organization);
    List<User> publicMembers = service.getPublicMembers("github");
    for (User user : publicMembers) {
      printResult(user);
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter16.entity.Organization

    }

    @RequiresPermissions("organization:create")
    @RequestMapping(value = "/{parentId}/appendChild", method = RequestMethod.GET)
    public String showAppendChildForm(@PathVariable("parentId") Long parentId, Model model) {
        Organization parent = organizationService.findOne(parentId);
        model.addAttribute("parent", parent);
        Organization child = new Organization();
        child.setParentId(parentId);
        child.setParentIds(parent.makeSelfAsParentIds());
        model.addAttribute("child", child);
        model.addAttribute("op", "新增");
        return "organization/appendChild";
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter18.entity.Organization

    }

    @RequiresPermissions("organization:create")
    @RequestMapping(value = "/{parentId}/appendChild", method = RequestMethod.GET)
    public String showAppendChildForm(@PathVariable("parentId") Long parentId, Model model) {
        Organization parent = organizationService.findOne(parentId);
        model.addAttribute("parent", parent);
        Organization child = new Organization();
        child.setParentId(parentId);
        child.setParentIds(parent.makeSelfAsParentIds());
        model.addAttribute("child", child);
        model.addAttribute("op", "新增");
        return "organization/appendChild";
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter18.entity.Organization


    @RequiresPermissions("organization:update")
    @RequestMapping(value = "/{sourceId}/move", method = RequestMethod.GET)
    public String showMoveForm(@PathVariable("sourceId") Long sourceId, Model model) {
        Organization source = organizationService.findOne(sourceId);
        model.addAttribute("source", source);
        model.addAttribute("targetList", organizationService.findAllWithExclude(source));
        return "organization/move";
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter18.entity.Organization

        }
        return CollectionUtils.contains(iterable.iterator(), element);
    }

    public static String organizationName(Long organizationId) {
        Organization organization = getOrganizationService().findOne(organizationId);
        if(organization == null) {
            return "";
        }
        return organization.getName();
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter18.entity.Organization

    @RequiresPermissions("organization:update")
    @RequestMapping(value = "/{sourceId}/move", method = RequestMethod.POST)
    public String move(
            @PathVariable("sourceId") Long sourceId,
            @RequestParam("targetId") Long targetId) {
        Organization source = organizationService.findOne(sourceId);
        Organization target = organizationService.findOne(targetId);
        organizationService.move(source, target);
        return "redirect:/organization/success";
    }
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.