Package com.dianping.cat.consumer.company.model.entity

Examples of com.dianping.cat.consumer.company.model.entity.Domain


      if (productLine == null) {
        productLine = new ProductLine();
        productLine.setId(product);
        productLine.setTitle(product);
        buildDefaultDashboard(productLine, domain);
        productLine.addDomain(new Domain(domain));
        company.addProductLine(productLine);
        return storeConfig();
      } else {
        Map<String, Domain> domains = productLine.getDomains();

        if (domains.containsKey(domain)) {
          return true;
        } else {
          domains.put(domain, new Domain(domain));

          return storeConfig();
        }
      }
    }
View Full Code Here


    for (String domain : domains) {
      if (domainIds.contains(domain)) {
        duplicateDomains += domain + ", ";
      } else {
        line.addDomain(new Domain(domain));
      }
    }
    return new Pair<Boolean, String>(storeConfig(), duplicateDomains);
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.consumer.company.model.entity.Domain

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.