Package com.dianping.cat.core.dal

Examples of com.dianping.cat.core.dal.Project


    }
    return project;
  }

  private void updateProject(Payload payload) {
    Project project = payload.getProject();
    project.setKeyId(project.getId());

    m_projectService.updateProject(project);
    m_manager.getProjects().put(project.getDomain(), project);
  }
View Full Code Here


  @Inject
  protected ProjectService m_projectService;

  public String buildContactInfo(String domainName) {
    try {
      Project project = m_projectService.findByDomain(domainName);

      if (project != null) {
        String owners = project.getOwner();
        String phones = project.getPhone();
        StringBuilder builder = new StringBuilder();

        if (!StringUtils.isEmpty(owners)) {
          builder.append("[业务负责人: ").append(owners).append(" ]");
        }
View Full Code Here

    if (receiver != null && !receiver.isEnable()) {
      return mailReceivers;
    } else {
      mailReceivers.addAll(buildDefaultMailReceivers(receiver));

      Project project = m_projectService.findByDomain(id);

      if (project != null) {
        mailReceivers.addAll(split(project.getEmail()));
      }
      return mailReceivers;
    }
  }
View Full Code Here

    if (receiver != null && !receiver.isEnable()) {
      return smsReceivers;
    } else {
      smsReceivers.addAll(buildDefaultSMSReceivers(receiver));

      Project project = m_projectService.findByDomain(id);

      if (project != null) {
        smsReceivers.addAll(split(project.getPhone()));
      }
      return smsReceivers;
    }
  }
View Full Code Here

    if (receiver != null && !receiver.isEnable()) {
      return weixinReceivers;
    } else {
      weixinReceivers.addAll(buildDefaultWeixinReceivers(receiver));

      Project project = m_projectService.findByDomain(id);

      if (project != null) {
        weixinReceivers.addAll(split(project.getEmail()));
      }
      return weixinReceivers;
    }
  }
View Full Code Here

    } else {
      mailReceivers.addAll(buildDefaultMailReceivers(receiver));

      String domain = queryDomainByCommand(id);
      if (StringUtils.isNotEmpty(domain)) {
        Project project = m_projectService.findByDomain(domain);
        if (project != null) {
          mailReceivers.addAll(split(project.getEmail()));
        }
      }
      return mailReceivers;
    }
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.core.dal.Project

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.