Package com.mockey.model

Examples of com.mockey.model.PersistableItem


  }

  @Override
  public ApiDocService saveOrUpdateService(ApiDocService apiDocService) {
    PersistableItem item = apiStore.save(apiDocService);
    return (ApiDocService) item;
  }
View Full Code Here


    for(Service service: services){
      serviceNames.add(service.getServiceName());
    }
    checkForDuplicateFileName(serviceNames, mockServiceBean.getServiceName());
   
    PersistableItem item = mockServiceStore.save(mockServiceBean);
   
   
   
    if (mockServiceBean != null && !mockServiceBean.getTransientState()) {
      this.writeMemoryToFile();
View Full Code Here

  public List<ServicePlan> getServicePlans() {
    return this.servicePlanStore.getOrderedList();
  }

  public ServicePlan saveOrUpdateServicePlan(ServicePlan servicePlan) {
    PersistableItem item = this.servicePlanStore.save(servicePlan);
    if (servicePlan != null && !servicePlan.getTransientState()) {
      this.writeMemoryToFile();
    }
    return (ServicePlan) item;
View Full Code Here

    }
    return item;
  }

  public TwistInfo saveOrUpdateTwistInfo(TwistInfo twistInfo) {
    PersistableItem item = twistInfoStore.save(twistInfo);
    this.writeMemoryToFile();
    return (TwistInfo) item;
  }
View Full Code Here

  public List<ServiceRef> getServiceRefs() {
    return this.serviceRefStore.getOrderedList();
  }

  public ServiceRef saveOrUpdateServiceRef(ServiceRef serviceRef) {
    PersistableItem item = this.serviceRefStore.save(serviceRef);
    this.writeMemoryToFile();
    return (ServiceRef) item;
  }
View Full Code Here

TOP

Related Classes of com.mockey.model.PersistableItem

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.