Examples of Organization


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

    public static boolean isForceLogout(Session session) {
        return session.getAttribute(Constants.SESSION_FORCE_LOGOUT_KEY) != null;
    }

    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.chapter24.entity.Organization

            return "";
        }

        StringBuilder s = new StringBuilder();
        for(Long organizationId : organizationIds) {
            Organization organization = getOrganizationService().findOne(organizationId);
            if(organization == null) {
                return "";
            }
            s.append(organization.getName());
            s.append(",");
        }

        if(s.length() > 0) {
            s.deleteCharAt(s.length() - 1);
View Full Code Here

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

                organization.getName(), organization.getParentId(), organization.getParentIds(), organization.getAvailable(), organization.getId());
        return organization;
    }

    public void deleteOrganization(Long organizationId) {
        Organization organization = findOne(organizationId);
        final String deleteSelfSql = "delete from sys_organization where id=?";
        jdbcTemplate.update(deleteSelfSql, organizationId);
        final String deleteDescendantsSql = "delete from sys_organization where parent_ids like ?";
        jdbcTemplate.update(deleteDescendantsSql, organization.makeSelfAsParentIds() + "%");
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter24.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.chapter24.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.chapter24.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

Examples of com.google.code.lightssh.project.party.entity.Organization

      throw new ApplicationException("人员信息["+t.getPerson().getId()+"]不存在!");
   
    if( t.getOrganization() == null || StringUtils.isEmpty(t.getOrganization().getId()))
      throw new ApplicationException("部门信息为空!");
   
    Organization org = partyManager.getOrganization(t.getOrganization().getId());
    if( org == null )
      throw new ApplicationException("部门信息["+t.getOrganization().getId()+"]不存在!");
   
    Employee db_e = get(p);
    if( db_e == null ){
View Full Code Here

Examples of com.google.gdata.data.extensions.Organization

    new Name().declareExtensions(extProfile);
    extProfile.declare(BasePersonEntry.class, Nickname.class);
    extProfile.declare(BasePersonEntry.class, Occupation.class);
    extProfile.declare(BasePersonEntry.class,
        Organization.getDefaultDescription(false, true));
    new Organization().declareExtensions(extProfile);
    extProfile.declare(BasePersonEntry.class,
        new ExtensionDescription(PhoneNumber.class, new XmlNamespace("gd",
        "http://schemas.google.com/g/2005"), "phoneNumber", false, true,
        false));
    extProfile.declare(BasePersonEntry.class,
View Full Code Here

Examples of com.jcabi.github.Organization

            );
        } catch (final IOException ex) {
            throw new IllegalStateException(ex);
        }
        // @checkstyle AnonInnerLength (50 lines)
        return new Organization() {
            @Override
            public Github github() {
                return new MkGithub(MkOrganizations.this.storage, login);
            }
            @Override
View Full Code Here

Examples of com.ketayao.ketacustom.entity.main.Organization

  }
 
  @RequiresPermissions(value={"User:edit", "User:save"}, logical=Logical.OR)
  @RequestMapping(value="/lookup2org", method={RequestMethod.GET})
  public String lookup(Map<String, Object> map) {
    Organization org = organizationService.getTree();
   
    map.put("org", org);
    return LOOK_ORG;
  }
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.